plotly-resampler icon indicating copy to clipboard operation
plotly-resampler copied to clipboard

when install plotly-resampler Collecting lttbc==0.2.0 always fail

Open clemente0731 opened this issue 3 years ago • 9 comments

Collecting lttbc==0.2.0 Downloading lttbc-0.2.0.tar.gz (91 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 91.4/91.4 kB 247.6 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-j1wawuxs/lttbc_df1b4fc03c7946fd893244304b8faa7f/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.

clemente0731 avatar Jul 28 '22 09:07 clemente0731

using normal-way setup.py may be better, not using subprocess install

clemente0731 avatar Jul 28 '22 09:07 clemente0731

Hi @clemente0420, can you try to install the plotly-resampler release candidate? https://pypi.org/project/plotly-resampler/0.8.0rc5/

In this version (see branch improve_docs), we added our own derived LTTB implementation instead of depending on lttbc.

jonasvdd avatar Jul 28 '22 09:07 jonasvdd

Hi @clemente0420,

I think this issue is related to #106

Does pip install plotly-resampler==0.8.0rc5 work for you? (as in this pre-release we removed the lttbc dependency and included an adapted C implementation in this repo - see more in my answer to #106)

jvdd avatar Jul 28 '22 09:07 jvdd

Damn @jonasvdd beat me by 3 seconds :upside_down_face:

jvdd avatar Jul 28 '22 09:07 jvdd

🐎

jonasvdd avatar Jul 28 '22 09:07 jonasvdd

Hi @clemente0420

Did installing plotly-resampler==0.8.0rc5 work for you?

jonasvdd avatar Jul 29 '22 13:07 jonasvdd

Hi @clemente0420,

Could you try pip install plotly-resampler==0.8.0rc12 (skip the ones in between 🤡).

Kind regards, Jonas

jonasvdd avatar Jul 30 '22 09:07 jonasvdd

Try to have preinstalled in your environment the numpy. You can do so in the setup.py file. This is how it worked for me so far (last plotly-resampler installed is 7.2.2)

thanosam avatar Aug 01 '22 07:08 thanosam

@thanosam @clemente0420,

Normally plotly-resampler==0.8.0 resolves this numpy build requirement + uses faster (self written) LTTB c bindings. 🚀 additionally we also added more documentation about installation errors in the FAQ section of our docs.

Note: when the current C code building fails; there is a slower LTTB python fallback; so normally you should now always be able to install the package.

jonasvdd avatar Aug 12 '22 07:08 jonasvdd

Closed this issue as plotly-resampler>=0.8.0 does not depend on LTTBC anymore.

jonasvdd avatar Aug 22 '22 12:08 jonasvdd