Closed bsimmo closed 4 months ago
So shut down. Attached the WeatherHAT (how did I not notice that missing).
Went through the install again just to check (two numpy errors) (This time it didn't try to run it itself)
So
weatherhat@weatherhat:~/weatherhat-python $ source ~/.virtualenvs/pimoroni/bin/activate
(pimoroni) weatherhat@weatherhat:~/weatherhat-python $ ls
CHANGELOG.md examples LICENSE pyproject.toml requirements-dev.txt testing tox.ini weatherhat
check.sh install.sh Makefile README.md requirements-examples.txt tests uninstall.sh
(pimoroni) weatherhat@weatherhat:~/weatherhat-python $ cd examples/
(pimoroni) weatherhat@weatherhat:~/weatherhat-python/examples $ ls
adafruit-io.py averaging.py basic.py BME280-compensated.py BME280.py buttons.py icons lcd.py settings.yml weather.py
(pimoroni) weatherhat@weatherhat:~/weatherhat-python/examples $ python weather.py
Traceback (most recent call last):
File "/home/weatherhat/weatherhat-python/examples/weather.py", line 9, in <module>
import gpiodevice
ModuleNotFoundError: No module named 'gpiodevice'
(pimoroni) weatherhat@weatherhat:~/weatherhat-python/examples $
As you can see the module is missing.
Seems it was NUMPY causing the problem https://github.com/pimoroni/weatherhat-python/issues/32 Seems to have installed fine as shown below
weatherhat@weatherhat:~ $ cd ./weatherhat-python/
weatherhat@weatherhat:~/weatherhat-python $ ./install.sh
Installing weatherhat...
This script should be run in a virtual Python environment.
Would you like us to create and/or use a default one? [y/N] y
Activating existing virtual Python environment in /home/weatherhat/.virtualenvs/pimoroni
source "/home/weatherhat/.virtualenvs/pimoroni/bin/activate"
Checking Dependencies. Please wait...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: toml in /usr/lib/python3/dist-packages (0.10.2)
Installing for Python 3.11.2...
Installing stable library from pypi.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting weatherhat
Using cached https://www.piwheels.org/simple/weatherhat/weatherhat-1.0.0-py3-none-any.whl (13 kB)
Collecting ltr559>=1.0.0
Using cached https://www.piwheels.org/simple/ltr559/ltr559-1.0.0-py3-none-any.whl (10 kB)
Collecting pimoroni-bme280>=1.0.0
Using cached https://www.piwheels.org/simple/pimoroni-bme280/pimoroni_bme280-1.0.0-py3-none-any.whl (7.8 kB)
Collecting pimoroni-ioexpander>=1.0.1
Using cached https://www.piwheels.org/simple/pimoroni-ioexpander/pimoroni_ioexpander-1.0.1-py3-none-any.whl (52 kB)
Requirement already satisfied: smbus2 in /usr/lib/python3/dist-packages (from weatherhat) (0.4.2)
Collecting st7789>=1.0.1
Using cached https://www.piwheels.org/simple/st7789/st7789-1.0.1-py3-none-any.whl (10 kB)
Collecting i2cdevice>=1.0.0
Using cached https://www.piwheels.org/simple/i2cdevice/i2cdevice-1.0.0-py3-none-any.whl (10 kB)
Collecting gpiod
Using cached https://www.piwheels.org/simple/gpiod/gpiod-2.2.0-cp311-cp311-linux_armv7l.whl (90 kB)
Collecting gpiodevice>=0.0.4
Using cached https://www.piwheels.org/simple/gpiodevice/gpiodevice-0.0.5-py3-none-any.whl (9.2 kB)
Collecting numpy>=1.26.4
Downloading https://www.piwheels.org/simple/numpy/numpy-2.0.0-cp311-cp311-linux_armv7l.whl (5.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.9/5.9 MB 3.7 MB/s eta 0:00:00
Collecting spidev>=3.6
Downloading https://www.piwheels.org/simple/spidev/spidev-3.6-cp311-cp311-linux_armv7l.whl (40 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.7/40.7 kB 1.7 MB/s eta 0:00:00
Installing collected packages: spidev, pimoroni-ioexpander, numpy, i2cdevice, gpiod, pimoroni-bme280, ltr559, gpiodevice, st7789, weatherhat
Attempting uninstall: spidev
Found existing installation: spidev 3.5
Not uninstalling spidev at /usr/lib/python3/dist-packages, outside environment /home/weatherhat/.virtualenvs/pimoroni
Can't uninstall 'spidev'. No files were found to uninstall.
Successfully installed gpiod-2.2.0 gpiodevice-0.0.5 i2cdevice-1.0.0 ltr559-1.0.0 numpy-2.0.0 pimoroni-bme280-1.0.0 pimoroni-ioexpander-1.0.1 spidev-3.6 st7789-1.0.1 weatherhat-1.0.0
Done!
Using config.txt in /boot/firmware
Running setup commands...
Setting up i2c and SPI..
Backing up /boot/firmware/config.txt to /boot/firmware/config.preinstall-weatherhat-2024-06-24-18-22-17.txt
Running: "sudo raspi-config nonint do_spi 0"
Running: "sudo raspi-config nonint do_i2c 0"
Would you like to copy examples to /home/weatherhat/Pimoroni/weatherhat? [y/N] y
Copying examples to /home/weatherhat/Pimoroni/weatherhat
Done!
Would you like to install example dependencies? [y/N] y
Installing dependencies from requirements-examples.txt...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting fonts
Using cached https://www.piwheels.org/simple/fonts/fonts-0.0.3-py3-none-any.whl (4.2 kB)
Collecting font-manrope
Using cached https://www.piwheels.org/simple/font-manrope/font_manrope-0.0.2-py3-none-any.whl (366 kB)
Collecting pyyaml
Using cached https://www.piwheels.org/simple/pyyaml/PyYAML-6.0.1-cp311-cp311-linux_armv7l.whl (45 kB)
Collecting adafruit-io
Using cached https://www.piwheels.org/simple/adafruit-io/adafruit_io-2.7.2-py3-none-any.whl (22 kB)
Requirement already satisfied: numpy in /home/weatherhat/.virtualenvs/pimoroni/lib/python3.11/site-packages (from -r requirements-examples.txt (line 5)) (2.0.0)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))': /simple/pillow/
Collecting pillow
Downloading https://www.piwheels.org/simple/pillow/pillow-10.3.0-cp311-cp311-linux_armv7l.whl (1.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 4.3 MB/s eta 0:00:00
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from adafruit-io->-r requirements-examples.txt (line 4)) (2.28.1)
Collecting paho-mqtt
Downloading https://www.piwheels.org/simple/paho-mqtt/paho_mqtt-2.1.0-py3-none-any.whl (67 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 67.2/67.2 kB 1.4 MB/s eta 0:00:00
Installing collected packages: fonts, font-manrope, pyyaml, pillow, paho-mqtt, adafruit-io
Successfully installed adafruit-io-2.7.2 font-manrope-0.0.2 fonts-0.0.3 paho-mqtt-2.1.0 pillow-10.3.0 pyyaml-6.0.1
Would you like to generate documentation? [y/N] y
Installing pdoc. Please wait...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pdoc in /home/weatherhat/.virtualenvs/pimoroni/lib/python3.11/site-packages (14.5.0)
Requirement already satisfied: Jinja2>=2.11.0 in /home/weatherhat/.virtualenvs/pimoroni/lib/python3.11/site-packages (from pdoc) (3.1.4)
Requirement already satisfied: pygments>=2.12.0 in /home/weatherhat/.virtualenvs/pimoroni/lib/python3.11/site-packages (from pdoc) (2.18.0)
Requirement already satisfied: MarkupSafe in /home/weatherhat/.virtualenvs/pimoroni/lib/python3.11/site-packages (from pdoc) (2.1.5)
Generating documentation.
Documentation saved to /home/weatherhat/Pimoroni/weatherhat/docs
Done!
All done!
If this is your first time installing you should reboot for hardware changes to take effect.
Find uninstall steps in /home/weatherhat/Pimoroni/weatherhat/uninstall.sh
I followed the instructions (had to install git)
It fails at the end with module errors etc.
It may or may not be related to NUMPY (see other separate report) but it is not saying it is that module, a quick look and I see gpiodevice missing.
Full setup log here Just a copy/paste of the first 3 steps from the setup box in the instructions at the start.