On Saturday 09 May 2015 04:28 PM, chandra wrote:
Dear Team,
For the statement "import tweepy", i am getting the following syntax error:
File
"C:\Python32\lib\site-packages\tweepy-3.2.0-py3.2.egg\tweepy\streaming.py",
line 149
self._buffer = u""
SyntaxError: invalid syntax
In Python 3, all strings are unicode strings. The u"..." syntax was
dropped from Python 3. Hence the error. My guess is that, a Python 2
package was accidentally installed for Python 3.
Regards,
Vijay
_______________________________________________
Chennaipy mailing list
Chennaipy@python.org
https://mail.python.org/mailman/listinfo/chennaipy