Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Version on pypi fails to install on python 3.10 #23

Open
cdleonard opened this issue Feb 16, 2022 · 0 comments
Open

Version on pypi fails to install on python 3.10 #23

cdleonard opened this issue Feb 16, 2022 · 0 comments

Comments

@cdleonard
Copy link

$ docker run -it python:3.10 pip install nsenter
Collecting nsenter
  Downloading nsenter-0.2-py3-none-any.whl (12 kB)
Collecting contextlib2
  Downloading contextlib2-21.6.0-py2.py3-none-any.whl (13 kB)
Collecting argparse
  Downloading argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Collecting pathlib
  Downloading pathlib-1.0.1.tar.gz (49 kB)
     |████████████████████████████████| 49 kB 2.6 MB/s 
    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-quttjgpr/pathlib_d60a79e90d4a49f48ae63d6cdcbc2493/setup.py'"'"'; __file__='"'"'/tmp/pip-install-quttjgpr/pathlib_d60a79e90d4a49f48ae63d6cdcbc2493/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-zlfypxgz
         cwd: /tmp/pip-install-quttjgpr/pathlib_d60a79e90d4a49f48ae63d6cdcbc2493/
    Complete output (13 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/local/lib/python3.10/site-packages/setuptools/__init__.py", line 16, in <module>
        import setuptools.version
      File "/usr/local/lib/python3.10/site-packages/setuptools/version.py", line 1, in <module>
        import pkg_resources
      File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 23, in <module>
        import zipfile
      File "/usr/local/lib/python3.10/zipfile.py", line 19, in <module>
        import pathlib
      File "/tmp/pip-install-quttjgpr/pathlib_d60a79e90d4a49f48ae63d6cdcbc2493/pathlib.py", line 10, in <module>
        from collections import Sequence
    ImportError: cannot import name 'Sequence' from 'collections' (/usr/local/lib/python3.10/collections/__init__.py)
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/ac/aa/9b065a76b9af472437a0059f77e8f962fe350438b927cb80184c32f075eb/pathlib-1.0.1.tar.gz#sha256=6940718dfc3eff4258203ad5021090933e5c04707d5ca8cc9e73c94a7894ea9f (from https://pypi.org/simple/pathlib/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

This is caused by the dependency on pathlib, this was fixed by commit b7fd78f but a new pypi version was not published.

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

1 participant