Import mechanization module in python script

I tried to import a mechanization module into my python script like this,

from import mechanization Browser

But the Google appengine app throws HTTP 500 when accessing my script.

To make things clearer, let me give you a snapshot of my package structure,

root
 ....mechanize(where all the mechanize related files there)
 ....main.py
 ....app.yaml
 ....image
 ....script

Can someone help me solve this problem?

Thanks Ponmalar

+4
source share
3 answers

The mechanization home page says:

mechanize.Browser is a subclass of mechanize.UserAgentBase, which in turn is a subclass of urllib2.OpenerDirector

, urllib2 GAE, Google urlfetch. mechanize.UserAgentBase, urlfetch, .

+2

GAE 500, . , , .

, dev_appserver?

0

, , GAE urlfetch . , .

.

^ Ponmalar

0

All Articles