-
Notifications
You must be signed in to change notification settings - Fork 72
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
[Bug] protoc-wheel-0 dev dependency causing issues when building on musl-based distros like Alpine #412
Comments
What happens on musl-based platforms is that your system attempts to rebuild the wheel from scratch. We don't expect runtime users to have this, it is a dev dependency. You're also going to have to have Rust and protoc on the path and everything else that comes with building this project since we don't pre-build a musl wheel. We do require this dependency for proto generation to put |
This seems to be perfectly reasonable to me, this will give those without a choice a path forward. I will move this job onto a debian-based distro for now. Will musl be supported in the future with this sdk? |
I am unsure whether it will be supported in the future, but for now (as with windows arm, 32-bit, etc) it requires a custom build |
Sounds good, thanks for the help! |
I'm running into a similar issue, do you have any news with regards to this, any way to circumvent this?
Moving to python-slim images removes the error but alpine would be preferred |
I think this happens because we don't have a prebuilt musl wheel and |
I have same issue when I try to install Temporal SDK on FreeBSD `# python -m pip install temporalio × pip subprocess to install build dependencies did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × pip subprocess to install build dependencies did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip.` |
You can probably remove the Line 50 in afadc15
|
Hi @cretz, After removing the above line, I was successfully able to build the dependencies using "poetry install --no-root --all-extras" command But when I try to build the release build using "poetry build" command , I'm getting the following errors, ` poetry buildPreparing build environment with build-system requirements poetry-core>=1.0.0, setuptools, wheel, setuptools-rust, protoc-wheel-0 Command ['/tmp/tmpfe6rso36/.venv/bin/python', '/usr/local/lib/python3.8/site-packages/virtualenv/seed/wheels/embed/pip-24.0-py3-none-any.whl/pip', 'install', '--disable-pip-version-check', '--ignore-installed', '--no-input', 'poetry-core>=1.0.0', 'setuptools', 'wheel', 'setuptools-rust', 'protoc-wheel-0'] errored with the following return code 1 Output: Fyi - I'm referring below doc for building the Temporal Python SDK on FreeBSD. |
To remove a dependency with Poetry, you it needs to be removed from toml and lock file. |
Hey everyone, fyi, I was able to build and install the Temporal Python SDK on FreeBSD by removing the protoc-wheel-0 and adding the protobuf package. Thank you Temporal Team for your prompt help :) #protoc-wheel-0 = "^21.1" ---> remove this line |
Using cached temporalio-1.7.0.tar.gz (1.3 MB) note: This error originates from a subprocess, and is likely not a problem with pip. base image python 3.11-alpine3.16 |
I see an issue was opened at #622 and a new Slack thread was started. No need to double/triple post. |
What are you really trying to do?
I'm attempting to install
pip install temporalio
in Alpine v3.18 (Python 3.11.6). This doesn't seem to be possible given protoc-wheel-0 does not yet support newer versions (locked at 3.9). However, it does seem a minimal dependency that could be easily be isolated and eliminated.Is this on the roadmap for removal/deprecation?
Describe the bug
Minimal Reproduction
repro.dockerfile
docker build -f repro.dockerfile .
Environment/Versions
The text was updated successfully, but these errors were encountered: