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

Cannot use setup.py develop on setuptools 59.6.0 #664

Open
russkel opened this issue Mar 28, 2022 · 0 comments
Open

Cannot use setup.py develop on setuptools 59.6.0 #664

russkel opened this issue Mar 28, 2022 · 0 comments

Comments

@russkel
Copy link

russkel commented Mar 28, 2022

I needed to fix a bug with bloom and tried to install this version with pip3 install -e .:

↳ pip3 install -e .
Defaulting to user installation because normal site-packages is not writeable
Obtaining file:///home/russ/work/bloom
  Preparing metadata (setup.py) ... done
Requirement already satisfied: PyYAML in /usr/lib/python3/dist-packages (from bloom==0.10.7) (5.4.1)
Requirement already satisfied: catkin_pkg>=0.4.3 in /usr/lib/python3/dist-packages (from bloom==0.10.7) (0.4.24)
Requirement already satisfied: empy in /usr/lib/python3/dist-packages (from bloom==0.10.7) (3.3.4)
Requirement already satisfied: python-dateutil in /usr/lib/python3/dist-packages (from bloom==0.10.7) (2.8.1)
Requirement already satisfied: rosdep>=0.15.0 in /usr/lib/python3/dist-packages (from bloom==0.10.7) (0.21.0)
Requirement already satisfied: rosdistro>=0.8.0 in /usr/lib/python3/dist-packages (from bloom==0.10.7) (0.8.3)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from bloom==0.10.7) (59.6.0)
Requirement already satisfied: vcstools>=0.1.22 in /usr/lib/python3/dist-packages (from bloom==0.10.7) (0.1.42)
Installing collected packages: bloom
  Running setup.py develop for bloom
    error: subprocess-exited-with-error
    
    × python setup.py develop did not run successfully.
    │ exit code: 1
    ╰─> [29 lines of output]
        running develop
        /usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
          warnings.warn(
        Traceback (most recent call last):
          File "<string>", line 2, in <module>
          File "<pip-setuptools-caller>", line 34, in <module>
          File "/home/russ/work/bloom/setup.py", line 23, in <module>
            setup(
          File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup
            return distutils.core.setup(**attrs)
          File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 148, in setup
            return run_commands(dist)
          File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 163, in run_commands
            dist.run_commands()
          File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 967, in run_commands
            self.run_command(cmd)
          File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 985, in run_command
            cmd_obj.ensure_finalized()
          File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 107, in ensure_finalized
            self.finalize_options()
          File "/usr/lib/python3/dist-packages/setuptools/command/develop.py", line 52, in finalize_options
            easy_install.finalize_options(self)
          File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 270, in finalize_options
            self._fix_install_dir_for_user_site()
          File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 400, in _fix_install_dir_for_user_site
            self.select_scheme(scheme_name)
          File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 741, in select_scheme
            scheme = INSTALL_SCHEMES[name]
        KeyError: 'unix_user'
        [end of output]
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

The solution was to install setuptools-61.2.0 which seemed to solve it, but this means it will be broken on Ubuntu jammy unless they up the setuptools version. I am not sure if there is a fix implementable here.

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