Using Twill from Python to open a link: “ 'module' object has no attribute 'Popen' ” What is it?

The tidy program does a nice job of producing correct HTML from mangled, broken, eeevil Web pages. By default, twill will run pages through tidy before processing them. This is on by default because the Python libraries that parse HTML are very bad at dealing with incorrect HTML, and will often return incorrect results on "real world" Web pages.To disable this feature, set config do_run_tidy 0.

Leoluk! Thank You for this input. I tried to set confing, but something went wrong.

Perhaps, I didn't do it the right way. Please, refer to the "Update 1" (in the main body of my question on this page) to see the details. Thank You.

– brilliant Sep 2 '10 at 6:20 1 That's a twill command, not python code. – Wooble Sep 2 '10 at 13:03 Wooble! Thanks for telling me that.

After I read this comment, I tried doing it in this way: config('use_tidy', '0') and it worked! So, You were right here: stackoverflow. Com/questions/2717325/… Twill CAN be included as a package into my python application to be run by "Google App Engine SDK" - at least I can do it locally on my computer!

Thank You! – brilliant Sep 2 '10 at 14:49.

You can't use anything in the Google App engine. Twill uses stuff not available on google app engine to work. So twill is not fully supported by app engine.

Notably, the code is trying to call on an external command, tidy, and calling external commands in app engine doesn't work.

Nosklo. Thanks for Your response. So what should I do now?

I've spent so much time learning twill, because here: stackoverflow. Com/questions/2717325/… I was told that I just needed to include in on "GAP" with my application when deploying and it would all work fine. Now You are telling me totally the opposite thing.

Can You, please, give me any clue as to what I could do? – brilliant Sep 1 '10 at 19:40 * to include it on "GAP" – brilliant Sep 1 '10 at 19:48 1 Host it somewhere else -- GAP sucks in terms of support of external libraries. If you use another hosting service it should work.

– nosklo Sep 2 '10 at 18:06 Thank You, nosklo, for telling me this, but GAP is the only hosting service that I know of that can run my code round a clock absolutely free. Do you know of any other such hosting services? – brilliant Sep 2 '10 at 19:01 1 @brilliant: I think paying for a host which doesn't restrict the code I can run is well worth it.

– nosklo Sep 7 '10 at 0:06.

I think you should use mechanize directly. Twill communicates with the system in a way that's not supported by Google App Engine. Import mechanize browser = mechanize.Browser() browser.

Open('python.org') for f in browser.forms(): print f # you'll have to extend it.

Leoluk! Can You, please, tell me how I could use mechanize directly? – brilliant Sep 1 '10 at 19:41 Thank You, leoluk, for this code!

But I just tried it and it said "No module named mechanize". Where can I get this module? – brilliant Sep 1 '10 at 19:45 1 pypi.python.Org/pypi/mechanize (btw, this is the place you will get nearly all modules) – leoluk Sep 1 '10 at 20:14 Thank You for this link, leoluk!

I think now I should start studying how to use mechanize. – brilliant Sep 1 '10 at 6:22.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions