when install plotly-resampler Collecting lttbc==0.2.0 always fail
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 "
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.
using normal-way setup.py may be better, not using subprocess install
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.
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)
Damn @jonasvdd beat me by 3 seconds :upside_down_face:
🐎
Hi @clemente0420
Did installing plotly-resampler==0.8.0rc5 work for you?
Hi @clemente0420,
Could you try pip install plotly-resampler==0.8.0rc12 (skip the ones in between 🤡).
Kind regards, Jonas
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 @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.
Closed this issue as plotly-resampler>=0.8.0 does not depend on LTTBC anymore.