[google-appengine] Re: raise NotImplementedError("Only tempfile.TemporaryFile is available for use")

2009-04-14 Thread venkat rambotla
hi mahmoud, I tried with the twitter.py patch which u forwarded,but i am still getting some errors when i run my app... Traceback (most recent call last): *File "F:\Projects\SampApp\src\Main.py", line 6, in * users = api.GetFriends() *File "F:\Projects\SampApp\src\Twitter\twitter.py", line 10

[google-appengine] Re: raise NotImplementedError("Only tempfile.TemporaryFile is available for use")

2009-03-21 Thread Mahmoud
Venkat, You should try Miha's patch here: http://persistent.info/files/twitter_appengine.patch It patches twitter.py to work with GAE's restrictions. -Mahmoud On Mar 20, 8:19 am, venkat rambotla wrote: > hey hi tim, > my twitter.py code goes like this > > #!/*usr*/bin/*python > * > > # > > # C

[google-appengine] Re: raise NotImplementedError("Only tempfile.TemporaryFile is available for use")

2009-03-20 Thread Tim Hoffman
Hi Venkat I am sorry I don't have time to work on this for you. I would look at implementing an alternative to _FileCache and then set it with a call to SetCache and pass an instance of you new caching scheme. If you have a look it will be pretty simple to replace _FileCache with a cache based

[google-appengine] Re: raise NotImplementedError("Only tempfile.TemporaryFile is available for use")

2009-03-20 Thread venkat rambotla
hi tim, sorry to disturb u again,i commented caching directory in twitter.py,but the following error as come *File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2711, in _HandleRequest * base_env_dict=env_dict) *File "C:\Program Files\Google\google_ap

[google-appengine] Re: raise NotImplementedError("Only tempfile.TemporaryFile is available for use")

2009-03-20 Thread Tim Hoffman
Hi Venkat Did you read your traceback See the line return os.path.join(tempfile.gettempdir(), cache_directory) Now go back to the docs url I included and notice it says tempfile module does support anything except for TemporaryFile. "tempfile is disabled, except for TemporaryFile which is ali

[google-appengine] Re: raise NotImplementedError("Only tempfile.TemporaryFile is available for use")

2009-03-20 Thread venkat rambotla
Hi Tim. here is the traceback *File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2711, in _HandleRequest * base_env_dict=env_dict) *File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 380, in Dispatch * base

[google-appengine] Re: raise NotImplementedError("Only tempfile.TemporaryFile is available for use")

2009-03-20 Thread Tim Hoffman
Venkat You really need to start looking at code and docs (Also when you post errors include a little more of the traceback is more useful) What you will see is that some other code (ie maybe the twitter code) will be using tempfile.NamedTemporaryFile which is not supported in the restricted pyth