2017-01-17 62 views
0

我是從2.4版本upgrating到2.6版本使用的文檔link#ckan PasteScript錯誤從2.4版本到2.6

執行貼紙命令

paster db upgrade -c /etc/ckan/default/production.ini 

Traceback (most recent call last): 
File "/usr/lib/ckan/default/bin/paster", line 7, in 
from paste.script.command import run 
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 54, in 
dist = pkg_resources.get_distribution('PasteScript') 
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 330, in get_distribution 
if isinstance(dist,Requirement): dist = get_provider(dist) 
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 209, in get_provider 
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0] 
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 686, in require 
needed = self.resolve(parse_requirements(requirements)) 
File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 584, in resolve 
raise DistributionNotFound(req) 
pkg_resources.DistributionNotFound: PasteScript 
時,我收到以下錯誤貼膜

有什麼想法?

回答

0

看起來你沒有在激活的虛擬環境中運行'pip install'步驟(步驟3)。所有這些命令都應該在激活的虛擬環境中運行(步驟1),所以如果您啓動新的終端/外殼,請不要忘記再次執行此操作。

+0

您好D閱讀,我跑了(步驟3)與激活的虛擬環境,經過多次測試,我找不到解決方案。 我升級到版本2.5.3而不是2.6,它很好。 – nataliaoliveira