cx_freeze problem on Ubuntu

J

John

Sorry if this might be a repost. I'm having problems with my newsreader.

My system:

cx_freeze 4.1
Python 2.6
Ubuntu Jaunty

I downloaded the cx_freeze source code from
http://cx-freeze.sourceforge.net/ into a directory.

I wrote a one line python program 'print( "hello world" )'

According to the instructions, all I have to do is this:

../cxfreeze hello.py

But I get this error:

../cxfreeze hello.py
Traceback (most recent call last):
File "./cxfreeze", line 5, in <module>
main()
File "/root/cx_Freeze-4.1/cx_Freeze/main.py", line 178, in main
silent = options.silent)
File "/root/cx_Freeze-4.1/cx_Freeze/freezer.py", line 85, in __init__
self._VerifyConfiguration()
File "/root/cx_Freeze-4.1/cx_Freeze/freezer.py", line 325, in
_VerifyConfiguration
self._GetInitScriptFileName()
File "/root/cx_Freeze-4.1/cx_Freeze/freezer.py", line 246, in
_GetInitScriptFileName
raise ConfigError("no initscript named %s", name)
cx_Freeze.freezer.ConfigError: no initscript named Console

From here:
http://linux.softpedia.com/get/Programming/Assembler-Tools/cx-Freeze-8247.shtml
the directions state:

Installation:

"Extract the archive into a directory. In order to build cx_Freeze you
need to have gcc and Python development include files and libraries
available. Run the following commands.

python MakeFrozenBases.py
python FreezePython.py --no-copy-deps FreezePython.py"

I can't find either of these Python programs and searching the Internet
for clues was fruitless.

I thinking that I'm missing something that's painfully obvious.

As far as I can tell, no one else has ever posted this problem so I
don't know what corrective actions to make. I'd greatly appreciate any
assistance.
 
J

Jon Clements

Sorry if this might be a repost.  I'm having problems with my newsreader.

My system:

cx_freeze 4.1
Python 2.6
Ubuntu Jaunty

I downloaded the cx_freeze source code fromhttp://cx-freeze.sourceforge.net/into a directory.

I wrote a one line python program 'print( "hello world" )'

According to the instructions, all I have to do is this:

./cxfreeze hello.py

But I get this error:

./cxfreeze hello.py
Traceback (most recent call last):
File "./cxfreeze", line 5, in <module>
main()
File "/root/cx_Freeze-4.1/cx_Freeze/main.py", line 178, in main
silent = options.silent)
File "/root/cx_Freeze-4.1/cx_Freeze/freezer.py", line 85, in __init__
self._VerifyConfiguration()
File "/root/cx_Freeze-4.1/cx_Freeze/freezer.py", line 325, in
_VerifyConfiguration
self._GetInitScriptFileName()
File "/root/cx_Freeze-4.1/cx_Freeze/freezer.py", line 246, in
_GetInitScriptFileName
raise ConfigError("no initscript named %s", name)
cx_Freeze.freezer.ConfigError: no initscript named Console

 From here:http://linux.softpedia.com/get/Programming/Assembler-Tools/cx-Freeze-...
the directions state:

Installation:

"Extract the archive into a directory. In order to build cx_Freeze you
need to have gcc and Python development include files and libraries
available. Run the following commands.

python MakeFrozenBases.py
python FreezePython.py --no-copy-deps FreezePython.py"

I can't find either of these Python programs and searching the Internet
for clues was fruitless.

I thinking that I'm missing something that's painfully obvious.

As far as I can tell, no one else has ever posted this problem so I
don't know what corrective actions to make.  I'd greatly appreciate any
assistance.

Firstly -- never used the library, hadn't even heard of it --
disclaimer over :)

Err, python 2.6 doesn't have print as a function by default. Have you
done a from __future__ import ?

def _GetInitScriptFileName(self, argsSource = None):
if argsSource is None:
argsSource = self
name = argsSource.initScript
if name is None:
if argsSource.copyDependentFiles:
name = "Console" (****)
else:
name = "ConsoleKeepPath"
if sys.version_info[0] >= 3:
name += "3"
argsSource.initScript = self._GetFileName("initscripts", name)
if argsSource.initScript is None:
raise ConfigError("no initscript named %s", name)

Should be sufficient clues(****),

Cheers,
Jon
 
J

John

Jon said:
Firstly -- never used the library, hadn't even heard of it --
disclaimer over :)

Err, python 2.6 doesn't have print as a function by default. Have you
done a from __future__ import ?

def _GetInitScriptFileName(self, argsSource = None):
if argsSource is None:
argsSource = self
name = argsSource.initScript
if name is None:
if argsSource.copyDependentFiles:
name = "Console" (****)
else:
name = "ConsoleKeepPath"
if sys.version_info[0] >= 3:
name += "3"
argsSource.initScript = self._GetFileName("initscripts", name)
if argsSource.initScript is None:
raise ConfigError("no initscript named %s", name)

Should be sufficient clues(****),

Cheers,
Jon

You wrote 'Firstly' which implies a 'Secondly' which you failed to add.
You lose -1 points.
You gained +1 points for your perspicacity to minutia.
You lose -2 points to help resolve the problem.

Life is all about gaining points, even if no one cares.

Cheers,

John,
 
P

Paul Boddie

I downloaded the cx_freeze source code fromhttp://cx-freeze.sourceforge.net/into a directory.
[...]

 From here:http://linux.softpedia.com/get/Programming/Assembler-Tools/cx-Freeze-...
the directions state:

What about the documentation available from the SourceForge project? I
don't know how reliable or up-to-date the Softpedia stuff is, given
that they're apparently aggregating content from elsewhere on the
Internet.

[...]
As far as I can tell, no one else has ever posted this problem so I
don't know what corrective actions to make.  I'd greatly appreciate any
assistance.

The author appears to use the mailing list for cx_Freeze:

https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Perhaps you can get some help in that forum.

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top