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

Error when installing via oaklib: subprocess-exited-with-error #306

Open
anitacaron opened this issue Aug 30, 2022 · 1 comment
Open

Error when installing via oaklib: subprocess-exited-with-error #306

anitacaron opened this issue Aug 30, 2022 · 1 comment
Labels
bug Something isn't working distribution Issue related to package build or distribution

Comments

@anitacaron
Copy link

I tried installing oak versions 0.1.32-0.1.36 and got this error for each.

Collecting fastobo~=0.12.1
  Using cached fastobo-0.12.1.tar.gz (20.1 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        File "/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/opt/homebrew/Cellar/[email protected]/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/build_meta.py", line 177, in get_requires_for_build_wheel
          return self._get_build_requires(
        File "/opt/homebrew/Cellar/[email protected]/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/build_meta.py", line 159, in _get_build_requires
          self.run_setup()
        File "/opt/homebrew/Cellar/[email protected]/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/build_meta.py", line 174, in run_setup
          exec(compile(code, __file__, 'exec'), locals())
        File "setup.py", line 13, in <module>
          import setuptools_rust as rust
        File "/private/var/folders/tt/t62pcpnn5bvbgf27x_pj70kr0000gp/T/pip-build-env-lsx2rjf7/overlay/lib/python3.9/site-packages/setuptools_rust/__init__.py", line 1, in <module>
          from .build import build_rust
        File "/private/var/folders/tt/t62pcpnn5bvbgf27x_pj70kr0000gp/T/pip-build-env-lsx2rjf7/overlay/lib/python3.9/site-packages/setuptools_rust/build.py", line 23, in <module>
          from setuptools.command.build import build as CommandBuild  # type: ignore[import]
      ModuleNotFoundError: No module named 'setuptools.command.build'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

I could solve the problem installing setuptools using the command line python3 -m pip install --upgrade pip setuptools wheel.
However, Chris Mungall asked to create this issue so OAK would be easier to install.

@althonos
Copy link
Member

althonos commented Oct 4, 2022

Hi Anita!

This problem seems to be linked with MacOS management of Python in particular, because normally I've setup everything so that pip automatically installs build requirements (setuptools and setuptools-rust) for building the package.

@althonos althonos added the bug Something isn't working label Oct 4, 2022
@althonos althonos added the distribution Issue related to package build or distribution label Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working distribution Issue related to package build or distribution
Projects
None yet
Development

No branches or pull requests

2 participants