>>> >>> 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
Yes, this unfortunately looks like the facebook-sdk folks are using something that isn't in Python 2.6. They say that their library should be compatible with 2.6, according to: http://facebook-sdk.readthedocs.org/en/latest/install.html but the dictionary comprehension used there is a Python 2.7 feature: https://docs.python.org/3.5/whatsnew/2.7.html#other-language-changes And in this situation, you will want to send a ping to the facebook-sdk folks: this is either considered a bug in the documentation, or a bug in the implementation. :P _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor