Newbie Here - TwitterApi 2.2 and Python 3.4

102 views
Skip to first unread message

swat...@gmail.com

unread,
Jan 28, 2016, 11:06:50 AM1/28/16
to python-twitter
Hello!

I'm working on my first python script with the Twitter Api GetUserTimeline. I have the consumer key and access tokens from the developer's app account. I'm receiving 2 errors from importing the Twitter package and getting a filecache error. 

It seems like some setup issues - has anyone experience this before...? Any advice would be helpful! Thank you!

Swati

Traceback (most recent call last):
  File "C:/Users/Swati/PycharmProjects/TwitterTest/TwitterTest.py", line 2, in <module>
    import twitter
  File "C:\Python34\lib\site-packages\twitter\__init__.py", line 31, in <module>
    from _file_cache import _FileCache
ImportError: No module named '_file_cache'

swat...@gmail.com

unread,
Feb 28, 2016, 11:51:36 AM2/28/16
to python-twitter, swat...@gmail.com
Hello All!

Just seeing if anyone in the community has any updates - it would really be appreciated. Thanks!

Jeremy Low

unread,
Feb 28, 2016, 12:14:33 PM2/28/16
to python-twitter, swat...@gmail.com
Weird, I replied to this before, but I guess it didn't go through. Try upgrading Python-Twitter to v3.0rc1 as v2.2 doesn't really work with python 3. Alternatively, you can try using the latest master release on GitHub, which has better compatibility with py3.

Jeremy Low
jere...@gmail.com
--
You received this message because you are subscribed to the Google Groups "python-twitter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-twitte...@googlegroups.com.
To post to this group, send email to python-...@googlegroups.com.
Visit this group at https://groups.google.com/group/python-twitter.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages