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

Keep getting import errors #40

Closed
erikvanelten opened this issue Apr 12, 2017 · 7 comments
Closed

Keep getting import errors #40

erikvanelten opened this issue Apr 12, 2017 · 7 comments

Comments

@erikvanelten
Copy link

Tried it on a headless Pi Zero W and on a Pi 3B 1.2, with both Python 2.7.9 and Python 3.4.2 but every time I get the following when I try to run the first bit of code:

Traceback (most recent call last):
File "bluedot.py", line 1, in
from bluedot import BlueDot
File "/home/pi/bluedot/bluedot.py", line 1, in
from bluedot import BlueDot
ImportError: cannot import name BlueDot

@martinohanlon
Copy link
Owner

martinohanlon commented Apr 12, 2017 via email

@martinohanlon
Copy link
Owner

martinohanlon commented Apr 12, 2017 via email

@martinohanlon
Copy link
Owner

Put a note into the getting started instructions about not calling your program bluedot.

@martinohanlon
Copy link
Owner

Updated getting started guide.

@erikvanelten
Copy link
Author

erikvanelten commented Apr 12, 2017 via email

@crazyonej
Copy link

I am having the same issue as above, "ImportError: No module named bluedot"

I followed the steps but get the same error on both a zero w and Pi3

pi@raspberrypiFULL:/python $ python MyDot.py
Traceback (most recent call last):
File "MyDot.py", line 1, in
from bluedot import BlueDot
ImportError: No module named bluedot
pi@raspberrypiFULL:
/python $ sudo apt-get install python3-dbus
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-dbus is already the newest version (1.2.4-1).
The following packages were automatically installed and are no longer required:
lxkeymap python-cairo python-gobject python-gobject-2 python-gtk2 python-xklavier
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
pi@raspberrypiFULL:/python $ sudo pip3 install bluedot
Requirement already satisfied: bluedot in /usr/local/lib/python3.5/dist-packages
pi@raspberrypiFULL:
/python $
pi@raspberrypiFULL:~/python $ python MyDot.py
Traceback (most recent call last):
File "MyDot.py", line 1, in
from bluedot import BlueDot
ImportError: No module named bluedot

@martinohanlon
Copy link
Owner

You installed BlueDot for python 3 but you are running your program with python 2.

Change

python MyDot.py

To

python3 MyDot.py

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