cx_Freeze: no base named Console
<p>I am trying to compile a simple "Hello, world!" python script using cx_freeze (linux). I installed cx-freeze via the SourceForge tar file, because I had to apply <a href="https://bitbucket.org/anthony_tuininga/cx_freeze/issues/32/cant-compile-cx_freeze-in-ubuntu-1304" rel="nofollow">this</a> patch.</p>

<p>However, when I run:</p>

<pre><code>cx_Freeze-4.3.3$ ./cxfreeze hello.py 
Traceback (most recent call last):
  File "./cxfreeze", line 5, in &lt;module&gt;
    main()
  File "cx_Freeze-4.3.3/cx_Freeze/main.py", line 187, in main
    silent = options.silent)
  File "cx_Freeze-4.3.3/cx_Freeze/freezer.py", line 108, in __init__
    self._VerifyConfiguration()
  File "cx_Freeze-4.3.3/cx_Freeze/freezer.py", line 488, in _VerifyConfiguration
    self._GetBaseFileName()
  File "cx_Freeze-4.3.3/cx_Freeze/freezer.py", line 211, in _GetBaseFileName
    raise ConfigError("no base named %s", name)
cx_Freeze.freezer.ConfigError: no base named Console
</code></pre>

<p>I just solved the problem by changing</p>

<pre><code>ext = ".exe" if sys.platform == "win32" else ""
</code></pre>

<p>to</p>

<pre><code>ext = ".exe" if sys.platform == "win32" else ".py"
</code></pre>

<p>in file freezer.py</p>

python linux build cx-freeze