I'm trying this presumably basic thing of importing Python Twitter library.
First I got an error in line 52, saying he couldn't upload a json library. That line of code is part of script where the library decides which json library it should import based on Python's version. I commented all lines addressing other versions of Python than the one I'm using and it worked.
Then another error popped up:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import twitter
File "C:\Python32\lib\twitter.py", line 3448
except urllib2.HTTPError, http_error:
^ SyntaxError: invalid syntax
This one I don't understand.
I tried importing this in versions 2.6, 2.7, 3.1 and 3.2.2, but none worked. In one I was asked for the oauth library, then oauth2. The first one I got right, the second one couldn't.
I think this should work in 3.2.2. Can anyone help me?
Thanks in advance