-
-
Notifications
You must be signed in to change notification settings - Fork 273
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
How to install underthesea on Alpine Docker image #705
Comments
Generally speaking, underthesea is compatible with Windows, Mac, and Linux operating systems, including Ubuntu and CentOS. I've personally tested it on my Ubuntu 20.04 workstation and my Mac M2. However, its compatibility across all versions hasn't been fully verified, and I've yet to test it on Alpine.
Thanks for bringing this to our attention. |
Update 2023-08-18 Today, I built an Alpine image using a Dockerfile with the configurations: alpine 3.16 and python 3.10.
Following your earlier suggestions, I attempted a manual installation:
You were right; the issue arises because underthesea-core doesn't support this specific environment. After a quick lookup, I found a relevant issue: PyO3/pyo3#599. I utilize pyo3 for crafting Python bindings for Rust, so this is certainly connected. I'll dive deeper into this matter at a later time. |
Hey @qhungbui7, After experimenting, I crafted a Dockerfile to generate the underthesea image. This image has been published to the GitHub registry. Give it a spin:
A brief overview of the Docker image creation:
I'm eager to hear how it works for you. Your feedback would be invaluable! |
I want to install underthesea in a Alpine docker image. However, it only installed a very old version of underthesea and it seems the problem comes from the new underthesea_core can't be found in Pip due to some reasons (I have updated, upgraded the apk manager and installed the newest version of pip)
I tried to manually install underthesea_core==1.0.4 directly and it said that
I suspect that the difference between Alpine architecture and Debian architecture makes the installation unsuccessful - it can also be related to the fact that underthesea_core was written by Rust. Can you guys give me details about the system requirements for installing underthesea /underthesea_core ? Thank you!
The text was updated successfully, but these errors were encountered: