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

Release to fix broken dependency in Python 3.9+ #40

Open

Description

@pangloss

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?

Activity

  1. pangloss commented on Jan 5, 2023

    @pangloss
    Author

    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.

  2. changed the title [-]Broken dependency in Python 3.9+[/-] [+]Release to fix broken dependency in Python 3.9+[/+] on Jan 5, 2023
  3. Filip-Anicic commented on Feb 27, 2023

    @Filip-Anicic

    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

  4. ahvigil commented on May 11, 2023

    @ahvigil

    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://git@github.com/cognitect/transit-python@2032b92c21053b98a8bbd56d2e9770ff6c7cc4eb
    

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

    transit-python @ git+https://git@github.com/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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions