0
我正在爲項目設置Fabric/virtualenv/pip自動化部署,我需要安裝python-couchdb的最新實驗分支。當然,我把它貼在我的點子需求文件,像這樣:爲什麼PIP從SVN安裝python-couchdb實驗分支失敗?
-e svn+http://couchdb-python.googlecode.com/svn/branches/experimental/[email protected]#egg=CouchDB-dev_r195
然而,當我跑我的部署,我收到以下錯誤並回溯:
[192.168.1.200] out: Obtaining CouchDB from svn+http://couchdb-python.googlecode.com/svn/branches/experimental/httplib/#egg=CouchDB (from -r requirements.txt (line 1))
[192.168.1.200] out: Checking out http://couchdb-python.googlecode.com/svn/branches/experimental/httplib/ to ./src/couchdb
[192.168.1.200] out: Error [Errno 2] No such file or directory while executing command svn checkout -q http://couchdb-python.googlecode.com/svn/branches/experimental/httplib/ /home/sk/votersdaily/src/couchdb
[192.168.1.200] out: Exception:
[192.168.1.200] out: Traceback (most recent call last):
[192.168.1.200] out: File "/usr/local/lib/python2.6/dist-packages/pip-0.6.1-py2.6.egg/pip.py", line 482, in main
[192.168.1.200] out: self.run(options, args)
[192.168.1.200] out: File "/usr/local/lib/python2.6/dist-packages/pip-0.6.1-py2.6.egg/pip.py", line 675, in run
[192.168.1.200] out: requirement_set.install_files(finder, force_root_egg_info=self.bundle)
[192.168.1.200] out: File "/usr/local/lib/python2.6/dist-packages/pip-0.6.1-py2.6.egg/pip.py", line 2409, in install_files
[192.168.1.200] out: req_to_install.update_editable(not self.is_download)
[192.168.1.200] out: File "/usr/local/lib/python2.6/dist-packages/pip-0.6.1-py2.6.egg/pip.py", line 1970, in update_editable
[192.168.1.200] out: vcs_backend.obtain(self.source_dir)
[192.168.1.200] out: File "/usr/local/lib/python2.6/dist-packages/pip-0.6.1-py2.6.egg/pip.py", line 3420, in obtain
[192.168.1.200] out: ['svn', 'checkout', '-q'] + rev_options + [url, dest])
[192.168.1.200] out: File "/usr/local/lib/python2.6/dist-packages/pip-0.6.1-py2.6.egg/pip.py", line 4320, in call_subprocess
[192.168.1.200] out: cwd=cwd, env=env)
[192.168.1.200] out: File "/usr/lib/python2.6/subprocess.py", line 621, in __init__
[192.168.1.200] out: errread, errwrite)
[192.168.1.200] out: File "/usr/lib/python2.6/subprocess.py", line 1126, in _execute_child
[192.168.1.200] out: raise child_exception
[192.168.1.200] out: OSError: [Errno 2] No such file or directory
這裏是我知道的:
- 錯誤與它沒有找到setup.py相關,因爲這些文件從不下載。它似乎拒絕創建路徑/ home/sk/votdaily/src/couchdb,但對於其他包,它始終根據需要創建此路徑。
- 我可以同時以root身份和本地用戶身份運行,並且失敗。
- 如果我手動創建目錄,那麼它提示一個提示,告訴我該目錄目前不是SVN回購,並詢問我是否想要覆蓋它。如果我把它擦掉,它仍然不檢出回購。
- 我已重新安裝pip並重新創建了virtualenv,並且該錯誤得到了轉載。
- 我可以在我的本地工作站(virtualenv)上成功執行該pip安裝。
建議?我知道這一定是某種圖書館或許可衝突,但我似乎無法頂住它,
謝謝。
你是否在該機器上安裝了subversion(愚蠢的問題,但只是檢查)?你確定couchdb在需求文件中沒有其他地方嗎(例如,在添加subversion版本的couchdb後,你忘記刪除原始的couchdb需求)? – 2009-11-29 17:04:24
...顛覆...是的...我想這是需要運行該命令是不是... *嘆* – bouvard 2009-11-29 22:32:07
你應該發佈,所以我可以正確接受你的答案,先生。在這個特例中,「愚蠢問題」有很大的價值。 – bouvard 2009-11-29 22:35:50