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

Build fails with setuptools 50.0.0 #43

Closed
Ninban opened this issue Aug 31, 2020 · 2 comments
Closed

Build fails with setuptools 50.0.0 #43

Ninban opened this issue Aug 31, 2020 · 2 comments

Comments

@Ninban
Copy link

Ninban commented Aug 31, 2020

Using pip 20.2.2 and setuptools 50.0.0 (released yesterday, August 30th)

Downgrading setuptools to 49.6.0 enabled me to workaround the issue.
Output:

Collecting chumpy
  Downloading chumpy-0.70.tar.gz (50 kB)
    ERROR: Command errored out with exit status 1:
     command: /home/work/env/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-n2ix487y/chumpy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-n2ix487y/chumpy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-gprw26td
         cwd: /tmp/pip-install-n2ix487y/chumpy/
    Complete output (15 lines):
    /home/work/env/lib/python3.6/site-packages/_distutils_hack/__init__.py:30: UserWarning: Setuptools is replacing distutils.
      warnings.warn("Setuptools is replacing distutils.")
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-n2ix487y/chumpy/setup.py", line 56, in <module>
        'Operating System :: POSIX :: Linux'
      File "/home/work/env/lib/python3.6/site-packages/setuptools/_distutils/core.py", line 134, in setup
        ok = dist.parse_command_line()
      File "/home/work/env/lib/python3.6/site-packages/setuptools/_distutils/dist.py", line 484, in parse_command_line
        args = self._parse_command_opts(parser, args)
      File "/home/work/env/lib/python3.6/site-packages/setuptools/dist.py", line 903, in _parse_command_opts
        nargs = _Distribution._parse_command_opts(self, parser, args)
      File "/home/work/env/lib/python3.6/site-packages/setuptools/_distutils/dist.py", line 548, in _parse_command_opts
        "command class %s must subclass Command" % cmd_class)
    distutils.errors.DistutilsClassError: command class <class 'setuptools.command.egg_info.egg_info'> must subclass Command
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
@remmel
Copy link

remmel commented Aug 23, 2022

Try to upgrade pip : python -m pip install --upgrade pip

@Ninban
Copy link
Author

Ninban commented Aug 23, 2022

Thanks, this certainly needs retesting with latest versions of pip/setuptools but I no longer work on the project and environment affected. I'm closing the issue as no longer relevant.

@Ninban Ninban closed this as not planned Won't fix, can't repro, duplicate, stale Aug 23, 2022
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

2 participants