Blinka appears not to cooperate with (conda) env

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
nocom
 
Posts: 9
Joined: Thu Jan 19, 2023 3:37 am

Blinka appears not to cooperate with (conda) env

Post by nocom »

I installed the blinka stuff and tried to run blinkatest.py. Is crashes at the first line (import board) because board cannot be found. When I run the test as `sudo python blinkatest.py` it works correctly. The same when I disable anaconda initialization in my .bashrc script and run as `python blinkatest.py`. So I figure the library scripts are not installed in the environment libraries but in some global library. Is this the expected behavior? If so, is there a workaround for using adafruit products without blinka?

I have a raspberry 4 with the latest 64-bit version of raspberry os and the latest version of anaconda (22.9.0) for arm. I use environments because quite some projects have conflicting demands.

User avatar
mikeysklar
 
Posts: 13823
Joined: Mon Aug 01, 2016 8:10 pm

Re: Blinka appears not to cooperate with (conda) env

Post by mikeysklar »

Are you running the Anaconda distribution?
At this time, Blinka requires Python version 3.7 or later, which means you will need to at least be running Raspberry Pi OS Bullseye.
https://learn.adafruit.com/circuitpytho ... spberry-pi

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”