Uncategorized

circuitpython install notes

Asked 
Active today
Viewed 77 times
0

I read MagPi 84 Aug 2019 page 44 Melissa LeBlanc_Williams’s article on using Rpi4 circuitPython to control a robot using two boards:

(1) BNO055 9-Degrees-of-Freedom (DOF) Absolute Orientation Module, and

(2) PCA9685 16-Channel 12-bit PWM/Servo Driver Module.

I followed the instructions to install python3, setup tools, adafruit-blinka library. I got stuck at Step 8:

pip3 install adafruit-blinka

The error message was:

cannot find version that satisfies the requirement, … no matching distro found for adafruit-blinka

My configuration is Rpi4B 2GB Raspbian 10 buster.

Any help or tip appreciated.

Update 2019jul27hkt1629

@milliways’ Rpi4B buster works OK. I am not sure if the reason is that my kernel is too old. I need to update my kernel and tried again.

I checked that my raspbian release date was 2019jun20. The latest release is 2019jul10. I guessed beside the kernel, there might be other packages or drivers out of date. I might have also installed other conflicting software when I played with other things earlier. So I guessed the cleanest solution is to start everything from scratch: download the latest raspbian, and first thing first is to install Adafruit circuit python blinka.

So I installed Raspbian (buster 2019jul10) again. The welcome screen says the release page is not ready, until some 20 days later. I guess this might cause trouble. So I exit GUI desktop straight away and start installing circuit python blinka in terminal mode.

This time everything went smoothly. My conclusion that the root cause of my installation problem is that my Raspbian dated 2019jun20 is out of date. I might also installed other packages earlier and they crash with circuit python’s blinka library.

Anyway, problem solved.

Update 2019aug08hkt1121

I have also clarified my mind on why using “sudo pip3 install” first, and just “pip3 install” (no sudo) later. See this thread for details: No module named ‘adafruit_circuitpython_servokit’

  • 1
    We do not mark the headline [Solved]. This is shown by accepting an answer. – Ingo Jul 27 at 15:47
  • Well, some forums advise to mark the question solved, for the following reasons: (1) Future readers won’t waste time reading questions without answer, (2) Future readers who would like to learn something from the topic. Some forums recommends/encourage to mark the question solved. Some forums auto mark question solved when accepted. Some forums even has “best” answer option, or place answer with most upvotes at top. “How do mark my own Topic as SOLVED?” Thread starterKreelor Start date Apr 21, 2010: forums.tomshardware.com/threads/…. – tlfong01 Jul 28 at 1:28   
  • Actually I did both. I FIRST accepted the answer, with an extra up vote, BEFORE I marked the question solved. I always wish I can rate the answer with points, say 5 out of 10. I also wish to mark some answers as “out dated”, or “only for jessie, not stretch” etc (That is why I “marked” my question “for Rpi4 only”). When I was a Rpi newbie a couple of years ago, I actually wasted a lot of time reading and trying out outdated answers. – tlfong01 Jul 28 at 1:37    
  • You told me how other sites handle this but that’s not Raspberry Pi. As far as I know it was said anywhere that we should not mark the headline [Solved] so I have searched for a policy in the Help Center without success. Let’s discuss it on meta. – Ingo Jul 28 at 9:41
  • @Ingo, OK, let us discuss on meta later. – tlfong01 Jul 28 at 9:46   
  • Please don’t use “solved” tags. That’s not how Stackexchange works. Thanks. – Ghanima Jul 28 at 22:37
  • @Ghanima, Thanks a lot for your advice. So I will removed it. Cheers. – tlfong01 Jul 29 at 0:43   

2

Works here:-

 sudo pip3 install adafruit-blinka
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting adafruit-blinka
  Downloading https://www.piwheels.org/simple/adafruit-blinka/Adafruit_Blinka-2.2.0-py3-none-any.whl (79kB)
    100% |################################| 81kB 123kB/s 

..

- Original Installation
Raspberry Pi reference 2019-06-20
- Current OS
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 10 (buster)
Release:    10
Codename:   buster
- Kernel
4.19.58-v7l+
- Model
Raspberry Pi 4 Model B Rev 1.1

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: