Discussion:
[cx-freeze-users] Installing issue of cxfreeze for python3 in MAC OS X
Mathan
2010-07-05 08:08:41 UTC
Permalink
Hi Everyone,

Has anyone succeeded in installing cx_freeze in mac OS X. If so help me out.
I m on verge of installing cx_freeze in MAC OS X 10.6 using python3.1 and gcc-4.0.

I got the following error for "python3 setup.py install" command.
"
/usr/bin/gcc-4.0 build/temp.macosx-10.3-fat-3.1/source/bases/Console.o -L/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/config -lpython3.1 -o build/lib.macosx-10.3-fat-3.1/cx_Freeze/bases/Console -framework CoreFoundation Python.framework/Versions/3.1/Python -ldl -s
i686-apple-darwin10-gcc-4.0.1: Python.framework/Versions/3.1/Python: No such file or directory
error: command '/usr/bin/gcc-4.0' failed with exit status 1
"
After that error using the following command manually, got the console.so file
"
/usr/bin/gcc-4.0 build/temp.macosx-10.3-fat-3.1/source/bases/Console.o -L/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/config -lpython3.1 -o build/lib.macosx-10.3-fat-3.1/cx_Freeze/bases/Console -framework CoreFoundation /Library/Frameworks/Python.framework/Versions/3.1/Python -ldl -s
"
But the real problem is installation process is not continued further, since i entered the above command manually and not through the setup.py file
Any idea how to continue the installation process or how to set the python path before using the install command

Thanks
Anthony Tuininga
2010-07-05 16:13:25 UTC
Permalink
Hi,

This problem and a few others with running cx_Freeze on Mac OS X have
been fixed in Subversion trunk. I haven't had a chance to release a
new version of cx_Freeze with these fixes in place -- I've been
looking at a few other issues -- but with the release of Python 2.7
I'll be needing to do so soon. In the meantime, if you can checkout
Subversion trunk and use that you should be good to go.

Anthony
Post by Mathan
Hi Everyone,
Has anyone succeeded in installing cx_freeze in mac OS X. If so help me out.
I m on verge of installing cx_freeze in MAC OS X 10.6 using python3.1 and gcc-4.0.
I got the following error for "python3 setup.py install" command.
"
/usr/bin/gcc-4.0 build/temp.macosx-10.3-fat-3.1/source/bases/Console.o
-L/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/config
-lpython3.1 -o build/lib.macosx-10.3-fat-3.1/cx_Freeze/bases/Console
-framework CoreFoundation Python.framework/Versions/3.1/Python -ldl -s
i686-apple-darwin10-gcc-4.0.1: Python.framework/Versions/3.1/Python: No such
file or directory
error: command '/usr/bin/gcc-4.0' failed with exit status 1
"
After that error using the following command manually, got the console.so file
"
/usr/bin/gcc-4.0 build/temp.macosx-10.3-fat-3.1/source/bases/Console.o
-L/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/config
-lpython3.1 -o build/lib.macosx-10.3-fat-3.1/cx_Freeze/bases/Console
-framework CoreFoundation
/Library/Frameworks/Python.framework/Versions/3.1/Python -ldl -s
"
But the real problem is installation process is not continued further, since
i entered the above command manually and not through the setup.py file
Any idea how to continue the installation process or how to set the python
path before using the install command
Thanks
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
cx-freeze-users mailing list
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
Mathan
2010-07-06 13:28:37 UTC
Permalink
Hi,

As per ur suggestion, I have installed cxfreeze with subversion trunk build for mac OS X 10.6 with gcc-4.0 compiler.
I could able to freeze simple scripts using ur setup.py file. But for PyQt involved scripts i m getting the following error

"
copying /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/PyQt4/QtCore.so -> build/exe.macosx-10.3-fat-3.1/PyQt4.QtCore.so
copying QtCore.framework/Versions/4/QtCore -> build/exe.macosx-10.3-fat-3.1/QtCore
error: QtCore.framework/Versions/4/QtCore: No such file or directory
"

But no errors for freezing it in linux. Following is the one i found in linux while freezing the same script.
"
copying /usr/local/lib/python3.1/site-packages/PyQt4/QtCore.so -> build/exe.linux-i686-3.1/PyQt4.QtCore.so
copying /usr/local/lib/python3.1/site-packages/PyQt4/QtGui.so -> build/exe.linux-i686-3.1/PyQt4.QtGui.so
copying /usr/local/lib/python3.1/lib-dynload/_bisect.so -> build/exe.linux-i686-3.1/_bisect.so
copying /usr/local/lib/python3.1/lib-dynload/_codecs_cn.so -> build/exe.linux-i686-3.1/_codecs_cn.so
copying /usr/local/lib/python3.1/lib-dynload/_codecs_hk.so -> build/exe.linux-i686-3.1/_codecs_hk.so
copying /usr/local/lib/python3.1/lib-dynload/_codecs_iso2022.so -> build/exe.linux-i686-3.1/_codecs_iso2022.so
copying /usr/local/lib/python3.1/lib-dynload/_codecs_jp.so -> build/exe.linux-i686-3.1/_codecs_jp.so
copying /usr/local/lib/python3.1/lib-dynload/_codecs_kr.so -> build/exe.linux-i686-3.1/_codecs_kr.so
copying /usr/local/lib/python3.1/lib-dynload/_codecs_tw.so -> build/exe.linux-i686-3.1/_codecs_tw.so
copying /usr/local/lib/python3.1/lib-dynload/_collections.so -> build/exe.linux-i686-3.1/_collections.so
...................."

Regards
Mathan
Mathan
2010-07-06 15:52:40 UTC
Permalink
I m getting the following error while building PyQt sample script as it is searching in the wrong location,

"
copying QtCore.framework/Versions/4/QtCore -> build/exe.macosx-10.3-fat-3.1/QtCore
error: QtCore.framework/Versions/4/QtCore: No such file or directory
"

it has search in "/Library/Frameworks/QtCore.framework/Versions/4/QtCore".
Is there any way make it to search in the location where i want?


---- On Tue, 06 Jul 2010 01:28:37 -1200 Mathan <***@gmail.com> wrote ----

Hi,

As per ur suggestion, I have installed cxfreeze with subversion trunk build for mac OS X 10.6 with gcc-4.0 compiler.
I could able to freeze simple scripts using ur setup.py file. But for PyQt involved scripts i m getting the following error

"
copying /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/PyQt4/QtCore.so -> build/exe.macosx-10.3-fat-3.1/PyQt4.QtCore.so
copying QtCore.framework/Versions/4/QtCore -> build/exe.macosx-10.3-fat-3.1/QtCore
error: QtCore.framework/Versions/4/QtCore: No such file or directory
"

But no errors for freezing it in linux. Following is the one i found in linux while freezing the same script.
"
copying /usr/local/lib/python3.1/site-packages/PyQt4/QtCore.so -> build/exe.linux-i686-3.1/PyQt4.QtCore.so
copying /usr/local/lib/python3.1/site-packages/PyQt4/QtGui.so -> build/exe.linux-i686-3.1/PyQt4.QtGui.so
copying /usr/local/lib/python3.1/lib-dynload/_bisect.so -> build/exe.linux-i686-3.1/_bisect.so
copying /usr/local/lib/python3.1/lib-dynload/_codecs_cn.so -> build/exe.linux-i686-3.1/_codecs_cn.so
copying /usr/local/lib/python3.1/lib-dynload/_codecs_hk.so -> build/exe.linux-i686-3.1/_codecs_hk.so
copying /usr/local/lib/python3.1/lib-dynload/_codecs_iso2022.so -> build/exe.linux-i686-3.1/_codecs_iso2022.so
copying /usr/local/lib/python3.1/lib-dynload/_codecs_jp.so -> build/exe.linux-i686-3.1/_codecs_jp.so
copying /usr/local/lib/python3.1/lib-dynload/_codecs_kr.so -> build/exe.linux-i686-3.1/_codecs_kr.so
copying /usr/local/lib/python3.1/lib-dynload/_codecs_tw.so -> build/exe.linux-i686-3.1/_codecs_tw.so
copying /usr/local/lib/python3.1/lib-dynload/_collections.so -> build/exe.linux-i686-3.1/_collections.so
...................."

Regards
Mathan
Anthony Tuininga
2010-07-27 04:37:20 UTC
Permalink
Post by Mathan
I m getting the following error while building PyQt sample script as it is
searching in the wrong location,
"
copying QtCore.framework/Versions/4/QtCore ->
build/exe.macosx-10.3-fat-3.1/QtCore
error: QtCore.framework/Versions/4/QtCore: No such file or directory
"
it has search in "/Library/Frameworks/QtCore.framework/Versions/4/QtCore".
Is there any way make it to search in the location where i want?
Yeah, set DYLD_LIBRARY_PATH....

Anyone got a decent way to do that a la LD_RUN_PATH?

Anthony
Corey Richardson
2010-07-27 05:41:54 UTC
Permalink
Thank you, Anthony, for all the work you do and have done with
cx_Freeze! It's a very useful set of scripts, and it lets me share the
things I make with my friends + family. A heartfelt thanks is sent your way!
~Corey Richardson
Anthony Tuininga
2010-07-27 13:26:09 UTC
Permalink
You're very welcome. Thank you for your kind words.

Anthony
Post by Corey Richardson
Thank you, Anthony, for all the work you do and have done with
cx_Freeze! It's a very useful set of scripts, and it lets me share the
things I make with my friends + family. A heartfelt thanks is sent your way!
~Corey Richardson
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
cx-freeze-users mailing list
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
Loading...