fujisakifujita / python-twitter

Automatically exported from code.google.com/p/python-twitter
Apache License 2.0
0 stars 0 forks source link

OSError: [Errno 2] No such file or directory cache problem #149

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. GetFollowers() call

What is the expected output? What do you see instead?

I expect a followers list , sometimes an error is produced:

What version of the product are you using? On what operating system?
twitter 0.6-devel
centos 

Please provide any additional information below.

 File "/home/notempo1320/webapps/darksitemoon/myproject/doorsLink/utils/services.py", line 40, in get_followers
   followers = api.GetFollowers()

 File "/home/notempo1320/webapps/darksitemoon/lib/python2.5/twitter/twitter.py", line 1602, in GetFollowers
   json = self._FetchUrl(url, parameters=parameters)

 File "/home/notempo1320/webapps/darksitemoon/lib/python2.5/twitter/twitter.py", line 2034, in _FetchUrl
   self._cache.Set(key, url_data)

 File "/home/notempo1320/webapps/darksitemoon/lib/python2.5/twitter/twitter.py", line 2074, in Set
   os.remove(path)

OSError: [Errno 2] No such file or directory: 
'/tmp/python.cache_notempo1320/2/8/c/28cb6c525727840b371f4834a54be23e'

Original issue reported on code.google.com by maigf...@gmail.com on 19 Jul 2010 at 9:05