Comments (8)
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.
from mqtt-io.
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):
$dmesg
...
[ 0.000000] Linux version 6.1.0-rpi4-rpi-v8 ([email protected]) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Debian 1:6.1.54-1+rpt2 (2023-10-05)
[ 0.000000] random: crng init done
[ 0.000000] Machine model: Raspberry Pi Zero 2 W Rev 1.0
...
That fails as well with the same reasons, but works with the Workaround above
Just to let anybody know, that you don't have to order different hardware...
from mqtt-io.
found some more hints:
poetry 1.6 has a bug that didn't got fixed with its pullrequest to 1.6.1: python-poetry/poetry#8336
so to get over the atomic_open import fail which is because requests <2.26 I reinstalled it with:
pip install --force-reinstall -v "requests==2.31"`
and got this funny warning:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
poetry 1.6.1 requires platformdirs<4.0.0,>=3.0.0, but you have platformdirs 2.4.0 which is incompatible.
then did: pip install --force-reinstall -v "platformdirs==3.11.0"
& pip install --force-reinstall -v "filelock==3.12.4"
as it showed the same error...
I don't know if the pip installation has something to do with the poetry installation, but I leave it up to you to take that in to account...
from mqtt-io.
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 pip3 install mqtt-io
from mqtt-io.
I'm having a similar issue
RPi 3B+
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Python 3.11.4
pip 23.3.1
from mqtt-io.
Also ended here with the same Problem
Raspberry Pi 2 Model B Rev 1.1
PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)"
Python 3.11.2
pip 23.3.1
from mqtt-io.
Workaround works for me, too!
I am on DietPi with Debian Bookworm (Python 3.11).
from mqtt-io.
THis seems to be fixed in latest mqtt-io 2.3.0?
from mqtt-io.
Related Issues (20)
- Raspberry pi 5 support? HOT 2
- use RPIO instead of RPi.GPIO
- Separate Devices Running MQTT IO Are Recognized as a Single Device in Home Assistant HOT 1
- MQTT Io On OrangePi 5 HOT 1
- Issues with paho-mqtt 2.0 HOT 5
- Crash using gpiod HOT 1
- Release version 2.3.0
- New version not working HOT 12
- Wont Connect to MQTT Broker and getting error in log from python script HOT 2
- DHT22 Adafruit_DHT problem HOT 3
- MCP23017 module not starting in mqtt-io Add-on HOT 1
- Crash on startup HOT 6
- Request support for Orange Pi CM4
- Incompatibility Python typing-extensions HOT 1
- adxl345 Module outdated and does not install HOT 1
- MQTT does not reconnect on authentication failure
- docker not buildable due to "Package docutils (0.21.post1) not found."
- Add support for HTU21d
- Adafruit_DHT (DHT22, ...) package is deprecated on Raspberry Pi HOT 5
- mqtt_io/modules/sensor/bmp085.py:51:0: C0305: Trailing newlines (trailing-newlines)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mqtt-io.