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.9 support #50

Open
JanczarKurek opened this issue Feb 27, 2021 · 0 comments
Open

Python 3.9 support #50

JanczarKurek opened this issue Feb 27, 2021 · 0 comments

Comments

@JanczarKurek
Copy link

Hi,

Currently if you try running under python3.9 you will get a stack dump looking like this:

Traceback (most recent call last):
  File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/janczarknurek/.cache/bazel/_bazel_janczarknurek/8ef58595ad1884d5f3dbc0914d9c6141/external/com_apt_itude_rules_pip/tools/create_pip_repository.par/__main__.py", line 33, in <module>
    main()
  File "/home/janczarknurek/.cache/bazel/_bazel_janczarknurek/8ef58595ad1884d5f3dbc0914d9c6141/external/com_apt_itude_rules_pip/tools/create_pip_repository.par/__main__.py", line 13, in main
    wheels.download(args.repository_directory, args.requirements, *extra_args)
  File "/tmp/tmp4hxy_fue/com_apt_itude_rules_pip/src/piprules/wheels.py", line 18, in download
    with _add_pip_import_paths_to_pythonpath():
  File "/usr/lib64/python3.9/contextlib.py", line 117, in __enter__
    return next(self.gen)
  File "/tmp/tmp4hxy_fue/com_apt_itude_rules_pip/src/piprules/wheels.py", line 31, in _add_pip_import_paths_to_pythonpath
    import setuptools
  File "/tmp/tmp4hxy_fue/pip_setuptools/setuptools/__init__.py", line 16, in <module>
    from setuptools.dist import Distribution, Feature
  File "/tmp/tmp4hxy_fue/pip_setuptools/setuptools/dist.py", line 24, in <module>
    from setuptools.depends import Require
  File "/tmp/tmp4hxy_fue/pip_setuptools/setuptools/depends.py", line 7, in <module>
    from .py33compat import Bytecode
  File "/tmp/tmp4hxy_fue/pip_setuptools/setuptools/py33compat.py", line 55, in <module>
    unescape = getattr(html, 'unescape', html_parser.HTMLParser().unescape)
AttributeError: 'HTMLParser' object has no attribute 'unescape'

If i understand correctly - this has to do with the version of setuptools the project is using. Setuptools in version < 44 does not support python3.9. This should be updated to allow user to use python3.9.

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

No branches or pull requests

1 participant