我试图使用带有DJango和cassandra-1.0.5的Pycassa-1.3.0,Cassandra正在运行但是运行Pycassa Setup(python setup.py)给了我错误404,
这里有痕迹:
Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c9-py
2.7.egg
Traceback (most recent call last):
File "setup.py", line 16, in <module>
use_setuptools()
File "C:\pycassa-1.3.0\ez_setup.py", line 95, in use_setuptools
return do_download()
File "C:\pycassa-1.3.0\ez_setup.py", line 89, in do_download
egg = download_setuptools(version, download_base, to_dir, download_delay)
File "C:\pycassa-1.3.0\ez_setup.py", line 150, in download_setuptools
src = urllib2.urlopen(url)
File "C:\Python27\lib\urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "C:\Python27\lib\urllib2.py", line 400, in open
response = meth(req, response)
File "C:\Python27\lib\urllib2.py", line 513, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Python27\lib\urllib2.py", line 438, in error
return self._call_chain(*args)
File "C:\Python27\lib\urllib2.py", line 372, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 521, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found
有什么想法吗?
谢谢
答案 0 :(得分:0)
看起来您没有安装setuptools,因此它正在尝试为您安装setuptools,但它查找的默认版本有点旧,因此该链接不再有效。
我会更新pycassa来解决问题,但在此期间你有几个选择:
DEFAULT_VERSION
中的ez_setup.py
更改为“0.6c11”