Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

Neopixel Software Problems
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Neopixel Software Problems

by cry1123 on Fri Jul 31, 2020 1:05 am

I've been having difficulty installing the software for driving Neopixels. I worked through the guide and had no luck. I kept running into error messages concerning Blinka. Finally, I read a response by MakerMelissa who prompted another person to use:

pip install <package name> rather than sudo pip install <package name>

This seemed to work as the Blinka errors went away and the installs finished.

I ran:

sudo python neopixel_rpi_simpletest.py

to check the installations and it failed. The Import statements for Board and Neopixel both failed (I changed the order as a check) with the messages:

ImportError: No module named board and ImportError: No module named neopixel

My system: Raspberry Pi 3B running the latest Raspberry Pi OS with Python 3.7.3.

I searched the file system and found the downloaded files in directory:

/home/pi/.local/lib/python3.7/site-packages

Any help you can offer would be appreciated.

cry1123
 
Posts: 2
Joined: Fri Jul 31, 2020 12:37 am

Re: Neopixel Software Problems

by dastels on Fri Jul 31, 2020 10:58 am

Try running without sudo. Your user and root are different environments and may be (probably) looking in different places for the modules.

Dave

dastels
 
Posts: 3000
Joined: Tue Oct 20, 2015 3:22 pm

Re: Neopixel Software Problems

by cry1123 on Fri Jul 31, 2020 12:46 pm

Dave: I tried running without sudo before I posted. Besides some error messages, the final message was that I have to run with sudo (paraphrasing here)'

cry1123
 
Posts: 2
Joined: Fri Jul 31, 2020 12:37 am

Please be positive and constructive with your questions and comments.