python-nsenter icon indicating copy to clipboard operation
python-nsenter copied to clipboard

Version on pypi fails to install on python 3.10

Open cdleonard opened this issue 3 years ago • 0 comments

$ 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 b7fd78fef24c456d88130c75fe734417728e97e8 but a new pypi version was not published.

cdleonard avatar Feb 16 '22 10:02 cdleonard