[Tutor] Using module Facebook

Alan Gauld alan.gauld at btinternet.com
Fri Jul 18 09:44:13 CEST 2014


On 18/07/14 04:54, Chris wrote:

> but I'm getting the following error:
>
> 	(facebook)[chris at cd facebook]$ ./fb1.py
> 	Traceback (most recent call last):
> 	  File "./fb1.py", line 3, in <module>
> 	    from facebook import Facebook
> 	ImportError: No module named facebook
>
> facebook.py is in:
>
> 	./lib/python2.6/site-packages/facebook.py

Are you sure thats the version of Python you are running
in the virtualenv?

And have you checked that that exact folder is in the sys.path?


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos



More information about the Tutor mailing list