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

Pip install fails #1

Closed
GemmaTuron opened this issue Nov 7, 2022 · 3 comments
Closed

Pip install fails #1

GemmaTuron opened this issue Nov 7, 2022 · 3 comments

Comments

@GemmaTuron
Copy link
Member

Running setup.py install for lap ... error
error: subprocess-exited-with-error
When installing olinda using pip, it fails with the following message:

 × Running setup.py install for lap did not run successfully.
  │ exit code: 1
  ╰─> [13 lines of output]
      Partial import of lap during the build process.
      Traceback (most recent call last):
        File "/tmp/pip-install-_sku92w2/lap_616b1965e4864fae9beb9edcd33fcb24/setup.py", line 127, in get_numpy_status
          import numpy
      ModuleNotFoundError: No module named 'numpy'
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-_sku92w2/lap_616b1965e4864fae9beb9edcd33fcb24/setup.py", line 236, in <module>
          setup_package()
        File "/tmp/pip-install-_sku92w2/lap_616b1965e4864fae9beb9edcd33fcb24/setup.py", line 220, in setup_package
          raise ImportError('lap requires numpy, '
      ImportError: lap requires numpy, please "pip install numpy".
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> lap

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

@GemmaTuron
Copy link
Member Author

I have added numpy:
e3c60f1

@JHlozek
Copy link
Contributor

JHlozek commented May 9, 2024

@GemmaTuron, the numpy change above fixed the original issue.

However, I needed to restrict tensorflow to version = "^2.9, <2.16.0" to be able to import Olinda once it installed.

In addition, the following two changes are necessary to be able to run current Ersilia models:

  • the ersilia version needs updating to "^0.1.31"
  • this creates a conflict over pandas, which I can resolve by reducing the version to v1.3.5

I am working through troubleshooting issues further in the Olinda pipeline, but I will post that progress here: #3

@GemmaTuron
Copy link
Member Author

Thanks @JHlozek !

I'll close this issue so we center the discussion only in #3

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