toughengineer
Posts: 2
Joined: Mon Dec 28, 2015 9:45 pm

GP IO software

Mon Dec 28, 2015 9:59 pm

I tried to download the GPIO software library but keep getting this message:
E: Unable to locate package python3-w1thermsensor
E: Unable to locate package python3-spidev

I updated and upgraded my software as suggested...

User avatar
joan
Posts: 14936
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: GP IO software

Mon Dec 28, 2015 10:08 pm

There are no such packages.

Why do you think there are packages with those names?

toughengineer
Posts: 2
Joined: Mon Dec 28, 2015 9:45 pm

Re: GP IO software

Mon Jan 04, 2016 10:23 pm

Good point....
I was trying to follow these instructions....

***
Raspberry Pi Learning Resources

Getting Started With GPIO Zero
Requirements
Software

Teach
Learn
Make

Software Installation

To install the software you need, run the following commands in LXTerminal:

sudo apt-get install python3-pip python3-w1thermsensor python3-spidev
sudo pip-3.2 install gpiozero

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: GP IO software

Tue Jan 05, 2016 6:22 am

joan wrote:There are no such packages.

Why do you think there are packages with those names?
Actually, these do exist.
They are in the RPF repository and AFAICT they are only available for Raspbian Jessie.

Navyscourge
Posts: 258
Joined: Sat Oct 24, 2015 1:50 pm

Re: GP IO software

Tue Jan 05, 2016 7:56 am

The instructions are here: https://www.raspberrypi.org/learning/ge ... uirements/

They call for an updated Raspbian, with instructions here: https://www.raspberrypi.org/documentati ... pdating.md - this makes no mention of Wheezy / Jessie, how to tell what you have, and how to upgrade from Wheezy to Jessie

The software installation page just gives the install instructions, perhaps it could be clearer about what it is installing ;)

My installs give (among the output)

Code: Select all

python3-pip is already the newest version
Get:1 http://archive.raspberrypi.org/debian/ jessie/main python3-w1thermsensor all 0.2.2-1 [4,394 B]
python3-spidev is already the newest version
To check package versions:

Code: Select all

dpkg-query -W python3-pip
python3-pip     1.5.6-5
dpkg-query -W python3-spidev
python3-spidev  2.0~git20150907
So, can you check the output of "sudo apt-get update" shows "http://archive.raspberrypi.org/debian/ jessie/main" in the list? These are the places that the Pi is looking at to get the packages; the "apt-get update" command is updating those lists, not the software on your Pi

Return to “Beginners”