Re: [Pythonmac-SIG] codesigning py2app/wxPython app failing

2015-08-24 Thread Brendan Simon
On 25/08/2015 12:53 pm, Brendan Simon (eTRIX) wrote: > On 24/08/2015 1:23 am, pythonmac-sig-requ...@python.org wrote: >> Subject: >> Re: [Pythonmac-SIG] codesigning py2app/wxPython app failing >> From: >> Kevin Walzer >> Date: >> 24/08/2015 1:23 a

Re: [Pythonmac-SIG] codesigning py2app/wxPython app failing

2015-08-24 Thread Brendan Simon (eTRIX)
On 24/08/2015 1:23 am, pythonmac-sig-requ...@python.org wrote: > Subject: > Re: [Pythonmac-SIG] codesigning py2app/wxPython app failing > From: > Kevin Walzer > Date: > 24/08/2015 1:23 am > > To: > pythonmac-sig@python.org > > > On 8/23/15 8:09 AM, Brendan Si

Re: [Pythonmac-SIG] codesigning py2app/wxPython app failing

2015-08-23 Thread Brendan Simon (eTRIX)
On 23/08/2015 8:00 pm, pythonmac-sig-requ...@python.org wrote: > > Subject: > Re: [Pythonmac-SIG] codesigning py2app/wxPython app failing > From: > Kevin Walzer > Date: > 23/08/2015 1:08 pm > > To: > pythonmac-sig@python.org > > > On 8/22/15 10:44 PM, Brenda

Re: [Pythonmac-SIG] codesigning py2app/wxPython app failing

2015-08-23 Thread Brendan Simon (eTRIX)
On 23/08/2015 8:00 pm, pythonmac-sig-requ...@python.org wrote: > Re: [Pythonmac-SIG] codesigning py2app/wxPython app failing > From: > Kevin Walzer > Date: > 23/08/2015 2:22 pm > > To: > Glyph > CC: > pythonmac-sig@python.org > > > On 8/23/15 12:11 AM, Glyph wrote: >> I was /going/ to say somethi

[Pythonmac-SIG] codesigning py2app/wxPython app failing

2015-08-22 Thread Brendan Simon (eTRIX)
I'm trying to codesign a wxPython app bundle generated with py2app. (python2.7, wxPython 3.0.2, Intel 64/32-bit, build on 10.10.5, XCode 6.4 installed) I'm getting the following error: $ codesign - -f --deep -s dist/.app dist/.app: code failed to satisfy specified code requirement(s) In subco

Re: [Pythonmac-SIG] Code signing py2app generated apps

2014-06-08 Thread Brendan Simon (eTRIX)
> On 6/7/14, 9:31 AM, Brendan Simon (eTRIX) wrote: >> Is there anything special one needs to do to sign py2app generated >> apps ? >> >> I've tried: codesign -s >> >> but I when verifying it with "codesign -v" I get: >> >>

[Pythonmac-SIG] Code signing py2app generated apps

2014-06-07 Thread Brendan Simon (eTRIX)
Is there anything special one needs to do to sign py2app generated apps ? I've tried: codesign -s but I when verifying it with "codesign -v" I get: src/dist/SureAnalysis.app: Unknown format in import. In architecture: i386 The certificate is a .p12 file that was imported with KeyChai

[Pythonmac-SIG] Installing/updating development py2app

2014-01-30 Thread Brendan Simon (eTRIX)
Hi py2app devs, A little while ago I installed py2app from development branch to test fixes on OS X 10.9. I installed with "python setup.py develop", including the other development modules that py2app complained about (version compatibility). My issue wasn't fixed, but looks like recent commit

[Pythonmac-SIG] py2app: argv emulation failing on OS X 10.9 Mavericks

2013-12-18 Thread Brendan Simon (eTRIX)
I have a python app that uses argv emulation with a custom url handler. i.e. when my url is clicked in a web page, it opens my app and passes the url as an argument to the app. My app works great on OS X 10.4, 10.5, 10.6, 10.7 and 10.8, but fails on 10.9 (Mavericks) :( No arguments are passed to

Re: [Pythonmac-SIG] how to retrieve unique serial number from usb storage device

2011-11-25 Thread Brendan Simon (eTRIX)
On 26/11/11 12:12 AM, David Hughes wrote: > On 25/11/2011 11:22, Brendan Simon (eTRIX) wrote: >> Anyone know how to retrieve the unique serial number of a usb storage >> device using python on OS X ?? > > How about using > > system_profiler SPUSBDataType I treid the

[Pythonmac-SIG] how to retrieve unique serial number from usb storage device

2011-11-25 Thread Brendan Simon (eTRIX)
Anyone know how to retrieve the unique serial number of a usb storage device using python on OS X ?? Is there a way to do it using ioreg command ?? My python app currently parses ioreg output to discover VID/PID combinations, so adding a bit of extra logic to get a usb unique serial number should

Re: [Pythonmac-SIG] py2app under Lion--any issues?

2011-07-21 Thread Brendan Simon (eTRIX)
On 22/07/11 5:45 AM, pythonmac-sig-requ...@python.org wrote: > Subject: > Re: [Pythonmac-SIG] py2app under Lion--any issues? > From: > "Russell E. Owen" > Date: > 5:38 AM > > To: > pythonmac-sig@python.org > > > In article <20110721001520.gb12...@panix.com>, > Aahz wrote: > > Ronald Oussouran

Re: [Pythonmac-SIG] python 2.7 problem with crcmod -- "ImportError: No module named predefined"

2011-05-03 Thread Brendan Simon (eTRIX)
On 3/05/11 5:01 PM, Ronald Oussoren wrote: > The crcmod package contains a module named crcmod. My guess is that > both py2app and py2exe get confused by this and try to fetch > 'crcmod.predefined' from the nested module instead of the toplevel > package. This basicly means that both py2*s have

Re: [Pythonmac-SIG] python 2.7 problem with crcmod -- "ImportError: No module named predefined"

2011-05-02 Thread Brendan Simon (eTRIX)
On 3/05/11 6:18 AM, Ronald Oussoren wrote: >> I get the following error when trying to run my app when built with >> py2app and python 2.7. >> >> File "crcmod/__init__.pyc", line 7, in >> ImportError: No module named predefined >> >> >> The app works fine when built with Python 2.5 or

[Pythonmac-SIG] python 2.7 problem with crcmod -- "ImportError: No module named predefined"

2011-05-01 Thread Brendan Simon (eTRIX)
I get the following error when trying to run my app when built with py2app and python 2.7. File "crcmod/__init__.pyc", line 7, in ImportError: No module named predefined The app works fine when built with Python 2.5 or Python 2.6. It seems the folks in py2exe land are having the same

Re: [Pythonmac-SIG] [patch] GetURL argv emulation for py2app 0.5.2

2011-03-12 Thread Brendan Simon (eTRIX)
On 11/03/11 10:04 AM, Brendan Simon (eTRIX) wrote: > NOTE: for some reason the AppleEvent constants kAEInternetSuite and > kAEISGetURL does not work as they are set to 'gurl' (lowercase). > However using 'GURL' does work :) > > Cheers, Brendan. Was thinki

Re: [Pythonmac-SIG] [patch] GetURL argv emulation for py2app 0.5.2

2011-03-12 Thread Brendan Simon (eTRIX)
On 13/03/11 1:30 AM, Ronald Oussoren wrote: > On 12 Mar, 2011, at 6:36, Brendan Simon (eTRIX) wrote: >> I am running on OS 10.6, but my app needs to run on 10.4, 10.5 and >> 10.6 (PPC and Intel). >> I am using Python 2.5.4. >> >> I don't think your test woul

Re: [Pythonmac-SIG] [patch] GetURL argv emulation for py2app 0.5.2

2011-03-12 Thread Brendan Simon (eTRIX)
On 12/03/11 10:00 PM, pythonmac-sig-requ...@python.org wrote: > On 10 Mar, 2011, at 18:04, Brendan Simon (eTRIX) wrote: >> > Below is my patch to get URLs/URIs to be added to sys.argv when an app >> > is opened via the Launcher. >> > >> > It should be app

[Pythonmac-SIG] [patch] GetURL argv emulation for py2app 0.5.2

2011-03-10 Thread Brendan Simon (eTRIX)
Below is my patch to get URLs/URIs to be added to sys.argv when an app is opened via the Launcher. It should be applied to: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app/bootstrap/argv_emulation.py Can this patch *please* be integrated (please modify if nec

Re: [Pythonmac-SIG] py2app 0.5.2 and argv emulation with URLs/URIs

2011-03-10 Thread Brendan Simon (eTRIX)
On 11/03/11 1:04 AM, Ronald Oussoren wrote: > > On 10 Mar, 2011, at 7:05, Brendan Simon (eTRIX) wrote: > >> I upgraded to py2app 0.5.2 and now my app does not build :( >> I'm using OS X 10.6 and Python 2.5.4 from python.org <http://python.org>. >> >

[Pythonmac-SIG] py2app 0.5.2 fails to copy main-i386 file

2011-03-10 Thread Brendan Simon (eTRIX)
I upgraded to py2app 0.5.2 and now my app does not build :( I'm using OS X 10.6 and Python 2.5.4 from python.org. File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/shutil.py", line 51, in copyfile fsrc = open(src, 'rb') IOError: [Errno 2] No such file

Re: [Pythonmac-SIG] C++ ABI 1002/102 incompatibility with wxPython on OS X

2011-03-01 Thread Brendan Simon (eTRIX)
On 2/03/11 8:34 AM, Brendan Simon (eTRIX) wrote: > On 8/02/11 10:55 PM, Brendan Simon (eTRIX) wrote: >> On 1/25/11 1:20 AM, Brendan Simon (eTRIX) wrote: >>>>> I have a wxPython app that is built with py2app. A user recently >>>>> reported the fol

Re: [Pythonmac-SIG] C++ ABI 1002/102 incompatibility with wxPython on OS X

2011-03-01 Thread Brendan Simon (eTRIX)
On 8/02/11 10:55 PM, Brendan Simon (eTRIX) wrote: > On 1/25/11 1:20 AM, Brendan Simon (eTRIX) wrote: >>>> I have a wxPython app that is built with py2app. A user recently >>>> reported the following error when trying to run the app. >>>> >>>>

Re: [Pythonmac-SIG] py2app with wxpython

2011-02-22 Thread Brendan Simon (eTRIX)
On 23/02/2011 1:18 AM, Ronald Oussoren wrote: On 22 Feb, 2011, at 12:03, Brendan Simon (eTRIX) wrote: On 22/02/11 8:57 PM, Ronald Oussoren wrote: On 21 Feb, 2011, at 12:33, Brendan Simon (eTRIX) wrote: On 21/02/11 10:00 PM, pythonmac-sig-requ...@python.org wrote: Subject: Re: [Pythonmac

Re: [Pythonmac-SIG] py2app with wxpython

2011-02-22 Thread Brendan Simon (eTRIX)
On 22/02/11 8:57 PM, Ronald Oussoren wrote: > On 21 Feb, 2011, at 12:33, Brendan Simon (eTRIX) wrote: > >> On 21/02/11 10:00 PM, pythonmac-sig-requ...@python.org wrote: >>> Subject: >>> Re: [Pythonmac-SIG] py2app with wxpython >>> From: >>> Ned Deil

Re: [Pythonmac-SIG] py2app with wxpython

2011-02-21 Thread Brendan Simon (eTRIX)
On 21/02/11 10:00 PM, pythonmac-sig-requ...@python.org wrote: > Subject: > Re: [Pythonmac-SIG] py2app with wxpython > From: > Ned Deily > Date: > Sun, 20 Feb 2011 15:46:05 -0800 > > To: > pythonmac-sig@python.org > > > In article <4d61918e.1010...@etrix.com

Re: [Pythonmac-SIG] py2app with wxpython

2011-02-20 Thread Brendan Simon (eTRIX)
sion. I found (on OS X) that Python 2.7 requires pythonw rather than python to run my wxPython apps. Cheers, Brendan. -- Brendan Simon www.etrix.com.au ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Re: [Pythonmac-SIG] C++ ABI 1002/102 incompatibility with wxPython

2011-02-08 Thread Brendan Simon (eTRIX)
nd dependencies (assuming they are universal builds). Thanks, Brendan. On 6/02/11 8:47 PM, Brendan Simon (eTRIX) wrote: > On 26/01/11 4:06 AM, Christopher Barker wrote: >> On 1/25/11 1:20 AM, Brendan Simon (eTRIX) wrote: >>> I have a wxPython app that is built with py2app. A user re

Re: [Pythonmac-SIG] C++ ABI 1002/102 incompatibility with wxPython

2011-02-06 Thread Brendan Simon (eTRIX)
On 26/01/11 4:06 AM, Christopher Barker wrote: > On 1/25/11 1:20 AM, Brendan Simon (eTRIX) wrote: >> I have a wxPython app that is built with py2app. A user recently >> reported the following error when trying to run the app. >> >> Fatal Error: Mismatch between th

[Pythonmac-SIG] C++ ABI 1002/102 incompatibility with wxPython

2011-01-25 Thread Brendan Simon (eTRIX)
I have a wxPython app that is built with py2app. A user recently reported the following error when trying to run the app. Fatal Error: Mismatch between the program and library build versions detected. The library used 2.8 (no debug,Unicode,compiler with C++ ABI 1002,wx containers,

Re: [Pythonmac-SIG] py2app architecture problem and System Python question

2010-07-26 Thread Brendan Simon (eTRIX)
> Subject: > Re: [Pythonmac-SIG] py2app architecture problem and System Python > question > From: > Ronald Oussoren > Date: > Mon, 26 Jul 2010 02:25:21 -0700 (PDT) > > To: > Tom MacWright > CC: > pythonmac-sig@python.org > >> And how do I test these distributions quickly, as running OSX within

Re: [Pythonmac-SIG] py2app and python versions

2010-07-26 Thread Brendan Simon (eTRIX)
I use py2app with Python 2.5. Even though I'm keen to move to 2.6 (and then 2.7), I would _guess_ that quite a few people are still using Python 2.5. Cheers, Brendan. On 26/07/10 11:04 AM, pythonmac-sig-requ...@python.org wrote: > Subject: > [Pythonmac-SIG] py2app and python versions > From: >

[Pythonmac-SIG] Subject:, Could py2app bundle all the requirements of my package?

2010-05-21 Thread Brendan Simon (eTRIX)
I think the short answer is yes. I've had no trouble with py2app getting all my dependencies. You have a bigger app so it may need some extra tweaking, but py2app has lots of commands to include and exclude stuff. It is similar to py2exe from what I can tell. Cheers, Brendan. > Subject: > [Pytho

Re: [Pythonmac-SIG] argv emulation with python 2.6.5

2010-03-30 Thread Brendan Simon (eTRIX)
On 31/03/10 12:04 AM, Ronald Oussoren wrote: >> I'm porting an app from python 2.5 (2.5.4) to python 2.6 (2.6.5) and >> having timeout issues with argv emulation. >> >> Does argv emulation with with python 2.6 (2.6.5) ?? >> > Which argv emenulation? AFAIK both bundlebuilder (included in python

[Pythonmac-SIG] argv emulation with python 2.6.5

2010-03-27 Thread Brendan Simon (eTRIX)
I'm porting an app from python 2.5 (2.5.4) to python 2.6 (2.6.5) and having timeout issues with argv emulation. Does argv emulation with with python 2.6 (2.6.5) ?? How do I get argv emulation working with 2.6 and/or what is the work around or alternative solution ?? Thanks, Brendan. ___

Re: [Pythonmac-SIG] argv_emulation for url open events

2009-08-13 Thread Brendan Simon (eTRIX)
Forgot to mention that the original argv_emulation.py file that I modified was in the following directory :- /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/bootstrap Cheers, Brendan. Brendan Simon (eTRIX) wrote: > argv emulation d

[Pythonmac-SIG] argv_emulation for url open events

2009-08-13 Thread Brendan Simon (eTRIX)
argv emulation does not work for url open events. eg. click on webbrowser with link to "myurl:myinfo" does not put "myurl:myinfo" into sys.argv. I modified the py2app argv_emulation.py to support this and have attached a patch. Is there a py2app developer who could have a look at this, test, and

[Pythonmac-SIG] Including images (jpg) in app bundle

2009-08-08 Thread Brendan Simon (eTRIX)
I have a jpg image which is displayed in my wxPython app. It is loaded from an 'image' directory. eg. image/mypic.jpg This works fine when I type "python mywxapp" from the command line, but when I build an app bundle it doesn't work. I've tried two options (see below). Both copy the jpg to the R

Re: [Pythonmac-SIG] Pythonmac-SIG Digest, Vol 76, Issue 4

2009-08-05 Thread Brendan Simon (eTRIX)
> Subject: > Re: [Pythonmac-SIG] py2app creating semi_standalone instead of > standalone app > From: > Henning Hraban Ramm > Date: > Wed, 5 Aug 2009 09:37:51 +0200 > To: > pythonmac-sig@python.org > > To: > pythonmac-sig@python.org > > > Am 200

Re: [Pythonmac-SIG] py2app creating semi_standalone instead of standalone app

2009-08-04 Thread Brendan Simon (eTRIX)
2.5.4 from Python.org. My freind's python is python 2.5.1 (standard on Leopard from Apple). I presume my friends python is "a vendor Python" and thus semi-standalone is being forced. Still not sure what the correct fix is :( Brendan Simon (eTRIX) wrote: > I have a wxPython app

[Pythonmac-SIG] py2app creating semi_standalone instead of standalone app

2009-08-04 Thread Brendan Simon (eTRIX)
I have a wxPython app which works on my Mac. I created an app bundle and this works on my Mac and my friends Mac :) All good, except that if I give my friend the source code and get him to create the app, the app is created as semi_standalone, and the app does not work as some modules cant be fou

Re: [Pythonmac-SIG] [SOLVED] open program via a protocol (eg. myapp:command)

2009-07-11 Thread Brendan Simon (eTRIX)
Brendan Simon (eTRIX) wrote: > > Cody Precord wrote: >> Hello, >> >> On Jul 10, 2009, at 10:35 PM, Brendan Simon (eTRIX) wrote: >> >>> Brendan Simon (eTRIX) wrote: >>> I registered the __geturl() event handler but it never gets called. I forget

Re: [Pythonmac-SIG] open program via a protocol (eg. myapp:command)

2009-07-10 Thread Brendan Simon (eTRIX)
Cody Precord wrote: > Hello, > > On Jul 10, 2009, at 10:35 PM, Brendan Simon (eTRIX) wrote: > >> Brendan Simon (eTRIX) wrote: >>>> >> >> I registered the __geturl() event handler but it never gets called. >> >> How can I determi

Re: [Pythonmac-SIG] open program via a protocol (eg. myapp:command)

2009-07-10 Thread Brendan Simon (eTRIX)
Brendan Simon (eTRIX) wrote: >> I've no idea if there's anything you need to watch for when Apple events >> in a wxPython-based application, so you might need to do a bit of >> research on that front. The basic code for handling a GetURL event >> should go some

Re: [Pythonmac-SIG] open program via a protocol (eg. myapp:command)

2009-07-10 Thread Brendan Simon (eTRIX)
has wrote: > On 10 Jul 2009, at 14:45, Brendan Simon (eTRIX) wrote: > >> has wrote: >>> Brendan Simon (eTRIX) wrote: >>> >>>> I have an OS X python program that is invoked via a uri on a webpage -- >>>> eg. "myapp:command" >>&g

Re: [Pythonmac-SIG] open program via a protocol (eg. myapp:command)

2009-07-10 Thread Brendan Simon (eTRIX)
has wrote: > Brendan Simon (eTRIX) wrote: > >> I have an OS X python program that is invoked via a uri on a webpage -- >> eg. "myapp:command" >> >> The app is invoked fine (via the plist), but I can't seem to extract the >> "command&q

[Pythonmac-SIG] open program via a protocol (eg. myapp:command)

2009-07-10 Thread Brendan Simon (eTRIX)
I have an OS X python program that is invoked via a uri on a webpage -- eg. "myapp:command" The app is invoked fine (via the plist), but I can't seem to extract the "command" from the system args. sys.argv contains the name of the application and some other values. example: sys.argv[0] = 'myap

Re: [Pythonmac-SIG] py2app failed to pack codes with wxPython

2009-07-03 Thread Brendan Simon (eTRIX)
pythonmac-sig-requ...@python.org wrote: > Subject: > [Pythonmac-SIG] py2app failed to pack codes with wxPython > From: > "Lance Chou" > Date: > Thu, 2 Jul 2009 23:45:04 -0700 > > > Hi All, > > > > Recently, I have been trying to pack my application on Mac OS X. The > application is written in

[Pythonmac-SIG] Calling OS X libraries from python

2009-06-25 Thread Brendan Simon
I have found a function in OS X library IOUSBlib called GetLocationId(self, location) -- specified in IOUSBLib.h How can I call this function from python ?? Is there a python wrapper for this OS X library ?? If not, what is the best/easiest way to get a python interface to this library that will

[Pythonmac-SIG] pyusb error

2009-06-25 Thread Brendan Simon
I'm using pyusb and having problems with the getString() method on OS X. I can successfully read the bus and device info and display the output by running the sample program usbenum.py, but when I try to get the manufacturer string I get a usb_control_msg(DeviceRequestTO) error. I assume this is a

[Pythonmac-SIG] py2app not copying PySerial module

2009-06-23 Thread Brendan Simon (eTRIX)
I'm running py2app for the first time -- following the instructions on the web. I've created an app bundle but running the app fails as it can't find a module named "serial". The "serial" module is part of PySerial-2.4. I couldn't find serial.py on my system but notice that there is a pyserial-2

[Pythonmac-SIG] interrogating I/O Registry

2009-06-21 Thread Brendan Simon (eTRIX)
I have a USB device that registers itself as a serial device (/dev/usbmodem). I have used pyusb to detect the device, and now I need to know what serial device has been "created" so I can talk to it using pyserial. I don't know what the best way is to find that association, but I came across