Exception in Twitter api

7 views
Skip to first unread message

Nitin Shrimali

unread,
Jul 30, 2010, 3:12:42 AM7/30/10
to google-a...@googlegroups.com
Hello
          I am using twitter api in appengine and on integrating it is giving me 


NotImplementedError at /monitor-twitter

Only tempfile.TemporaryFile is available for use
Request Method: GET


Exception Type: NotImplementedError
Exception Value:
Only tempfile.TemporaryFile is available for use
Exception Location: /base/python_runtime/python_dist/lib/python2.5/tempfile.py in PlaceHolder, line 45
Python Executable: /base/
Python Version: 2.5.2
Python Path: ['/base/data/home/apps/nilgiriapp/1.343724449556985313', '/base/python_runtime/python_dist/lib/python25.zip', '/base/python_runtime/python_lib/versions/third_party/django-1.1', '/base/python_runtime/python_dist/lib/python2.5/', '/base/python_runtime/python_dist/lib/python2.5/plat-linux2', '/base/python_runtime/python_dist/lib/python2.5/lib-tk', '/base/python_runtime/python_dist/lib/python2.5/lib-dynload', '/base/python_runtime/python_lib/versions/1', '/base/data/home/apps/nilgiriapp/1.343724449556985313/']
Server time: Fri, 30 Jul 2010 07:06:58 +0000
       

Excepiton in       " api = twitter.Api() " line. Please help me out of this.

Thanks in advance for your attention and help.

With Regards
Nitin



Geoffrey Spear

unread,
Jul 30, 2010, 11:55:34 AM7/30/10
to Google App Engine
App Engine applications cannot write to the filesystem; the library
you're using is expecting to be able to write to a temporary file,
which is impossible.

On Jul 30, 3:12 am, Nitin Shrimali <shrimali.k.ni...@gmail.com> wrote:
> Hello
>           I am using twitter api in appengine and on integrating it is
> giving me
>
> NotImplementedError at /monitor-twitter
>
> Only tempfile.TemporaryFile is available for use
>
>  Request Method: GET
>
>  Exception Type: NotImplementedError  Exception Value:
>
> Only tempfile.TemporaryFile is available for use
>
>  Exception Location: /base/python_runtime/python_dist/lib/python2.5/tempfile.py
> in PlaceHolder, line 45  Python Executable: /base/  Python Version:
> 2.5.2  Python
> Path: ['/base/data/home/apps/nilgiriapp/1.343724449556985313',
> '/base/python_runtime/python_dist/lib/python25.zip',
> '/base/python_runtime/python_lib/versions/third_party/django-1.1',
> '/base/python_runtime/python_dist/lib/python2.5/',
> '/base/python_runtime/python_dist/lib/python2.5/plat-linux2',
> '/base/python_runtime/python_dist/lib/python2.5/lib-tk',
> '/base/python_runtime/python_dist/lib/python2.5/lib-dynload',
> '/base/python_runtime/python_lib/versions/1',
> '/base/data/home/apps/nilgiriapp/1.343724449556985313/']  Server time: Fri,
> 30 Jul 2010 07:06:58 +0000
>
> Excepiton in       " *api = twitter.Api() " line. Please help me out of
> this.*
> *
> *
> *Thanks in advance for your attention and help.*
> *
> *
> *With Regards*
> *Nitin*

Nitin Shrimali

unread,
Jul 31, 2010, 1:05:13 AM7/31/10
to google-a...@googlegroups.com
Thanks Geoffrey
                   But is there any other api which enable me to do the same thing as i want to do with this one. If yes please help me in figuring out this problem.

With Regards
Nitin




--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.




Tim Hoffman

unread,
Jul 31, 2010, 2:09:54 AM7/31/10
to Google App Engine
Hi

Have your read the code in the twitter library you are using ?

If you did you will see that it has a default cache implementation
that writes to the filesystem. Writing to the filesystem is not
possible in appengine.
You will need to supply an alternate cache implementation (use
memcache for instance) when you call twitter.Api().

If you can not write your own or find one, have you tried google -
try "python twitter api" ? There are other twitter libraries for
python available.

T



On Jul 31, 1:05 pm, Nitin Shrimali <shrimali.k.ni...@gmail.com> wrote:
> Thanks Geoffrey
>                    But is there any other api which enable me to do the same
> thing as i want to do with this one. If yes please help me in figuring out
> this problem.
>
> With Regards
> Nitin
>
> > google-appengi...@googlegroups.com<google-appengine%2Bunsubscrib e...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages