-
Notifications
You must be signed in to change notification settings - Fork 158
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
pip fails on pyyaml, poetry fails on requests.utils on a raspberry pi zero w #334
Comments
found some more hints:
then did: |
I'm having the same problem installing on a Raspberry Pi 4 B with the latest Raspberry Pi OS (64 bit). I've only tried installing via |
I'm having a similar issue Python 3.11.4 |
Also ended here with the same Problem Raspberry Pi 2 Model B Rev 1.1 |
So I believe I found a workaround. Something to do with PyYAML not having a maximum working version of Cython specified, and Cython 3.0 broke something. Thanks to the "Inline Constraint" on this page. Follow that link for more details, but here's the short version of what I did: # create a constraint file that limits the Cython version to one that should work
echo 'Cython < 3.0' > /tmp/constraint.txt
# install PyYAML itself (or other packages that need it); any package requiring Cython will be constrained to `Cython < 3.0`
PIP_CONSTRAINT=/tmp/constraint.txt pip install 'PyYAML==5.4.1'
# install mqtt-io, now that we have a working version of pyyaml
pip install mqtt-io Many thanks to nitzmahone for the workaround. |
I orderd an Pi Zero 2 W to test if it does not fail on more recent architecture (ARMv8) and OS (Raspberrypi OS lite 64bit):
That fails as well with the same reasons, but works with the Workaround above |
Workaround works for me, too! I am on DietPi with Debian Bookworm (Python 3.11). |
THis seems to be fixed in latest mqtt-io 2.3.0? |
Describe the bug
Installation on raspberry pi zero w fails with pip and poetry.
Expected behavior
pip should install mqtt-io.
Error messages and traceback
Then found similar:
#324
and related comments here: https://stackoverflow.com/questions/76708329/docker-compose-no-longer-building-image-attributeerror-cython-sources
definition of pyyaml seams ok:
mqtt-io/pyproject.toml
Line 12 in 2bb2f94
So I downloaded the source and installed with poetry:
where wrapt fails...
Installing as recomended with
pip wheel --use-pep517 "wrapt (==1.13.3)"
works fine but reinitializing~/mqtt-io $ poetry install
Throws this:
where a reinstallation of
pip install utils
does not help and throws the exact same as above again.Here i got stuck...
Config
not yet done.
Hardware
System:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: