Page 1 of 1

GP IO software

Posted: Mon Dec 28, 2015 9:59 pm
by toughengineer
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...

Re: GP IO software

Posted: Mon Dec 28, 2015 10:08 pm
by joan
There are no such packages.

Why do you think there are packages with those names?

Re: GP IO software

Posted: Mon Jan 04, 2016 10:23 pm
by toughengineer
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

Re: GP IO software

Posted: Tue Jan 05, 2016 6:22 am
by DirkS
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.

Re: GP IO software

Posted: Tue Jan 05, 2016 7:56 am
by Navyscourge
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