> I've was looking more closely at the source code to try to file a bug for you: > > https://github.com/pythonforfacebook/facebook-sdk/tree/master/facebook > > but when I look again at the reported error message: > > ################################################################# > 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 > ################################################################# > > As of this writing, I still can't find such a file or line in the > facebook-sdk.
Hi Chris, For the sake of reproducibility, let me show what I'm doing to search for that in the repository, and show why I think the file you're running is not a part of the one provided by the facebook-sdk package. ############################################################# $ git clone https://github.com/pythonforfacebook/facebook-sdk.git Cloning into 'facebook-sdk'... remote: Reusing existing pack: 792, done. remote: Total 792 (delta 0), reused 0 (delta 0) Receiving objects: 100% (792/792), 136.14 KiB | 0 bytes/s, done. Resolving deltas: 100% (361/361), done. Checking connectivity... done. $ cd facebook-sdk/ $ git grep 'iteritems' $(git rev-list --all) $ ############################################################# This is what piqued my concerns. As you can see from the transcript, the search shows that there's not a single use of 'iteritems' anywhere in the facebook-sdk, across the entire history of that project. And yet the error message you're showing has a use of "args.iteritems()". Therefore, there's a discrepancy there that needs to be explained. Hope this helps! _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor