Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to install gpiozero on Jessie lite #538

Closed
Arthurin opened this issue Feb 26, 2017 · 12 comments
Closed

No way to install gpiozero on Jessie lite #538

Arthurin opened this issue Feb 26, 2017 · 12 comments

Comments

@Arthurin
Copy link

Hello,
I can't install gpiozero using sudo apt-get install python-gpiozero, the package is not located.
There is no alternative listed in the documentation and google can't help me neither. It's quite frustrating since gpiozero is designed to make physical computing more accessible :/
Can i get some help please?

@bennuttall
Copy link
Member

There's no reason you couldn't install it on Jessie lite the way you described. The gpiozero package exists in the Raspbian repo so it's possible to install the usual way. If you're getting errors, perhaps you're not online or your package list needs updating first. You'll also need to install python-dev and/or python3-dev:

sudo apt update
sudo apt install python-dev python3-dev python-gpiozero python3-gpiozero

@Arthurin
Copy link
Author

I just have this error "E: Unable to locate package python-gpiozero".
I dit apt-get update and checked if python-dev was also updated.
Can't we find a link to the direct file to install it?

@bennuttall
Copy link
Member

I don't know why you're having this issue if you're online and your package list is updated.

You can try installing with pip:

sudo apt install python-pip python3-pip
sudo pip install gpiozero
sudo pip3 install gpiozero

@lurch
Copy link
Contributor

lurch commented Feb 27, 2017

I also don't know why this wouldn't be working - if I get time this evening I'll try to reproduce on a fresh install of Jessie Lite.
In the meantime, the .deb files themselves are at http://archive.raspberrypi.org/debian/pool/main/g/gpiozero/

@Arthurin
Copy link
Author

Arthurin commented Feb 27, 2017

Thank you very much for your responses, it worked with pip (it may be worth to include this in the doc?)

sudo apt install python-pip
sudo pip install gpiozero

Maybe it's because I'm on Volumio (https://volumio.org/discover/). They are based on Jessie Lite but it might change something? Here is the sources.list file :

-> cat /etc/apt/sources.list
deb http://archive.raspbian.org/raspbian jessie main contrib non-free
deb-src http://archive.raspbian.org/raspbian jessie main contrib non-free

@lurch
Copy link
Contributor

lurch commented Feb 27, 2017

Ahhh, looks like they're using upstream "pure Raspbian" from raspbian.org, which is actually different from the downstream "RPF Raspbian" from raspberrypi.org (which contains a bunch of extra packages and apt sources).

And if you've not already done so, you'll also want to make sure that you've got RPi.GPIO installed, otherwise you might find GpioZero is a bit slow.

Closing this issue.

@lurch lurch closed this as completed Feb 27, 2017
@lurch
Copy link
Contributor

lurch commented Mar 1, 2017

I can confirm that

sudo apt-get install python-gpiozero python3-gpiozero

works just fine on the Jessie Lite downloaded from https://www.raspberrypi.org/downloads/raspbian/
😃

@lurch
Copy link
Contributor

lurch commented Mar 1, 2017

Doh! Spoke too soon... ;-)

You also need to

sudo apt-get install python-pkg-resources python3-pkg-resources

(see #518 )

@bennuttall
Copy link
Member

bennuttall commented Mar 1, 2017

Also, you'll probably want to install a gpio pin library:

sudo apt install python-rpi.gpio python3-rpi.gpio

or:

sudo apt install python-pigpio python3-pigpio

(without a gpio pin library, gpiozero will use its own native pin implementation which is not recommended)

We should incorporate this into #523

@lurch
Copy link
Contributor

lurch commented Mar 1, 2017

you'll probably want to install a gpio pin library

https://github.com/RPi-Distro/python-gpiozero/blob/master/debian/control already Recommends python-rpi.gpio so this install is handled automatically :-)

@bennuttall
Copy link
Member

But that's a recommend, not a requirement, right?

@lurch
Copy link
Contributor

lurch commented Mar 1, 2017

Raspbian automatically installs Recommends packages. See previous discussions at #359 (comment) , #388 and #399

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants