[twill] twill-0.9b1: Not able to import twill.commands with Python 2.3

Sergio Marcov smarcove at hotmail.com
Sun Mar 18 13:11:20 PDT 2007


Just as documentation if someone has same issue.Situation:I moved from 0.9a3 to 0.9b1. After that, I was not able to import twill.commands.Environment:Python 2.3.5 on WinXP (I can't choose...).twill 0.9b1 (lastest by March 18th, 2007).Dumps:Python 2.3.5 (#62, Feb  8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on win32Type "help", "copyright", "credits" or "license" for more information.>>> from twill.commands import *Traceback (most recent call last):  File "<stdin>", line 1, in ?  File "twill\__init__.py", line 52, in ?    from shell import TwillCommandLoop  File "twill\shell.py", line 9, in ?    from twill import commands, parse, __version__  File "twill\commands.py", line 66, in ?    from browser import TwillBrowser  File "twill\browser.py", line 18, in ?    from _browser import PatchedMechanizeBrowser  File "twill\_browser.py", line 11, in ?    from utils import run_tidy, StringIO, \  File "twill\utils.py", line 12, in ?    import subprocess  File "twill\other_packages\subprocess.py", line 366, in ?    from _subprocess import *ImportError: No module named _subprocessSolution/Workaround:Install subprocess module (http://effbot.org/downloads/subprocess-0.1-20041012.win32-py2.3.exe)Conclusion: Subprocess is included in Python 2.4. 
Python 2.3 has to be installed by hand.
Now I can take advantage of new "*_extra_headers" commands.Thnxs Titus!PS: this is my first email to list. Hope I am not doing it so wrong :S
_________________________________________________________________
Take a break and play crossword puzzles - FREE!
http://games.msn.com/en/flexicon/default.htm?icid=flexicon_ wlmemailtaglinemarch07
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.idyll.org/pipermail/twill/attachments/20070318/b5d536d5/attachment.htm 


More information about the twill mailing list