mechanize module install error

..just learning Python

Moderators: KDoiron, ChrJim, mawe, python

mechanize module install error

Postby nehasingh on Tue Mar 09, 2010 9:26 pm

:lol: i am getting error while installing mechanize module in command prompt. please help me with this error. the module that i have downloaded is mechanize-0.1.7b



C:\Documents and Settings\akoliyan\Desktop\mechanize-0.1.7b.tar\mechanize-0.1.7b
>python setup.py build
running build
running build_py

C:\Documents and Settings\akoliyan\Desktop\mechanize-0.1.7b.tar\mechanize-0.1.7b
>python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to mechanize.egg-info\requires.txt
writing mechanize.egg-info\PKG-INFO
writing top-level names to mechanize.egg-info\top_level.txt
writing dependency_links to mechanize.egg-info\dependency_links.txt
reading manifest file 'mechanize.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '0.1.0-changes.txt'
no previously-included directories found matching 'docs-in-progress'
writing manifest file 'mechanize.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build\bdist.win32\egg
creating build\bdist.win32\egg\mechanize
copying build\lib\mechanize\_auth.py -> build\bdist.win32\egg\mechanize
copying build\lib\mechanize\_beautifulsoup.py -> build\bdist.win32\egg\mechanize

copying build\lib\mechanize\_clientcookie.py -> build\bdist.win32\egg\mechanize
copying build\lib\mechanize\_debug.py -> build\bdist.win32\egg\mechanize
copying build\lib\mechanize\_gzip.py -> build\bdist.win32\egg\mechanize
copying build\lib\mechanize\_headersutil.py -> build\bdist.win32\egg\mechanize
copying build\lib\mechanize\_html.py -> build\bdist.win32\egg\mechanize
copying build\lib\mechanize\_http.py -> build\bdist.win32\egg\mechanize
copying build\lib\mechanize\_lwpcookiejar.py -> build\bdist.win32\egg\mechanize
copying build\lib\mechanize\_mechanize.py -> build\bdist.win32\egg\mechanize
copying build\lib\mechanize\_mozillacookiejar.py -> build\bdist.win32\egg\mechan
ize
copying build\lib\mechanize\_msiecookiejar.py -> build\bdist.win32\egg\mechanize

copying build\lib\mechanize\_opener.py -> build\bdist.win32\egg\mechanize
copying build\lib\mechanize\_pullparser.py -> build\bdist.win32\egg\mechanize
copying build\lib\mechanize\_request.py -> build\bdist.win32\egg\mechanize
copying build\lib\mechanize\_response.py -> build\bdist.win32\egg\mechanize
copying build\lib\mechanize\_rfc3986.py -> build\bdist.win32\egg\mechanize
copying build\lib\mechanize\_seek.py -> build\bdist.win32\egg\mechanize
copying build\lib\mechanize\_upgrade.py -> build\bdist.win32\egg\mechanize
copying build\lib\mechanize\_urllib2.py -> build\bdist.win32\egg\mechanize
copying build\lib\mechanize\_useragent.py -> build\bdist.win32\egg\mechanize
copying build\lib\mechanize\_util.py -> build\bdist.win32\egg\mechanize
copying build\lib\mechanize\__init__.py -> build\bdist.win32\egg\mechanize
byte-compiling build\bdist.win32\egg\mechanize\_auth.py to _auth.pyc
byte-compiling build\bdist.win32\egg\mechanize\_beautifulsoup.py to _beautifulso
up.pyc
byte-compiling build\bdist.win32\egg\mechanize\_clientcookie.py to _clientcookie
.pyc
byte-compiling build\bdist.win32\egg\mechanize\_debug.py to _debug.pyc
byte-compiling build\bdist.win32\egg\mechanize\_gzip.py to _gzip.pyc
byte-compiling build\bdist.win32\egg\mechanize\_headersutil.py to _headersutil.p
yc
byte-compiling build\bdist.win32\egg\mechanize\_html.py to _html.pyc
byte-compiling build\bdist.win32\egg\mechanize\_http.py to _http.pyc
byte-compiling build\bdist.win32\egg\mechanize\_lwpcookiejar.py to _lwpcookiejar
.pyc
byte-compiling build\bdist.win32\egg\mechanize\_mechanize.py to _mechanize.pyc
byte-compiling build\bdist.win32\egg\mechanize\_mozillacookiejar.py to _mozillac
ookiejar.pyc
byte-compiling build\bdist.win32\egg\mechanize\_msiecookiejar.py to _msiecookiej
ar.pyc
build\bdist.win32\egg\mechanize\_msiecookiejar.py:255: SyntaxWarning: assertion
is always true, perhaps remove parentheses?
assert (sig in ("HASH", "LEAK",
byte-compiling build\bdist.win32\egg\mechanize\_opener.py to _opener.pyc
byte-compiling build\bdist.win32\egg\mechanize\_pullparser.py to _pullparser.pyc

byte-compiling build\bdist.win32\egg\mechanize\_request.py to _request.pyc
byte-compiling build\bdist.win32\egg\mechanize\_response.py to _response.pyc
byte-compiling build\bdist.win32\egg\mechanize\_rfc3986.py to _rfc3986.pyc
byte-compiling build\bdist.win32\egg\mechanize\_seek.py to _seek.pyc
byte-compiling build\bdist.win32\egg\mechanize\_upgrade.py to _upgrade.pyc
byte-compiling build\bdist.win32\egg\mechanize\_urllib2.py to _urllib2.pyc
byte-compiling build\bdist.win32\egg\mechanize\_useragent.py to _useragent.pyc
byte-compiling build\bdist.win32\egg\mechanize\_util.py to _util.pyc
byte-compiling build\bdist.win32\egg\mechanize\__init__.py to __init__.pyc
creating build\bdist.win32\egg\EGG-INFO
copying mechanize.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
copying mechanize.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
copying mechanize.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INF
O
copying mechanize.egg-info\requires.txt -> build\bdist.win32\egg\EGG-INFO
copying mechanize.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
copying mechanize.egg-info\zip-safe -> build\bdist.win32\egg\EGG-INFO
creating 'dist\mechanize-0.1.7b-py2.6.egg' and adding 'build\bdist.win32\egg' to
it
removing 'build\bdist.win32\egg' (and everything under it)
Processing mechanize-0.1.7b-py2.6.egg
Removing c:\python26\lib\site-packages\mechanize-0.1.7b-py2.6.egg
Copying mechanize-0.1.7b-py2.6.egg to c:\python26\lib\site-packages
mechanize 0.1.7b is already the active version in easy-install.pth

Installed c:\python26\lib\site-packages\mechanize-0.1.7b-py2.6.egg
Processing dependencies for mechanize==0.1.7b
Searching for ClientForm==dev,>=0.2.6
Reading http://pypi.python.org/simple/ClientForm/
Download error: [Errno 10061] No connection could be made because the target mac
hine actively refused it -- Some packages may not be found!
Couldn't find index page for 'ClientForm' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Download error: [Errno 10061] No connection could be made because the target mac
hine actively refused it -- Some packages may not be found!
No local packages or download links found for ClientForm==dev,>=0.2.6
Best match: None
Traceback (most recent call last):
File "setup.py", line 146, in <module>
packages = packages,
File "C:\Python26\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python26\lib\distutils\dist.py", line 975, in run_commands
self.run_command(cmd)
File "C:\Python26\lib\distutils\dist.py", line 995, in run_command
cmd_obj.run()
File "build\bdist.win32\egg\setuptools\command\install.py", line 76, in run
File "build\bdist.win32\egg\setuptools\command\install.py", line 104, in do_eg
g_install
File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 211, in
run

File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 427, in
easy_install

File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 478, in
install_item

File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 519, in
process_distribution

File "build\bdist.win32\egg\pkg_resources.py", line 563, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "build\bdist.win32\egg\pkg_resources.py", line 799, in best_match
return self.obtain(req, installer) # try and download/install
File "build\bdist.win32\egg\pkg_resources.py", line 811, in obtain
return installer(requirement)
File "build\bdist.win32\egg\setuptools\command\easy_install.py", line 434, in
easy_install

File "build\bdist.win32\egg\setuptools\package_index.py", line 475, in fetch_d
istribution
AttributeError: 'NoneType' object has no attribute 'clone'[/color][/color]
nehasingh
New Python User
New Python User
 
Posts: 12
Joined: Sun Feb 21, 2010 9:47 pm

Return to Beginners..

Who is online

Users browsing this forum: Google [Bot], Stonefury, Yahoo [Bot] and 1 guest

Sponsored by Dreamlink Web hosting and Traduzioni Rumeno Italiano and ASSP Deluxe for cPanel.