[Pythonmac-SIG] py2app, iGraph and icns
Hi everyone, First post to the list. I have a problem that I'm not sure if anyone else has encountered. I'm trying to make an application that is in many respects a 'skin' over a specific data object (an igraph network object). The iGraph package in python is great for analysis, but it is really a set of c++ objects that have python bindings. So, it completely fails in py2app. Does anyone know a way for me to get the py2app code to naively just include the iGraph package and talk to it such that I don't need to know how it is implemented? To re-implement the features of this package in native python is both a herculean task and one that is bound to be poorly optimized. In addition to ease-of-distribution from py2app, I also want to use a custom icon. wxPython doesn't seem to support .icns the way that py2app does. Any thoughts and any help is greatly appreciated. Take care, BERNiE Bernie Hogan Research Fellow, Oxford Internet Institute University of Oxford ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] py2app, iGraph and icns
Bernie Hogan wrote: I have a problem that I'm not sure if anyone else has encountered. I'm trying to make an application that is in many respects a 'skin' over a specific data object (an igraph network object). The iGraph package in python is great for analysis, but it is really a set of c++ objects that have python bindings. So, it completely fails in py2app. that shouldn't be the case -- lots of python modules are C++ module with python bindings (that's what wxPython is, for instance) -- what exactly are you doing, and how is it failing? Does anyone know a way for me to get the py2app code to naively just include the iGraph package and talk to it such that I don't need to know how it is implemented? I'm not sure what you mean, but if py2app fails to include something your app needs, you can always just coy it into the bundle in your setup.py script. In addition to ease-of-distribution from py2app, I also want to use a custom icon. wxPython doesn't seem to support .icns the way that py2app does. not quite -- if you give your .icns to py2app it will mostly work, but you may need to make the wxPython call to add the icon to your app, and it may need to be in another format. But it can be done. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar...@noaa.gov ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] how to recover from a framework build?
I made the mistake of trying to build a version of Python with debugging symbols on my Mac. I downloaded the sources to 2.5.4, and did a make frameworkinstall DESTDIR=/tmp. Now my Python-Cocoa apps won't compile in Xcode. They compiled just fine before I did this... Line Location Tool:0: symbol(s) not found Line Location Tool:0: _main in main.o Line Location Tool:0: _PyRun_SimpleFileExFlags, referenced from: Line Location Tool:0: _main in main.o Line Location Tool:0: _PySys_SetArgv, referenced from: Line Location Tool:0: _main in main.o Line Location Tool:0: _Py_Initialize, referenced from: Line Location Tool:0: _main in main.o Line Location Tool:0: _Py_SetProgramName, referenced from: Any ideas? Bill ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] how to recover from a framework build?
In article 6054.1248909...@parc.com, Bill Janssen jans...@parc.com wrote: I made the mistake of trying to build a version of Python with debugging symbols on my Mac. I downloaded the sources to 2.5.4, and did a make frameworkinstall DESTDIR=/tmp. Now my Python-Cocoa apps won't compile in Xcode. They compiled just fine before I did this... Line Location Tool:0: symbol(s) not found Line Location Tool:0: _main in main.o Line Location Tool:0: _PyRun_SimpleFileExFlags, referenced from: Line Location Tool:0: _main in main.o Line Location Tool:0: _PySys_SetArgv, referenced from: Line Location Tool:0: _main in main.o Line Location Tool:0: _Py_Initialize, referenced from: Line Location Tool:0: _main in main.o Line Location Tool:0: _Py_SetProgramName, referenced from: Any ideas? Long shot (Xcode 3.1.3): in the project's Groups Files list, select the Python.framework and do a Get Info on it to ensure that the path is set to /System/Library/... . -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] how to recover from a framework build?
Think I fixed things. I found two problems. First of all, my build wasn't universal, but it appparently overwrote the Python framework SDK in /Developer/. So when Xcode tried to build for both ppc and i386, it only found i386. That was the link error I originally posted. I'll re-install Xcode to see if I can fix that. Secondly, when I then ran my Python-Cocoa app, it picked up the framework in /Library/Frameworks/Python..., which didn't have objc, so it bombed on that. I just deleted /Library/Frameworks/Python That seemed to fix that. Bill Ned Deily n...@acm.org wrote: In article 6054.1248909...@parc.com, Bill Janssen jans...@parc.com wrote: I made the mistake of trying to build a version of Python with debugging symbols on my Mac. I downloaded the sources to 2.5.4, and did a make frameworkinstall DESTDIR=/tmp. Now my Python-Cocoa apps won't compile in Xcode. They compiled just fine before I did this... Line Location Tool:0: symbol(s) not found Line Location Tool:0: _main in main.o Line Location Tool:0: _PyRun_SimpleFileExFlags, referenced from: Line Location Tool:0: _main in main.o Line Location Tool:0: _PySys_SetArgv, referenced from: Line Location Tool:0: _main in main.o Line Location Tool:0: _Py_Initialize, referenced from: Line Location Tool:0: _main in main.o Line Location Tool:0: _Py_SetProgramName, referenced from: Any ideas? Long shot (Xcode 3.1.3): in the project's Groups Files list, select the Python.framework and do a Get Info on it to ensure that the path is set to /System/Library/... . -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig