У меня тут случилась в связи с переездом на новую машину проблема с установкой setuptools. Качаю их отсюда: http://pypi.python.org/pypi/setuptools для винды и питона 2.5, устанавливаю - тут без проблем. Но почему-то после установки не работает easy_install (пишется в командной строке, что команда не найдена), а при попытке установить TurboGears 1.1 или 1.0.9 через
python setup.py install
Traceback (most recent call last):
File "setup.py", line 29, in <module>
test_suite = 'nose.collector',
File "C:\Python25\lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "C:\Python25\lib\distutils\dist.py", line 974, in run_commands
self.run_command(cmd)
File "C:\Python25\lib\distutils\dist.py", line 994, in run_command
cmd_obj.run()
File "C:\Python25\lib\site-packages\setuptools-0.6c11-py2.5.egg\setuptools\com
mand\install.py", line 76, in run
File "C:\Python25\lib\site-packages\setuptools-0.6c11-py2.5.egg\setuptools\com
mand\install.py", line 104, in do_egg_install
File "C:\Python25\lib\site-packages\easy_install.py", line 211, in run
File "C:\Python25\lib\site-packages\easy_install.py", line 427, in easy_instal
l
File "C:\Python25\lib\site-packages\easy_install.py", line 478, in install_ite
m
File "C:\Python25\lib\site-packages\easy_install.py", line 519, in process_dis
tribution
File "C:\Python25\lib\site-packages\pkg_resources.py", line 563, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "C:\Python25\lib\site-packages\pkg_resources.py", line 799, in best_match
return self.obtain(req, installer) # try and download/install
File "C:\Python25\lib\site-packages\pkg_resources.py", line 811, in obtain
return installer(requirement)
File "C:\Python25\lib\site-packages\easy_install.py", line 434, in easy_instal
l
File "C:\Python25\lib\site-packages\setuptools-0.6c11-py2.5.egg\setuptools\pac
kage_index.py", line 475, in fetch_distribution
AttributeError: 'NoneType' object has no attribute 'clone'
http://bugs.python.org/setuptools/issue90
Там же было предложено использовать дистрибьют с http://pypi.python.org/pypi/distribute, но у меня там почему-то вываливается ошибка авторизации:
H:\>python distribute_setup.py
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.1
0.tar.gz
Traceback (most recent call last):
File "distribute_setup.py", line 477, in <module>
main(sys.argv[1:])
File "distribute_setup.py", line 472, in main
tarball = download_setuptools()
File "distribute_setup.py", line 193, in download_setuptools
src = urlopen(url)
File "C:\Python25\lib\urllib2.py", line 124, in urlopen
return _opener.open(url, data)
File "C:\Python25\lib\urllib2.py", line 387, in open
response = meth(req, response)
File "C:\Python25\lib\urllib2.py", line 498, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Python25\lib\urllib2.py", line 419, in error
result = self._call_chain(*args)
File "C:\Python25\lib\urllib2.py", line 360, in _call_chain
result = func(*args)
File "C:\Python25\lib\urllib2.py", line 582, in http_error_302
return self.parent.open(new)
File "C:\Python25\lib\urllib2.py", line 387, in open
response = meth(req, response)
File "C:\Python25\lib\urllib2.py", line 498, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Python25\lib\urllib2.py", line 425, in error
return self._call_chain(*args)
File "C:\Python25\lib\urllib2.py", line 360, in _call_chain
result = func(*args)
File "C:\Python25\lib\urllib2.py", line 506, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 401: Authorization Required
Еще раз всех с наступающими :-)