Open mikecanann opened 14 hours ago
Are you able to use basic example ? And you installed it in your system on venv or on system with --break-system flag ?
I'm attempting to use the 10 line basic example. And I'm using venv
I would suggest you try to install it to the system itself
pip install pi5neo --break-system
or pip3 install pi5neo --break-system
don't forget to enable spi
use GPIO 10 and connect the ground to raspi too if using external power
Tried that, still getting the issue:
$ python3 pi5neo.py
Traceback (most recent call last):
File "/home/mikec/src/pi5neo.py", line 2, in
I also have the GPIO set to 10 (and configured and turned on in the OS), and the ground is also connected to the raspberry pi 5
By the way, I have this working with neopixel_spi. I can use the examples from that project and the lights work.
Change your filename from pi5neo.py to something else
from pi5neo import Pi5Neo
here it trying to find the module from the script you are running itself thats why the issue
Thank you for your help! And sorry for such a beginners mistake.
ImportError: cannot import name 'Pi5Neo' from partially initialized module 'pi5neo' (most likely due to a circular import) (/home/mikec/src/light_project/pi5neo.py)