python - cx_freeze error "cx_Freeze.freezer.ConfigError: no base named Console" -


i'm trying convert python 3.4 program of mine exe distribution. tried using cx_freeze this. however, when run python setup.py build setup.py:

from cx_freeze import setup, executable  setup( name = "converter" ,    version = "0.1" ,    description = "" ,    executables = [executable("filename.py")] , ) 

i error code:

c:\python34>python setup.py build running build running build_exe traceback (most recent call last):   file "setup.py", line 6, in <module>     executables = [executable("helloworld.py")] , )   file "c:\python34\lib\site-packages\cx_freeze\dist.py", line 362, in setup     distutils.core.setup(**attrs)   file "c:\python34\lib\distutils\core.py", line 148, in setup     dist.run_commands()   file "c:\python34\lib\distutils\dist.py", line 955, in run_commands     self.run_command(cmd)   file "c:\python34\lib\distutils\dist.py", line 974, in run_command     cmd_obj.run()   file "c:\python34\lib\distutils\command\build.py", line 126, in run     self.run_command(cmd_name)   file "c:\python34\lib\distutils\cmd.py", line 313, in run_command     self.distribution.run_command(command)   file "c:\python34\lib\distutils\dist.py", line 974, in run_command     cmd_obj.run()   file "c:\python34\lib\site-packages\cx_freeze\dist.py", line 231, in run     metadata = metadata)   file "c:\python34\lib\site-packages\cx_freeze\freezer.py", line 136, in __init__     self._verifyconfiguration()   file "c:\python34\lib\site-packages\cx_freeze\freezer.py", line 504, in _verifyconfiguration     self._getbasefilename()   file "c:\python34\lib\site-packages\cx_freeze\freezer.py", line 239, in _getbasefilename     raise configerror("no base named %s", name) cx_freeze.freezer.configerror: no base named console 

this same error code occurs when try setup hello world file. has nothing script.

any help? first time i've used cx_freeze.

it appears line failing argssource.base = self._getfilename("bases", name, ext) means can't find file, makes sense. check folder c:\python27\lib\site-packages\cx_freeze\bases console.exe. if don't have try reinstalling cx_freeze. that's directory python. assume yours in same place if not search it


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -