wxPython problem with freeze.py

I have a wxPython application that i can run no problem from source,
now i want to freeze it for distribution. I tried the freeze.py script
and got the following output:

<snip>
freezing Frame1 ...

freezing UserDict ...
freezing __main__ ...
freezing codecs ...
freezing copy ...
freezing copy_reg ...
freezing dis ...
freezing distutils ...
freezing distutils.dep_util ...
freezing distutils.errors ...

freezing distutils.log ...
freezing distutils.spawn ...
freezing distutils.util ...
freezing dummy_thread ...
freezing encodings ...
freezing encodings.aliases ...
freezing inspect ...
freezing linecache ...

freezing locale ...
freezing macpath ...
freezing ntpath ...
freezing opcode ...
freezing os ...
freezing os2emxpath ...
freezing popen2 ...
freezing posixpath ...
freezing py_compile ...
freezing random ...

freezing re ...
freezing repr ...
freezing site ...
freezing sitecustomize ...
freezing sre ...
freezing sre_compile ...
freezing sre_constants ...
freezing sre_parse ...
freezing stat ...
freezing string ...

freezing tempfile ...
freezing token ...
freezing tokenize ...
freezing traceback ...
freezing types ...
freezing warnings ...
freezing wx ...
freezing wx.__version__ ...
freezing wx._controls ...

freezing wx._core ...
freezing wx._gdi ...
freezing wx._misc ...
freezing wx._windows ...
generating table of frozen modules
Warning: unknown modules remain: _locale _random array binascii fcntl
itertools math pwd strop time wx._controls_ wx._core_ wx._gdi_

wx._misc_ wx._windows_
Now run "make" in frozen to build the target: csv_generator

What's going on? says it's freezing then says it can't find it ?!?
Anyway continued and ran make, no errors. When I run the application I

get:

Traceback (most recent call last):
  File "csv_generator.py", line 4, in ?
  File
"/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/__init__.py",
line 42, in ?
    from wx._core import *

  File
"/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py",
line 4, in ?
    import _core_
ImportError: No module named _core_

Can someone help with this?thanks

Hi,

···

On 8/15/08, 何帅 wrote:

I have a wxPython application that i can run no problem from source,
now i want to freeze it for distribution. I tried the freeze.py script
and got the following output:

I am not sure what the error may be, but for application distribution
on Unix/Linux you may want to give a try to cx_Freeze and PyInstaller,
which may work right out of the box.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

you may want to give a try to cx_Freeze and PyInstaller,
What does it mean, please say more clearly, thank you.

···

2008/8/15 Andrea Gavana andrea.gavana@gmail.com

Hi,

On 8/15/08, 何帅 wrote:

I have a wxPython application that i can run no problem from source,

now i want to freeze it for distribution. I tried the freeze.py script

and got the following output:

I am not sure what the error may be, but for application distribution

on Unix/Linux you may want to give a try to cx_Freeze and PyInstaller,

which may work right out of the box.

Andrea.

“Imagination Is The Only Weapon In The War Against Reality.”

http://xoomer.alice.it/infinity77/


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

何帅 wrote:

you may want to give a try to cx_Freeze and PyInstaller,
What does it mean, please say more clearly, thank you.

cx_Freeze and PyInstaller are alternatives to freeze.py.

http://python.net/crew/atuining/cx_Freeze/

http://pyinstaller.python-hosting.com/

Werner

U wrote:

you may want to give a try to cx_Freeze and PyInstaller,
What does it mean, please say more clearly, thank you.

Obviously it means to try cx_Freeze or PyInstaller instead of what you are currently doing. You can read up on them here, if you like:

···

2008/8/15 Andrea Gavana <andrea.gavana@gmail.com <mailto:andrea.gavana@gmail.com>>

    Hi,

    On 8/15/08, 何帅 wrote:
    > I have a wxPython application that i can run no problem from source,
    > now i want to freeze it for distribution. I tried the freeze.py
    script
    > and got the following output:

    I am not sure what the error may be, but for application distribution
    on Unix/Linux you may want to give a try to cx_Freeze and PyInstaller,
    which may work right out of the box.

    Andrea.

    "Imagination Is The Only Weapon In The War Against Reality."
    http://xoomer.alice.it/infinity77/

    ___

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org

cx_Freeze it’s good tool, I was successful, very grateful for everyone’s help

···

2008/8/15 Mike Driscoll mike@pythonlibrary.org

U wrote:

you may want to give a try to cx_Freeze and PyInstaller,

What does it mean, please say more clearly, thank you.

Obviously it means to try cx_Freeze or PyInstaller instead of what you are currently doing. You can read up on them here, if you like:

http://www.freehackers.org/Packaging_a_python_program

2008/8/15 Andrea Gavana <andrea.gavana@gmail.com mailto:andrea.gavana@gmail.com>

Hi,



On 8/15/08, 何帅 wrote:

> I have a wxPython application that i can run no problem from source,

> now i want to freeze it for distribution. I tried the freeze.py

script

> and got the following output:



I am not sure what the error may be, but for application distribution

on Unix/Linux you may want to give a try to cx_Freeze and PyInstaller,

which may work right out of the box.



Andrea.



"Imagination Is The Only Weapon In The War Against Reality."

[http://xoomer.alice.it/infinity77/](http://xoomer.alice.it/infinity77/)



___

Mike Driscoll

Blog: http://blog.pythonlibrary.org

Python Extension Building Network: http://www.pythonlibrary.org


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users