[Tutor] Using module Facebook

Marc Tompkins marc.tompkins at gmail.com
Fri Jul 18 19:47:12 CEST 2014


On Fri, Jul 18, 2014 at 9:29 AM, Chris <ch2009 at arcor.de> wrote:

> On 07/18/2014 09:44 AM, Alan Gauld wrote:
> > Are you sure thats the version of Python you are running
> > in the virtualenv?
>
> I've modified the first line to #!./bin/python (instead of
> #!/usr/bin/python).
>
> Now, there's another error message:
>
> (facebook)[chris at cd facebook]$ ./fb1.py
> Traceback (most recent call last):
>   File "./fb1.py", line 6, in <module>
>     import facebook
>   File
> "/home/chris/software/facebook/lib/python2.6/site-packages/facebook.py",
> line 811
>     args = {k: v for k, v in args.iteritems() if v is not None}
>                    ^
> SyntaxError: invalid syntax
>
>
Well, you've fixed your original problem - that the facebook module wasn't
in the path for the copy of Python you were running - and exchanged it for
another: a syntax error in the facebook module itself.  (Might be that the
module isn't compatible with the version of Python you're now running;
might be an actual problem with the module, but you'd think that would've
been caught before...)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140718/2435398f/attachment.html>


More information about the Tutor mailing list