2012-09-03 47 views
2

我嘗試在新安裝的plone 4.2上用zopskel/paster創建一個原型。我調整了buildout.cfg(見下文)以獲取bin文件夾中生成的zopeskel.exe和paster.exe。在windows上運行zopeskel後缺少本地命令

Howerver當我運行的ZopeSkel如下(以開發雞蛋文件夾): .. \ BIN \ zopeskel.exe原型 我得到一個IOError(見下面的輸出)

從我明白我應該在運行貼圖時(如add),現在有本地命令。但是,當我現在運行paster(在develop-eggs/nortek.test03)文件夾中時,沒有命令。

zopeskel中是否存在缺陷/缺陷或者我做錯了什麼?我如何繼續?

Traceback (most recent call last): 
    File "C:\Plone42\bin\zopeskel-script.py", line 16, in <module> 
    zopeskel.zopeskel_script.run() 
    File "c:\plone42\eggs\zopeskel-2.21.2-py2.6.egg\zopeskel\zopeskel_script.py", line 397, in run 
    command.run([ '-q', '-t', template_name ] + optslist) 
    File "c:\plone42\eggs\pastescript-1.7.5-py2.6.egg\paste\script\command.py", line 238, in run 
    result = self.command() 
    File "c:\plone42\eggs\pastescript-1.7.5-py2.6.egg\paste\script\create_distro.py", line 170, in command 
    egg_info_dir = pluginlib.egg_info_dir(output_dir, dist_name) 
    File "c:\plone42\eggs\pastescript-1.7.5-py2.6.egg\paste\script\pluginlib.py", line 135, in egg_info_dir 
    % ', '.join(all)) 
IOError: No egg-info directory found (looked in .\nortek.test03\.\nortek.test03.egg-info, .\nortek.test03\CHAN 
GES.txt\nortek.test03.egg-info, .\nortek.test03\CONTRIBUTORS.txt\nortek.test03.egg-info, .\nortek.test03\docs\ 
nortek.test03.egg-info, .\nortek.test03\MANIFEST.in\nortek.test03.egg-info, .\nortek.test03\nortek\nortek.test 
03.egg-info, .\nortek.test03\README.txt\nortek.test03.egg-info, .\nortek.test03\setup.cfg\nortek.test03.egg-in 
fo, .\nortek.test03\setup.py\nortek.test03.egg-info) 

我buildout.cfg是相同的默認除了以下:

parts = 
    zeo 
    instance 
    run-instance 
    run-zeo 
    service 
    service-zeo 
    zopeskel 

[zopeskel] 
recipe = zc.recipe.egg 
unzip = true 
eggs = 
    Paste 
    PasteScript 
    ZopeSkel 

[編輯] 我試圖按照在所提供的鏈接的說明。但是有一些occure幾個問題: *在bin文件夾 不會產生糊腳本*我仍然得到完全相同的IO錯誤問題 *有沒有本地命令

我把產量從我跑到這個不同的命令鏈接: http://pastie.org/4664202

所以,請幫助我,因爲我仍然有同樣的問題

回答

1

請使用升級後的指令:

http://collective-docs.readthedocs.org/en/latest/getstarted/paste.html

無論您在哪裏找到這些說明,請告訴我們,我們會盡力刪除不良說明。

+0

我仍然遇到同樣的問題。 (請參閱上面的註釋) – Jardar

+0

您可以檢查在系統Python文件夾中是否安裝了任何ZopeSkel軟件包?他們可能會採取重寫並且必須被刪除。 –

+0

我已經刪除了所有的zopeskel蛋和可執行文件,並再次運行構建。但是我仍然沒有得到paster.exe生成,並且在運行zopeskel – Jardar