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 in the lttbc=0.2.0 dependency. Blocks the installation in openshift #106

Closed
thanosam opened this issue Jul 19, 2022 · 6 comments
Closed
Labels
installation Problem with installing the package or necessary dependencies

Comments

@thanosam
Copy link

thanosam commented Jul 19, 2022

In my app, when I add the plotly-resampler in my requirements file and I try to deploy it in openshift I receive the following error:

Collecting tenacity>=6.2.0
Downloading http:......../packages/tenacity/8.0.1/tenacity-8.0.1-py3-none-any.whl (24 kB)
Collecting lttbc==0.2.0
Downloading http:....../packages/lttbc/0.2.0/lttbc-0.2.0.tar.gz (91 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 91.4/91.4 kB 351.3 MB/s eta 0:00:00
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-2odxphd1/lttbc_514ddccd4677437fb07b2fbc930424d3/setup.py", line 7, in
import numpy
ModuleNotFoundError: No module named 'numpy'
[end of output]

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

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
error: build error: er.....................

It seems that in setup.py file of the lttbc==0.2.0 is imported the numpy in line 7, something that changed in lttbc==0.2.1. Why in your dependencies exists lttbc==0.2.0 and not lttbc>0.2.0?

@thanosam thanosam changed the title Error in the lttbc=0.2.0 dependency blocks the installation in openshift Error in the lttbc=0.2.0 dependency. Blocks the installation in openshift Jul 19, 2022
@jvdd
Copy link
Member

jvdd commented Jul 19, 2022

Hi @thanosam

In commit 5ed847b @jonasvdd fixated the version on 0.2.0 (perhaps he can explain why?)

However, in PR #103 we added an adapted C implementation of the LTTB algorithm in this repository. As such the lttbc dependency is dropped now.
We haven't made a new release yet, but you can try install the pre-release? pip install plotly-resampler==0.8.0rc5

Cheers,
Jeroen

@jvdd jvdd added the installation Problem with installing the package or necessary dependencies label Jul 20, 2022
@jvdd
Copy link
Member

jvdd commented Jul 28, 2022

Hi @thanosam, can you confirm that installing the pre-release resolves the issue?

@thanosam
Copy link
Author

I didn't install the prerelease yet. Currently I solved it by forcing the installation of numpy in the setup file.

@jonasvdd
Copy link
Member

jonasvdd commented Jul 30, 2022

Hi @thanosam,

Have you found time to install the pre-release? (currently the latest is pip install plotly-resampler==0.8.0rc12)

@thanosam
Copy link
Author

thanosam commented Aug 1, 2022

Hello,

I tried the 0.8.0rc12 and it seems that it works. But since it's prerelease, I install back the 7.2.2 with the setup file solution and I work with this version.

@jonasvdd
Copy link
Member

jonasvdd commented Aug 1, 2022

okay, as it seems resolved, I will close this issue for now!

@jonasvdd jonasvdd closed this as completed Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation Problem with installing the package or necessary dependencies
Projects
None yet
Development

No branches or pull requests

3 participants