error while compiling

I can’t understand what is missing.

i’m using py2app.Until today there was not a problem and i successfully created Mac OS app.

Today i have tried again and on open i got an error.

Please see the compiling log as attachment.

I’m also attaching on_run.log when you can see the error i got on opening the app

file.log (63.8 KB)

on_run.log (2.23 KB)

Hi Cpu :slight_smile:

I have had the same issue in the past. Py2app is great, but sometimes it seems to not find some dependencies. If you look at the bottom of on_run.log, it tells you that it cannot find pyconfig.h. You will need to find it in your python distro files (use locate in terminal), and copy it to your app bundle. You may find it does this for several files, so you may wish to create a script which does the copying as every time you do another py2app run, you will need to copy all these files.

Good luck,

MArkL

···

On 14 June 2013 05:41, CPU IN THE BRAIN cpuinthebrain@gmail.com wrote:

I can’t understand what is missing.
i’m using py2app.Until today there was not a problem and i successfully created Mac OS app.

Today i have tried again and on open i got an error.

Please see the compiling log as attachment.

I’m also attaching on_run.log when you can see the error i got on opening the app

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Dear Mark,

I don’t know. i had the same probem in the past but the new release of the py2app has fix it.

i really can’t understand…i thing it’s something in my code.But from another side when i run the code in Editra it works perfect.

Is there an alternative of py2app?

···

On Friday, June 14, 2013 12:40:26 AM UTC+3, Mark Livingstone wrote:

Hi Cpu :slight_smile:

I have had the same issue in the past. Py2app is great, but sometimes it seems to not find some dependencies. If you look at the bottom of on_run.log, it tells you that it cannot find pyconfig.h. You will need to find it in your python distro files (use locate in terminal), and copy it to your app bundle. You may find it does this for several files, so you may wish to create a script which does the copying as every time you do another py2app run, you will need to copy all these files.

Good luck,

MArkL

On 14 June 2013 05:41, CPU IN THE BRAIN cpuint...@gmail.com wrote:

I can’t understand what is missing.
i’m using py2app.Until today there was not a problem and i successfully created Mac OS app.

Today i have tried again and on open i got an error.

Please see the compiling log as attachment.

I’m also attaching on_run.log when you can see the error i got on opening the app

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-user...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

CPU IN THE BRAIN wrote:

I can't understand what is missing.
i'm using py2app.Until today there was not a problem and i successfully
created Mac OS app.
Today i have tried again and on open i got an error.

Please see the compiling log as attachment.

I'm also attaching on_run.log when you can see the error i got on
opening the app

I would suggest using a Python installed from python.org instead of the one included in the system by Apple. Then you will be able to build self-contained app bundles that do not rely on finding things from the System python.

···

--
Robin Dunn
Software Craftsman

Thank you Robin.

I just have installed Python 2.7.5 from the python.org and asociated it with Terminal on Mac OS.

Now after generating setup.py using py2applet

when i do: python setup.py py2app

i got

Traceback (most recent call last):

File “setup.py”, line 8, in

from setuptools import setup

ImportError: No module named setuptools

But, trying to install it using pip install setuptools

i see that this module is already installed.

···

On Friday, June 14, 2013 9:21:53 PM UTC+3, Robin Dunn wrote:

CPU IN THE BRAIN wrote:

I can’t understand what is missing.

i’m using py2app.Until today there was not a problem and i successfully

created Mac OS app.

Today i have tried again and on open i got an error.

Please see the compiling log as attachment.

I’m also attaching on_run.log when you can see the error i got on

opening the app

I would suggest using a Python installed from python.org instead of the
one included in the system by Apple. Then you will be able to build
self-contained app bundles that do not rely on finding things from the
System python.


Robin Dunn

Software Craftsman

http://wxPython.org

CPU IN THE BRAIN wrote:

Thank you Robin.
I just have installed Python 2.7.5 from the python.org and asociated it
with Terminal on Mac OS.
Now after generating setup.py using py2applet
when i do: python setup.py py2app
i got

Traceback (most recent call last):
File "setup.py", line 8, in <module>
from setuptools import setup
ImportError: No module named setuptools

But, trying to install it using pip install setuptools
i see that this module is already installed.

Are you sure that the pip you are running is for the new Python and not the original one? If you run "which pip" from the command line then it will show you the location of the pip executable, if it's in /usr/bin then you've got the wrong one, and I suspect that pip hasn't been installed for the new Python yet either.

An easy way to bootstrap things for the new Python IMO is to fetch this: python-distribute.org - Informationen zum Thema python distribute. and run it with the new Python. That will download and install the distribute package (which is a superset of setuptools) and then you can use the new easy_install that it installs (check the location again to be sure it is the new one) to install pip.

···

--
Robin Dunn
Software Craftsman