2011-12-18 44 views
1

我試着使用Pycassa-1.3.0使用Django和卡桑德拉-1.0.5,Cassandra是工作,但運行Pycassa設置(蟒蛇setup.py)給了我404錯誤,錯誤而在Win運行pycassa設置7

這裏是痕跡:

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

看起來你沒有安裝setuptools的,所以它試圖安裝setuptools你,但它看起來默認版本是有點老了,所以鏈接不再起作用。

我會更新pycassa來解決這個問題,但在此期間,你有兩個選擇:

  • 安裝setuptools手動
  • 更改DEFAULT_VERSIONez_setup.py是「0.6c11」
+0

感謝它的工作 – 2011-12-19 01:08:16