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

python-gpiozero should depend on python-pkg-resources #518

Closed
m-reiter opened this issue Jan 8, 2017 · 3 comments
Closed

python-gpiozero should depend on python-pkg-resources #518

m-reiter opened this issue Jan 8, 2017 · 3 comments
Labels
Milestone

Comments

@m-reiter
Copy link

m-reiter commented Jan 8, 2017

Importing Button from gpiozero fails if python-pkg-resources is not installed:

    from gpiozero import Button
  File "/usr/lib/python2.7/dist-packages/gpiozero/__init__.py", line 58, in <module>
    from .devices import (
  File "/usr/lib/python2.7/dist-packages/gpiozero/devices.py", line 18, in <module>
    import pkg_resources
ImportError: No module named pkg_resources

So I guess a dependency should probably be added.

@broo0ose
Copy link

broo0ose commented Feb 5, 2017

I'm getting this as well on python and python3

@bennuttall
Copy link
Member

You need to install python-dev and/or python3-dev:

sudo apt install python-dev python3-dev

@lurch
Copy link
Contributor

lurch commented Mar 1, 2017

...or you can just install python-pkg-resources and/or python3-pkg-resources :

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

(see #538 (comment) )

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

No branches or pull requests

5 participants