------------------------------ On Fri, Jul 18, 2014 7:47 PM CEST Marc Tompkins wrote:
>On Fri, Jul 18, 2014 at 9:29 AM, Chris <ch2...@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@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 >> That' a dict comprehension and I am quite sure that those were introduced in Pyton 2.7. And you seem to be using v2.6 _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor