Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unicode -> ascii #5

Merged
merged 1 commit into from
Sep 22, 2022
Merged

unicode -> ascii #5

merged 1 commit into from
Sep 22, 2022

Conversation

sowbug
Copy link
Contributor

@sowbug sowbug commented Sep 6, 2022

Please merge this PR. I think the issue is that newer versions of Python interpret plain strings as Unicode rather than ASCII, which happened to work in this case as functionally equivalent to octet sequences. We resolve the issue by being explicit that we want binary sequences, not strings.

While I'm here, please resolve #2. I'm using this library as part of a PR on offer to a fork of Stable Diffusion (https://github.com/basujindal/stable-diffusion), and it'll look more canonical if the package is on pypi.

Thanks!

@artfwo artfwo merged commit c6577d5 into commonsmachinery:master Sep 22, 2022
@artfwo
Copy link
Member

artfwo commented Sep 22, 2022

Thanks! I recall we don't have a PyPI account for Commons Machinery, unfortunately. Is there a problem with installing this from GitHub?

@sowbug
Copy link
Contributor Author

sowbug commented Sep 22, 2022 via email

@artfwo
Copy link
Member

artfwo commented Sep 22, 2022

Right, unfortunately that's true. We haven't done much to make this library user-friendly at the time of writing it - it was an experimental piece of code to explore the possibilities of using raw XMP in another project.

Since Commons Machinery no longer exists as a (physical) organization, finding a volunteer for release management and maintaining the PyPI package might not be easy, but personally I have no problem with somebody forking and maintaining the library if it is actively used elsewhere.

@sowbug
Copy link
Contributor Author

sowbug commented Sep 22, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upload to pypi?
2 participants