2017-01-05 21 views
0

Windows 7 x64、Python 2.7(Anacondaディストリビューション)、cx_Freeze 5.0。cx Freeze "[エラー3]指定されたパスが見つかりません"

私はPyQt4を使用してGUIアプリケーションを作ったし、Pythonスクリプトを凍結したが、次のエラーを取得しようとしています:

Copying data from package PyQt4... 
copying C:\Users\Ben\Anaconda2\lib\site-packages\PyQt4\QtCore.pyd -> build\exe.win-amd64-2.7\PyQt4\QtCore.pyd 
copying C:\Users\Ben\Anaconda2\Library\bin\QtCore4.dll -> build\exe.win-amd64-2.7\QtCore4.dll 
copying C:\Users\Ben\Anaconda2\Library\bin\MSVCP90.dll -> build\exe.win-amd64-2.7\MSVCP90.dll 
copying C:\Users\Ben\Anaconda2\lib\site-packages\PyQt4\QtGui.pyd -> build\exe.win-amd64-2.7\PyQt4\QtGui.pyd 
copying C:\Users\Ben\Anaconda2\Library\bin\QtGui4.dll -> build\exe.win-amd64-2.7\QtGui4.dll 
copying C:\Users\Ben\Anaconda2\Library\bin\libpng16.dll -> build\exe.win-amd64-2.7\libpng16.dll 
copying C:\Users\Ben\Anaconda2\lib\site-packages\PyQt4\QtSvg.pyd -> build\exe.win-amd64-2.7\PyQt4\QtSvg.pyd 
copying C:\Users\Ben\Anaconda2\Library\bin\QtSvg4.dll -> build\exe.win-amd64-2.7\QtSvg4.dll 
Copying data from package _dummy_thread... 
Copying data from package _markerlib... 
error: [Error 3] The system cannot find the path specified: 'C:\\Users\\Ben\\Anaconda2\\lib\\site-packages\\setuptools-19.2-py2.7.egg\\_markerlib/*.*' 

マイCX凍結セットアップファイルがある:ため

import sys 
from cx_Freeze import setup, Executable 
#import matplotlib 

base = None 
if sys.platform == "win32": 
    base = "Win32GUI" 

build_options = {"packages":["matplotlib", "xlrd", "xlwt"], 
       "include_files":["Mefisto_logo.jpg", "LOGO H2020 RIA.png", "logo_h2020_transparent.png", 
            "logo_minouw.png", "logo-csic.png", "logo-icm.png", "logo-icm-ca-csic.png"] } 

executables = [Executable("mefisto_main_10.py", base=base, icon="Mefisto_logo.ico")] 
# Note for some reason the icon must be .ico - cx freeze will not work with either jpg or png 


setup(name = "Mefisto", 
     version = "4.01", 
     description = "Mediterranean fisheries simulation tool", 
     options = {"build_exe": build_options}, 
     executables = executables    
    ) 

感謝任意のヘルプが提供されます。

+0

あなたのpythonファイルとその他のファイルがあるフォルダを探して右クリックし、コマンドウィンドウをオプションから選択します。そこからpython setuppyビルドを行います。お役に立てれば。 – abc1234

+0

私はコマンドプロンプトから次のように実行していました: "python setup.py build"(スクリプトが動作し始め、上記のエラーが発生します)。コマンドプロンプトから "setup.py build"を使用すると何も起こりません。ご協力いただきありがとうございます。 – Tomaquet

答えて

0

私はこのpostのコメントに基づいて私の問題の解決策を見つけました。

私はジップに

setuptools-19.2-py2.7.egg 

の拡張子を変更し、それを解凍しました。 cx_freezeスクリプトが作業してビルドを作成しました。 (ただし、別の問題があります - 作成したexeファイルは何もしません - but that's my next investigation ...)

関連する問題