Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

Release to fix broken dependency in Python 3.9+ #40

Open
pangloss opened this issue Jan 5, 2023 · 3 comments
Open

Release to fix broken dependency in Python 3.9+ #40

pangloss opened this issue Jan 5, 2023 · 3 comments

Comments

@pangloss
Copy link

pangloss commented Jan 5, 2023

I'm using Python 3.10.9 and wanted to try out Transit for a project, but it does not import because Python moved some stuff used by this project from the collections module to collections.abc. It seems it was deprecated in 3.3 and removed in/after 3.9.

https://docs.python.org/3/library/collections.abc.html

Is this library still supported/recommended for use in new projects?

@pangloss
Copy link
Author

pangloss commented Jan 5, 2023

Actually it seems that this issue has been fixed in the main branch but maybe it hasn't been released? I'm going to update the title of this issue to ask for a release.

@pangloss pangloss changed the title Broken dependency in Python 3.9+ Release to fix broken dependency in Python 3.9+ Jan 5, 2023
@Filip-Anicic
Copy link

I have the same issue. I need to decode some transit response from Penpot and I can't even use the package.
Tested on Windows 10, Python 3.8.1 and Python 3.9.0

@ahvigil
Copy link

ahvigil commented May 11, 2023

For those trying to use this on newer pythons, as a workaround you can install the unreleased main branch (actually the commit currently on main 2032b92) with

pip install git+https://[email protected]/cognitect/transit-python@2032b92c21053b98a8bbd56d2e9770ff6c7cc4eb

in a requirements.txt or pyproject.toml the requirement would look like:

transit-python @ git+https://[email protected]/cognitect/transit-python@2032b92c21053b98a8bbd56d2e9770ff6c7cc4eb

note that for some reason the version defined in setup.py on main is incorrect, it shows up as 0.8.284 which was actually several years prior to the most recent change.

There is also an unofficial fork mentioned at #37 (comment) if installing from git makes you uncomfortable

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

No branches or pull requests

3 participants