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

Python 3.10 support #106

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Python 3.10 support #106

wants to merge 2 commits into from

Conversation

0xdbe
Copy link

@0xdbe 0xdbe commented Jul 1, 2022

In order to use tplmap with python 3.10, I had to fix some issues:

collections.mapping

Error

Exiting: module 'collections' has no attribute 'Mapping'

Fix

use collections.abc.mapping instead of collections.mapping (module change in python 3.3)

wsgiref

Error

It is not possible to install wsgiref:

error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [9 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/j3/l6mjg4f13bqff0z65zgjh1f00000gq/T/pip-install-72pbyadl/wsgiref_5ce53053f9ba423aaae0584a8c7470e2/setup.py", line 5, in <module>
          import ez_setup
        File "/private/var/folders/j3/l6mjg4f13bqff0z65zgjh1f00000gq/T/pip-install-72pbyadl/wsgiref_5ce53053f9ba423aaae0584a8c7470e2/ez_setup/__init__.py", line 170
          print "Setuptools version",version,"or greater has been installed."
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

Fix

remove wsgiref as dependency because it is already been included as a standard library in Python 3

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.

1 participant