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

The dependency py-rust-stemmers cannot be downloaded in a pure Python environment. #466

Open
gbaian10 opened this issue Feb 6, 2025 · 5 comments

Comments

@gbaian10
Copy link

gbaian10 commented Feb 6, 2025

I'm currently using Python 3.13, and when I use version 0.4.1, I find that the ONNX build speed is very slow.

I later found in this issue that the problem is related to ONNX's support for Python 3.13.

I later discovered in this repo that version 0.5.1 removed the dependency on onnx.

However, in this repo, after version 0.4.2, pystemmer was replaced with py-rust-stemmers.
#354 (comment)

When I tried to install py-rust-stemmers, it mentioned using maturin for building, which required me to install Rust-related packages.
This means I have to install Rust additionally in Docker or CI environments to handle this issue.

Is there any way to easily install py-rust-stemmers without installing Rust-related packages?

Or could pystemmer and py-rust-stemmers` be made into an optional download method?

@joein
Copy link
Member

joein commented Feb 17, 2025

hey @gbaian10

Sorry for the late response
It seems that py-rust-stemmers does not have a pre-built wheel for your setup, maturin is not required on the os for which py-rust-stemmer distributes a pre-built wheel
Could you please tell us the OS and architecture you're using fastembed on, so we could check whether it is possible to build a wheel for your OS?

@joein
Copy link
Member

joein commented Feb 17, 2025

The problem is that py-rust-stemmers is not building wheels for python3.13 yet, we'll address it

@gbaian10
Copy link
Author

Sorry for the late response It seems that py-rust-stemmers does not have a pre-built wheel for your setup, maturin is not required on the os for which py-rust-stemmer distributes a pre-built wheel Could you please tell us the OS and architecture you're using fastembed on, so we could check whether it is possible to build a wheel for your OS?

FROM python:3.13-slim-bookworm
RUN pip install fastembed

@joein
Copy link
Member

joein commented Feb 19, 2025

hey @gbaian10
We've released py-rust-stemmers 0.1.5, could you please give it a try?

We might need to update mmh3 dependency though

@gbaian10
Copy link
Author

hey @gbaian10 We've released py-rust-stemmers 0.1.5, could you please give it a try?

We might need to update mmh3 dependency though

FROM python:3.13-slim-bookworm
RUN apt-get update && apt-get install -y gcc
RUN pip install fastembed

It seems that I only need to install gcc to solve the mmh3 problem.

This has already solved many problems. Thank you for your help.

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