Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You cannot just double click setup.py</p> <p>You need to open command prompt or shell and go to that folder</p> <p>and need to do</p> <pre><code>python setup.py build python setup.py install </code></pre> <p>install step should automatically do build normally, so only last one will work</p> <hr> <p><strong>Edit</strong>: ok, here is superuser way of installation steps</p> <ol> <li><p>I have extracted twill-0.9.tar.gz to D:\tmp\twill-0.9</p></li> <li><p>I am on drive C, so I switched to D:</p> <pre>C:\><b>d:</b></pre></li> <li><p>Now, change the folder by using cd command</p> <pre>C:\><b>cd D:\tmp\twill-0.9</b></pre></li> <li><p>start the build process</p> <pre>D:\tmp\twill-0.9><b>python setup.py build</b> (WARNING: importing distutils, not setuptools!) D:\data\program\Python26\lib\distutils\dist.py:266: UserWarning: Unknown distribution option: 'entry_points' warnings.warn(msg) D:\data\program\Python26\lib\distutils\dist.py:266: UserWarning: Unknown distribution option: 'test_suite' warnings.warn(msg) running build running build_py creating build creating build\lib creating build\lib\twill ...... running build_scripts creating build\scripts-2.6 copying and adjusting twill-fork -> build\scripts-2.6</pre></li> <li><p>Install it</p> <pre>D:\tmp\twill-0.9><b>python setup.py install</b> (WARNING: importing distutils, not setuptools!) running install running build running build_py ...... running install_scripts copying build\scripts-2.6\twill-fork -> D:\data\program\Python26\Scripts running install_egg_info Writing D:\data\program\Python26\Lib\site-packages\twill-0.9-py2.6.egg-info</pre></li> <li><p>Test for import is or not</p> <pre>D:\tmp\twill-0.9&gt;<b>python</b> Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; <b>import twill</b> import re, base64, urlparse, posixpath, md5, sha, sys, copy twill\other_packages\_mechanize_dist\_auth.py:14: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import re, base64, urlparse, posixpath, md5, sha, sys, copy &gt;&gt;&gt;</pre></li> <li><p>Import was fine, but there is DeprecationWarnings on python 2.6, but this should be ok and should be no warnings at all with python 2.5</p></li> <li><p>confirm its properly imported or not, you will see twill and its functions there, so yes.</p> <pre>&gt;&gt;&gt; <b>dir()</b> ['__builtins__', '__doc__', '__name__', '__package__', 'twill'] &gt;&gt;&gt; <b>from twill.commands import *</b> &gt;&gt;&gt; <b>dir()</b> ['__builtins__', '__doc__', '__name__', '__package__', 'add_auth', 'add_extra_header', 'agent', 'back', 'clear_cookies', 'clear_extra_headers', 'code', 'config', 'debug', 'echo', 'exit', 'extend_with', 'fa', 'find', 'follow &gt;&gt;&gt;</pre></li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload