Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

cx_Freeze.freezer.ConfigError: no initscript

djbeck
2012-06-05
2012-09-14
  • djbeck
    djbeck
    2012-06-05

    I'm trying to use cx_Freeze 4.2.3 on Mac OS 10.7. When I issue the cxfreeze
    command

    David$ cxfreeze /Users/David/Documents/Python/Qt/Lionel/runlionel.py --target-dir /Users/David/Documents/Python/Qt/Lionel/dist
    

    I get the following output in Terminal:

    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/3.3/Resources/cx_Freeze-4.2.3/cxfreeze", line 5, in <module>
        main()
      File "/Library/Frameworks/Python.framework/Versions/3.3/Resources/cx_Freeze-4.2.3/cx_Freeze/main.py", line 187, in main
        silent = options.silent)
      File "/Library/Frameworks/Python.framework/Versions/3.3/Resources/cx_Freeze-4.2.3/cx_Freeze/freezer.py", line 91, in __init__
        self._VerifyConfiguration()
      File "/Library/Frameworks/Python.framework/Versions/3.3/Resources/cx_Freeze-4.2.3/cx_Freeze/freezer.py", line 371, in _VerifyConfiguration
        self._GetInitScriptFileName()
      File "/Library/Frameworks/Python.framework/Versions/3.3/Resources/cx_Freeze-4.2.3/cx_Freeze/freezer.py", line 283, in _GetInitScriptFileName
        raise ConfigError("no initscript named %s", name)
    cx_Freeze.freezer.ConfigError: no initscript named Console
    

    I have an initscripts folder in the cx_Freeze directory, and the folder does
    contain a file Console.py, if that is what the command is looking for ?

    I've seen this error mentioned a number of times when I Google it, but no one
    has suggested a solution or offered a helpful explanation.