-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Hi,
When using a Raspberry Pi 5 and PiEEG and running the script 'python 1.8_ch_Pi5_gpiod_1_5_4.py https://github.com/pieeg-club/PiEEG/blob/main/1.GUI/1.8_ch_Pi5_gpiod_1_5_4.py
Could you please offer some debugging suggestions?
- The following exception occurred.
Traceback (most recent call last):
File "/home/zhangxing/Documents/my-pieeg-app-1/1.8_ch_Pi5_gpiod_1_5_4.py", line 9, in
chip = gpiod.chip("/dev/gpiochip4") #chip = gpiod.chip("/dev/gpiochip0")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zhangxing/Documents/my-pieeg-app-1/venv/lib/python3.11/site-packages/gpiod/libgpiodcxx/init.py", line 105, in init
self.open(device, how)
File "/home/zhangxing/Documents/my-pieeg-app-1/venv/lib/python3.11/site-packages/gpiod/libgpiodcxx/init.py", line 132, in open
chip_struct = func(device)
^^^^^^^^^^^^
File "/home/zhangxing/Documents/my-pieeg-app-1/venv/lib/python3.11/site-packages/gpiod/libgpiod/init.py", line 1098, in gpiod_chip_open_lookup
chip = gpiod_chip_open_by_label(descr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zhangxing/Documents/my-pieeg-app-1/venv/lib/python3.11/site-packages/gpiod/libgpiod/init.py", line 1065, in gpiod_chip_open_by_label
chip_iter = iter(gpiod_chip_iter())
^^^^^^^^^^^^^^^^^^^^^^^
TypeError: iter() returned non-iterator of type 'NoneType'
- The output of the 'pip list' command is as follows:
asttokens 3.0.0
colorzero 2.0
contourpy 1.3.1
cycler 0.12.1
decorator 5.1.1
executing 2.2.0
fonttools 4.55.5
gpiod 1.5.4
ipython 8.31.0
jedi 0.19.2
kiwisolver 1.4.8
matplotlib 3.10.0
matplotlib-inline 0.1.7
numpy 2.2.2
packaging 24.2
parso 0.8.4
pexpect 4.9.0
pillow 11.1.0
pip 23.0.1
prompt_toolkit 3.0.50
ptyprocess 0.7.0
pure_eval 0.2.3
Pygments 2.19.1
pyparsing 3.2.1
python-dateutil 2.9.0.post0
RPi.GPIO 0.7.1
scipy 1.15.1
setuptools 66.1.1
six 1.17.0
spidev 3.6
stack-data 0.6.3
traitlets 5.14.3
typing_extensions 4.12.2
wcwidth 0.2.13
3 gpiodetect
gpiochip0 [pinctrl-rp1] (54 lines)
gpiochip10 [gpio-brcmstb@107d508500] (32 lines)
gpiochip11 [gpio-brcmstb@107d508520] (4 lines)
gpiochip12 [gpio-brcmstb@107d517c00] (17 lines)
gpiochip13 [gpio-brcmstb@107d517c20] (6 lines)
gpiochip0 [pinctrl-rp1] (54 lines)