Closed GoogleCodeExporter closed 9 years ago
Traceback (most recent call last):
File
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-de
fault.bundle/Contents/Resources/google_appengine/google/appengine/ext/webapp/__i
nit__.py",
line 498, in __call__
handler.get(*groups)
File "/Users/samj/Development/Internet/flitter/trunk/main.py", line 28, in get
api = twitter.Api(username="abc", password="xyz")
File "./python-twitter/twitter.py", line 1293, in __init__
self._cache = _FileCache()
File "./python-twitter/twitter.py", line 2046, in __init__
self._InitializeRootDirectory(root_directory)
File "./python-twitter/twitter.py", line 2106, in _InitializeRootDirectory
root_directory = self._GetTmpCachePath()
File "./python-twitter/twitter.py", line 2100, in _GetTmpCachePath
username = self._GetUsername()
File "./python-twitter/twitter.py", line 2094, in _GetUsername
os.getlogin() or \
AttributeError: 'module' object has no attribute 'getlogin'
You can easy enough ignore the AttributeError and pass back 'nobody' but I'm
not sure
of the implications for caching et al.
Sam
Original comment by s...@samj.net
on 12 Apr 2009 at 1:03
Attachments:
Yea, I ended up having to go with a simplified implementation since
python-twitter
uses a lot more modules then are included in GAE by default. Still, might be a
nice
goal to shoot for at some point.
Original comment by wjh...@gmail.com
on 12 Apr 2009 at 7:31
setting cache=None in the twitter.Api constructor avoids this error.
this is my quick fix until I implement a memcache solution for appengine.
Original comment by mhawthorne
on 10 May 2010 at 12:48
marking as fixed because you can do what comment 3 above suggests to avoid the
GAE issue
Original comment by bear42
on 18 Aug 2010 at 7:08
Original issue reported on code.google.com by
wjh...@gmail.com
on 31 Mar 2009 at 7:49