2013-04-07 2 views
1

나는 우분투 작업 나 cx_Freeze을 얻기 위해 노력 해왔다,하지만 난이 실행하려고하면 나는 다음과 같은 오류 얻을 "파이썬을 구축 할있는 setup.py" cx_Freeze.freezer.ConfigError이 : 어떤 초기화 스크립트 이름이 없습니다 Console없음 initscrip 이름 콘솔 없습니다 - 나 cx_Freeze

Google을 검색 한 결과 많은 사람들이이 문제를 겪고 있지만 해결책을 찾지 못하는 것 같습니다. 나는이 같은 폴더에 setup.py 파일 hello.py에 놓여있다

from cx_Freeze import setup, Executable 


setup(name = "hello world" , 
    version = "0.1" , 
    description = "Hello" , 
    executables = [Executable("hello.py")] , 
    )  

다음과 같이

내 setup.py 코드입니다. 이 문제를 해결할 수있는 방법에 대한 의견이 있으십니까?

running build 
running build_exe 
Traceback (most recent call last): 
    File "setup.py", line 7, in <module> 
    executables = [Executable("hello.py")] , 
    File "/usr/local/lib/python2.7/dist-packages/cx_Freeze-4.3.1-py2.7-linux-i686.egg  
    cx_Freeze/dist.py", line 365, in setup 
    distutils.core.setup(**attrs) 
    File "/usr/lib/python2.7/distutils/core.py", line 152, in setup 
    dist.run_commands() 
    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands 
    self.run_command(cmd) 
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command 
    cmd_obj.run() 
    File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run 
    self.run_command(cmd_name) 
    File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command 
    self.distribution.run_command(command) 
    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command 
    cmd_obj.run() 
    File "/usr/local/lib/python2.7/dist-packages/cx_Freeze-4.3.1-py2.7-linux-i686.egg 
    /cx_Freeze/dist.py", line 234, in run 
    metadata = metadata) 
    File "/usr/local/lib/python2.7/dist-packages/cx_Freeze-4.3.1-py2.7-linux-i686.egg 
    /cx_Freeze/freezer.py", line 104, in __init__ 
    self._VerifyConfiguration() 
    File "/usr/local/lib/python2.7/dist-packages/cx_Freeze-4.3.1-py2.7-linux-i686.egg 
/cx_Freeze/freezer.py", line 466, in _VerifyConfiguration 
    self._GetInitScriptFileName() 
    File "/usr/local/lib/python2.7/dist-packages/cx_Freeze-4.3.1-py2.7-linux-i686.egg 
/cx_Freeze/freezer.py", line 311, in _GetInitScriptFileName 
    raise ConfigError("no initscript named %s", name) 
cx_Freeze.freezer.ConfigError: no initscript named Console 
+0

나 cx_Freeze 것 같은데 작성하지 초기화 스크립트에 대한 심볼릭 링크처럼 보이는, 그래서 수동으로 모든 것이 (자신에 대한 변화 나 cx_Freeze 버전) 작동 만들 완전히 설치되지 않았습니다. 'Console.py'는'.../cx_Freeze/initscripts /'에 있어야합니다. –

답변

2

제 설치의 경우 동일한 문제가 발생했습니다.

cd /usr/local/lib/python2.7/dist-packages/ 
cd cx_Freeze-4.3.1-py2.7-linux-i686.egg 
sudo ln -s -t cx_Freeze/ ../../cx_Freeze/initscripts/ 

PS : 우분투 12.10/계량 적, 파이썬 2.7.3