@lif
That’s strange…Can you try to start with a new, fresh virtual python environment and install the needed libs again?
Remove old virtual environment:
rm -rf /home/pi/MagicMirror/modules/MMM-Temperature/scripts/py-venv
Install the needed system libs:
sudo apt -y update && sudo apt -y install python3-venv libgpiod2
Re-Create the virtual environment:
cd ~/MagicMirror/modules/MMM-Temperature/scripts
./venvWrapper.py --verbose --venv-name py-venv --create
Re-Install the libs:
cd ~/MagicMirror/modules/MMM-Temperature/scripts
./venvWrapper.py --venv-name py-venv --install-libs adafruit-circuitpython-dht
Run the test again:
cd ~/MagicMirror/modules/MMM-Temperature/scripts
./venvWrapper.py --venv-name py-venv --run ./dht22
If it fails again. Can you please provide the output of
cd ~/MagicMirror/modules/MMM-Temperature/scripts
source py-venv/bin/activate
pip freeze
deactivate
The output should look something like:
Adafruit-Blinka==8.66.1
Adafruit-Blinka-Raspberry-Pi5-Neopixel==1.0.0rc2
adafruit-circuitpython-busdevice==5.2.13
adafruit-circuitpython-connectionmanager==3.1.5
adafruit-circuitpython-dht==4.0.9
adafruit-circuitpython-requests==4.1.13
adafruit-circuitpython-typing==1.12.2
Adafruit-PlatformDetect==3.83.2
Adafruit-PureIO==1.1.11
binho-host-adapter==0.1.6
lgpio==0.2.2.0
pyftdi==0.57.1
pyserial==3.5
pyusb==1.3.1
rpi-ws281x==5.0.0
RPi.GPIO==0.7.1
sysv-ipc==1.1.0
typing_extensions==4.15.0