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

Cannot Import bbio #30

Closed
grizzlybair opened this issue Feb 18, 2014 · 7 comments
Closed

Cannot Import bbio #30

grizzlybair opened this issue Feb 18, 2014 · 7 comments

Comments

@grizzlybair
Copy link

Disclaimer: I'm new to Python

I'm simply trying to run the blink.py example and am getting the error:

ImportError: No module name api

I've tried searching for some answers on forums and through Google, to no avail. I'm on a bit of a time crunch (need a working prototype in a little more than a day). Help would be very much appreciated.

@grizzlybair
Copy link
Author

Resolved. I uninstalled and removed PyBBIO from my machines and recloned it from Github.

Don't know if it made a difference but I got my first clone from https://..... and this second one from http://......

@alexanderhiam
Copy link
Member

Glad it worked out. The install script may be doing something weird, I'll look into it.

@ghost
Copy link

ghost commented May 5, 2014

Just wanted to add that if anyone else has been having this issue, I ran an upgrade in pip and seems to work.

pip install --upgrade pybbio

@aclewis182
Copy link

I am now having the same issue on a fresh install of Debian. Was there anything off in the setups script?

@alexanderhiam
Copy link
Member

Hmm, I just recently installed it on a fresh Debian image and it worked for me.

If you're getting the ImportError: No module name api error, then you may be trying to import bbio from within the PyBBIO directory. When you import in Python, it first searches the current directory, so if you started Python from within PyBBIO/ it will try to import the bbio source instead of the installed version.

@aclewis182
Copy link

Alright.... I just came to the same conclusion about running it from the PyBBIO dir... face palm I've been so used to doing pip installs where I don't have the local files in front of me. Thanks for the quick response.

@rameshprakash
Copy link

I came across the following error
Traceback (most recent call last):
File "speed_test.py", line 2, in
from bbio import *
ImportError: No module named bbio

I am running python in home directory. PyBBIO directory is installed under home directory! Please let me know how to fix this?

Thanks,

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

4 participants