Re: [Pythonmac-SIG] py2app fails to build PyQt5 apps anymore

2022-01-03 Thread Barry Scott
> On 2 Jan 2022, at 13:02, Barry Scott wrote: > > > >> On 22 Dec 2021, at 23:36, jack.jan...@cwi.nl >> wrote: >> >> Hmm, my guess is that it fails when it fails when Qt tries to access the >> window manager (the `QtWidgets.QApplication( argv )` call). But why it

Re: [Pythonmac-SIG] py2app fails to build PyQt5 apps anymore

2022-01-03 Thread jack . jansen
I think the man page for `code sign` is pretty clear (unlike the —help, indeed:-). --entitlements path When signing, take the file at the given path and embed its contents in the signature as entitlement data. If the data at path does not already begin with a suit

Re: [Pythonmac-SIG] py2app fails to build PyQt5 apps anymore

2022-01-02 Thread Barry Scott
> On 22 Dec 2021, at 23:36, jack.jan...@cwi.nl wrote: > > Hmm, my guess is that it fails when it fails when Qt tries to access the > window manager (the `QtWidgets.QApplication( argv )` call). But why it would > fail when built with pyinstaller and not with py2app I have absolutely no > clue…

Re: [Pythonmac-SIG] py2app fails to build PyQt5 apps anymore

2021-12-24 Thread jack . jansen
Hmm, my guess is that it fails when it fails when Qt tries to access the window manager (the `QtWidgets.QApplication( argv )` call). But why it would fail when built with pyinstaller and not with py2app I have absolutely no clue… Could it be that a new entitlement or something was added by Apple

[Pythonmac-SIG] py2app fails to build PyQt5 apps anymore

2021-12-21 Thread Barry Scott
For a long time I have been happily building my App bundles using py2app. At some point that stopped working. I do not have a record of exactly when. Last time I saw everything work was Feb 2021. I have reduced the problem to a simple test program and scripts to build and run the test code to show

Re: [Pythonmac-SIG] py2app: Can successfully create app with alias mode but version built for deployment returns an error message

2021-06-17 Thread Christopher Barker
On Thu, Jun 17, 2021 at 9:24 AM wrote: > I think `.pyx` files are Cython sources, > Yes, they are. But Cython is designed to show the source line number when there are errors. So this has been compiled. That error is vaguely familiar to me, I got it recently— I think the fix was to clean out an

Re: [Pythonmac-SIG] py2app: Can successfully create app with alias mode but version built for deployment returns an error message

2021-06-17 Thread jack . jansen
A quick guess: maybe pandas doesn’t like to be included into a py2app application in this way? I think `.pyx` files are Cython sources, and I think these need to be compiled on installation (which should have happend during py2app?). When you google for “pandas py2app” you’ll find people report

[Pythonmac-SIG] py2app: Can successfully create app with alias mode but version built for deployment returns an error message

2021-06-16 Thread Paul Fishback
I'm using Python 3.9 on a Mac running Big Sur and am trying to create an app, MyApplication.app, from a script using py2app. I'm following the process outlined at https://py2app.readthedocs.io/en/latest/tutorial.html . The app itself uses tkinter for creating a GUI. My setup file looks like the fol

Re: [Pythonmac-SIG] py2app and pyinstaller on Big Sur

2021-05-21 Thread Ronald Oussoren via Pythonmac-SIG
> On 20 May 2021, at 15:26, Paul Fishback wrote: > > Hello, > > I'm using Python 3.9 on a Mac running Big Sur and have encountered problems > converting GUIs into Mac apps. I'm concerned that the problems may arise from > Big Sur itself. > > Pyinstaller: I posted a problem I ran into at >

[Pythonmac-SIG] py2app and pyinstaller on Big Sur

2021-05-20 Thread Paul Fishback
Hello, I'm using Python 3.9 on a Mac running Big Sur and have encountered problems converting GUIs into Mac apps. I'm concerned that the problems may arise from Big Sur itself. *Pyinstaller*: I posted a problem I ran into at https://stackoverflow.com/questions/67593376/pyinstaller-tkinter-script-

Re: [Pythonmac-SIG] py2app questions

2020-12-16 Thread Timothy M. Shead
> On Dec 15, 2020, at 10:17 AM, Christopher Barker wrote: > > On Mon, Dec 14, 2020 at 11:28 PM Timothy M. Shead > mailto:t...@shead-custom-design.com>> wrote: > > How was Python build? > > The Python executable and all dependencies are installed using Conda: > > Python 3.8.5 (default, Sep 4

Re: [Pythonmac-SIG] py2app questions

2020-12-15 Thread Christopher Barker
On Mon, Dec 14, 2020 at 11:28 PM Timothy M. Shead < t...@shead-custom-design.com> wrote: > > How was Python build? > > The Python executable and all dependencies are installed using Conda: > > Python 3.8.5 (default, Sep 4 2020, 02:22:02) > [Clang 10.0.0 ] :: Anaconda, Inc. on darwin > Note that

Re: [Pythonmac-SIG] py2app questions

2020-12-14 Thread Timothy M. Shead
> On Dec 14, 2020, at 1:21 AM, Ronald Oussoren wrote: > > How was Python build? The Python executable and all dependencies are installed using Conda: Python 3.8.5 (default, Sep 4 2020, 02:22:02) [Clang 10.0.0 ] :: Anaconda, Inc. on darwin >> And when I look at the main executable, the sec

Re: [Pythonmac-SIG] py2app questions

2020-12-14 Thread Ronald Oussoren via Pythonmac-SIG
> On 13 Dec 2020, at 04:53, Timothy M. Shead > wrote: > > Many thanks for py2app, of all the packaging apps I’ve tried, it’s been the > most usable by far; that said, I have questions. Using conda, python 3.8.5, > and py2app 0.22 on MacOS 10.15.7 with the following test app: > ># hello

[Pythonmac-SIG] py2app questions

2020-12-13 Thread Timothy M. Shead
Many thanks for py2app, of all the packaging apps I’ve tried, it’s been the most usable by far; that said, I have questions. Using conda, python 3.8.5, and py2app 0.22 on MacOS 10.15.7 with the following test app: # hello.py print(“Hello, World!”) And the following default setup.py:

Re: [Pythonmac-SIG] py2app apps codesigned with "--options runtime", i.e. any notorizable app, fails to launch with ctypes error (was Re: [Pyobjc-dev] ctypes MemoryError when attempting to launch nota

2018-10-28 Thread Glyph
> On Oct 28, 2018, at 1:48 PM, Ronald Oussoren wrote: > > > >> On 28 Oct 2018, at 19:47, Glyph wrote: >> >> >> >>> On Oct 28, 2018, at 11:20 AM, Glyph wrote: >>> >>> >>> On Oct 28, 2018, at 2:27 AM, Ronald Oussoren wrote: >>> > > Curiously, this is the same trace

Re: [Pythonmac-SIG] py2app apps codesigned with "--options runtime", i.e. any notorizable app, fails to launch with ctypes error (was Re: [Pyobjc-dev] ctypes MemoryError when attempting to launch nota

2018-10-28 Thread Ronald Oussoren via Pythonmac-SIG
> On 28 Oct 2018, at 19:20, Glyph wrote: > > > >>> >>> Curiously, this is the same traceback that comes from >>> https://forum.kodi.tv/showthread.php?tid=329171 >>> , which suggests it's >>> something fundamental to strict shared-library sa

Re: [Pythonmac-SIG] py2app apps codesigned with "--options runtime", i.e. any notorizable app, fails to launch with ctypes error (was Re: [Pyobjc-dev] ctypes MemoryError when attempting to launch nota

2018-10-28 Thread Ronald Oussoren via Pythonmac-SIG
> On 28 Oct 2018, at 19:47, Glyph wrote: > > > >> On Oct 28, 2018, at 11:20 AM, Glyph > > wrote: >> >> >> >>> On Oct 28, 2018, at 2:27 AM, Ronald Oussoren >> > wrote: >> Curiously, this is the same traceback that co

Re: [Pythonmac-SIG] py2app apps codesigned with "--options runtime", i.e. any notorizable app, fails to launch with ctypes error (was Re: [Pyobjc-dev] ctypes MemoryError when attempting to launch nota

2018-10-28 Thread Glyph
> On Oct 28, 2018, at 11:20 AM, Glyph wrote: > > > >> On Oct 28, 2018, at 2:27 AM, Ronald Oussoren > > wrote: > >>> >>> Curiously, this is the same traceback that comes from >>> https://forum.kodi.tv/showthread.php?tid=329171 >>>

[Pythonmac-SIG] py2app apps codesigned with "--options runtime", i.e. any notorizable app, fails to launch with ctypes error (was Re: [Pyobjc-dev] ctypes MemoryError when attempting to launch notarize

2018-10-28 Thread Glyph
> On Oct 28, 2018, at 2:27 AM, Ronald Oussoren wrote: > > > >> On 28 Oct 2018, at 06:27, Glyph wrote: >> >> I adjusted my code-signing to use the new, stricter requirements imposed by >> app notarization. I managed to get it successfully notarized, but the app is >> now non-functional as

Re: [Pythonmac-SIG] py2app -A and virtual environments

2018-10-01 Thread Just van Rossum
> On 28 Sep 2018, at 11:31, Joni Orponen wrote: > > On Fri, Sep 28, 2018 at 10:36 AM Just van Rossum > wrote: > Following up to this: it seems line 1832 in py2app/build_app.py isn’t correct > anymore, with Python 3 venv behavior: > > if os.path.exists(os.path.join(sys.prefix, ".Pytho

Re: [Pythonmac-SIG] py2app -A and virtual environments

2018-10-01 Thread Just van Rossum
> On 28 Sep 2018, at 13:08, Ronald Oussoren wrote: > > > >> On 28 Sep 2018, at 10:34, Just van Rossum wrote: >> >> Following up to this: it seems line 1832 in py2app/build_app.py isn’t >> correct anymore, with Python 3 venv behavior: >> >> if os.path.exists(os.path.join(sys.prefix, "

Re: [Pythonmac-SIG] py2app -A and virtual environments

2018-09-28 Thread Ronald Oussoren via Pythonmac-SIG
> On 28 Sep 2018, at 10:34, Just van Rossum wrote: > > Following up to this: it seems line 1832 in py2app/build_app.py isn’t correct > anymore, with Python 3 venv behavior: > >if os.path.exists(os.path.join(sys.prefix, ".Python")): > > Not sure how to fix it. If I force this code pat

Re: [Pythonmac-SIG] py2app -A and virtual environments

2018-09-28 Thread Joni Orponen
On Fri, Sep 28, 2018 at 10:36 AM Just van Rossum wrote: > Following up to this: it seems line 1832 in py2app/build_app.py isn’t > correct anymore, with Python 3 venv behavior: > > if os.path.exists(os.path.join(sys.prefix, ".Python")): > > Not sure how to fix it. If I force this code path

Re: [Pythonmac-SIG] py2app -A and virtual environments

2018-09-28 Thread Just van Rossum
Following up to this: it seems line 1832 in py2app/build_app.py isn’t correct anymore, with Python 3 venv behavior: if os.path.exists(os.path.join(sys.prefix, ".Python")): Not sure how to fix it. If I force this code path to be taken, I get an AttributeError on sys.real_prefix, so I gue

[Pythonmac-SIG] py2app -A and virtual environments

2018-09-28 Thread Just van Rossum
Hi all, py2app seems to do the right thing from an activated virtual env when building a full app. However, for speedy development I use the py2app -A option a lot, and when running such an alias bundle it appears to use the global Python install instead of the virtual env. Is there a way aroun

Re: [Pythonmac-SIG] py2app is not finding imported libraries

2018-07-29 Thread David Brooks
Hmm and FWIW, why is PyQt4 being referenced when Tkinter is being used as the GUI?? (I'm assuming `tinter` is a typo as I can find no reference to any Python package called that.) Dave On 29/07/18 7:54 PM, Ronald Oussoren via Pythonmac-SIG wrote: > Could you create a small reproducer and sent me

Re: [Pythonmac-SIG] py2app is not finding imported libraries

2018-07-29 Thread Ronald Oussoren via Pythonmac-SIG
Could you create a small reproducer and sent me it as well as the output of “python3 setup.py py2app -A”, the output of “python3 -mpip list” and a list of files in the generated app bundle (in a Terminal window: find dist/MyApp.app -ls)? With some luck this will help me find the issue. And jus

[Pythonmac-SIG] py2app is not finding imported libraries

2018-07-28 Thread David Simmons
Do not know where else to seek help as I have extensively searched for months on the internet without finding a hint to fix the problem. I am using Apple OS X 10.13.6 and Python 3.5.2. All attempts to use py2app with the -A option and without fail to find PyQT4 and reportlab libraries. I use

Re: [Pythonmac-SIG] py2app error

2018-02-21 Thread Barry
> On 19 Feb 2018, at 22:32, Kevin Walzer wrote: > > A Tkinter app I am building on 10.13 with py2app 0.14 is crashing with this > error: > > Traceback (most recent call last): > File > "/Users/kevin/Programming/quickwho/dist/QuickWho.app/Contents/Resources/__boot__.py", > line 98, in >

[Pythonmac-SIG] py2app error

2018-02-19 Thread Kevin Walzer
A Tkinter app I am building on 10.13 with py2app 0.14 is crashing with this error: Traceback (most recent call last):   File "/Users/kevin/Programming/quickwho/dist/QuickWho.app/Contents/Resources/__boot__.py", line 98, in     _run()   File "/Users/kevin/Programming/quickwho/dist/QuickWho.a

Re: [Pythonmac-SIG] py2app 0.12 and modulegraph 0.14 released

2017-02-22 Thread Glyph Lefkowitz
> On Feb 22, 2017, at 2:39 AM, Ronald Oussoren wrote: > > Hi, > > I’ve just pushed py2app 0.12 and modulegraph 0.14 to PyPI. Both primarily > contain bugfixes. > > I had hoped to fix more issues in these releases, but that hasn’t worked out > and the fixed bugs are serious enough to not dela

[Pythonmac-SIG] py2app 0.12 and modulegraph 0.14 released

2017-02-22 Thread Ronald Oussoren
Hi, I’ve just pushed py2app 0.12 and modulegraph 0.14 to PyPI. Both primarily contain bugfixes. I had hoped to fix more issues in these releases, but that hasn’t worked out and the fixed bugs are serious enough to not delay the release any more. On to the next release… Ronald

Re: [Pythonmac-SIG] py2app .app crashes... but only when downloaded (quarantine)

2017-02-02 Thread Kevin Walzer
On 2/2/17 10:22 AM, Jack Jansen wrote: My guess is that this could be caused by some early dialog that triggers a bug in your initialization code, or more precisely: the order in which you initialize things. I think Jack's diagnosis is sound. I see you are linking to the system Tk on Mac OS,

Re: [Pythonmac-SIG] py2app .app crashes... but only when downloaded (quarantine)

2017-02-02 Thread Barry Scott
Is there any change if you use the latest py2app 0.11? Barry > On 30 Jan 2017, at 19:14, David A. Riggs wrote: > > I've got a bizarre issue here. I've built a .app with py2app 0.10 on my OS X > 10.9.5 machine using python.org Python 2.7.12. It's a > Tkinter application,

Re: [Pythonmac-SIG] py2app .app crashes... but only when downloaded (quarantine)

2017-02-02 Thread Jack Jansen
If I look at the stack trace (for thread 0, the thread that crashes) it seems that there’s a dialog posted from the mainline code (stack frames 29/30). This may be the thing that only happens because of the quarantaine, but I guess you’ll know that better. From there, a temporary runloop is crea

[Pythonmac-SIG] py2app .app crashes... but only when downloaded (quarantine)

2017-02-02 Thread David A. Riggs
I've got a bizarre issue here. I've built a .app with py2app 0.10 on my OS X 10.9.5 machine using python.org Python 2.7.12. It's a Tkinter application, with a relatively simple `setup.py`. The .app works beautifully when I build it and double-click it locally, and when I "sneaker net" it to a 10.10

[Pythonmac-SIG] py2app .app crashes... but only when downloaded (quarantine)

2017-02-02 Thread David A. Riggs
I've got a bizarre issue here. I've built a .app with py2app 0.10 on my OS X 10.9.5 machine using python.org Python 2.7.12. It's a Tkinter application, with a relatively simple `setup.py`. The .app works beautifully when I build it and double-click it locally, and when I "sneaker net" it to a 10.10

Re: [Pythonmac-SIG] py2app release delayed

2016-12-20 Thread Barry Scott
> On 18 Dec 2016, at 20:39, Ronald Oussoren wrote: > > Hi, > > I had hoped to release a new version of py2app today, but didn’t due to > problems with macholib that resulted in broken application bundles. The good > news is that I found the cause of that breakage and reverted the patch that

Re: [Pythonmac-SIG] py2app release delayed

2016-12-18 Thread Glyph Lefkowitz
> On Dec 18, 2016, at 12:39 PM, Ronald Oussoren wrote: > > Hi, > > I had hoped to release a new version of py2app today, but didn’t due to > problems with macholib that resulted in broken application bundles. The good > news is that I found the cause of that breakage and reverted the patch th

[Pythonmac-SIG] py2app release delayed

2016-12-18 Thread Ronald Oussoren
Hi, I had hoped to release a new version of py2app today, but didn’t due to problems with macholib that resulted in broken application bundles. The good news is that I found the cause of that breakage and reverted the patch that caused it. I did fix a number of bugs on the tracker last week (t

[Pythonmac-SIG] py2app questions

2016-09-25 Thread Barry Scott
I’m a happy user of py2app and thanks to all the work that has gone into py2app. I’m using py2app to package a couple of apps that use PyQt and pytz. I found that the resulting app has the .dylib files in the python35.zip. Is that correct? I had assumed that .dylib files need to be in the .app a

[Pythonmac-SIG] py2app 0.9 on PyPI

2014-07-27 Thread Ronald Oussoren
Hi, Now that I’m writing announcements anyway… I’ve also uploaded a new release of py2app. This release uses a new version of modulegraph that records more information about the links in the graph. This makes it possible to provide more interesting information on modules that py2app couldn’t

Re: [Pythonmac-SIG] py2app & pillow

2014-07-21 Thread Ronald Oussoren
On 13 Jun 2014, at 21:45, Karsten Wolf wrote: > Hi, > > in an py2app app I replaced the thumbnail mechanism from sips (via os.system) > to Pillow. The resulting app size went from 11MB to 50 MB for the inclusion > of the complete TCL/TK stuff. > > Is there an easy way to reduce that? > > Bo

[Pythonmac-SIG] py2app & pillow

2014-06-13 Thread Karsten Wolf
Hi, in an py2app app I replaced the thumbnail mechanism from sips (via os.system) to Pillow. The resulting app size went from 11MB to 50 MB for the inclusion of the complete TCL/TK stuff. Is there an easy way to reduce that? Both, Python 2.7.6 and Pillow are compiled for intel 32bit on OSX10.6

[Pythonmac-SIG] py2app 0.8.1 with python3.4 + pyqt5 crashes the app

2014-06-08 Thread apaeffgen
Hi All, Starting the app inside the bundle on the command line works fine with some menu glitches, but clicking on the Application Icon the app crashes. The crash report is listet below: Process: Opml_Converter [53618] Path:/Users/USER/*/Opml_Converter.app/Contents/MacOS/O

[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] py2app: How can I run tests using the bundled python interpreter?

2013-11-07 Thread Berg, Stuart
Hi Ronald, > Recent versions of py2app have a way to specify secondary python scripts to > be included in the app bundle (the --extra-scripts option, introduced in > version 0.7). You could use that to include the test script in the app bundle > and launch it using the helper binary in ./dist/M

Re: [Pythonmac-SIG] py2app: How can I run tests using the bundled python interpreter?

2013-11-05 Thread Ronald Oussoren
On 1 Nov, 2013, at 21:10, Berg, Stuart wrote: > Hi all, > > I just posted a question about py2app to stackoverflow: > http://stackoverflow.com/questions/19734558/py2app-how-can-i-run-tests-using-the-bundled-python-interpreter > > For your convenience, I've also pasted the question below. Any

Re: [Pythonmac-SIG] py2app: How can I run tests using the bundled python interpreter?

2013-11-02 Thread Aahz
On Fri, Nov 01, 2013, Berg, Stuart wrote: > > In order to avoid problems like this in the future, I want to run a > test suite using the same exact interpreter that py2app includes in my > bundle. For that to work, I need the proper environment setup that > is somehow automatically created when t

[Pythonmac-SIG] py2app: How can I run tests using the bundled python interpreter?

2013-11-01 Thread Berg, Stuart
Hi all, I just posted a question about py2app to stackoverflow: http://stackoverflow.com/questions/19734558/py2app-how-can-i-run-tests-using-the-bundled-python-interpreter For your convenience, I've also pasted the question below. Any responses (via your preferred venue :-) are much appreciated

Re: [Pythonmac-SIG] py2app + pyqt: Differences between command-line and double-click

2013-08-15 Thread Michael O'Donnell
Hi Stuart, I have been suffering similar problems since MacOSX changed the way they handle windows, a couple of versions back. See: http://mail.python.org/pipermail/tkinter-discuss/2012-May/003161.html The problem there also included the argv_emulation flag, and setting this to false fixed th

Re: [Pythonmac-SIG] py2app + pyqt: Differences between command-line and double-click

2013-08-12 Thread Berg, Stuart
Hi Ronald, It took me a while to follow up on this thread I started a few months ago because I wanted to find a minimal test case that illustrates my problem. Now I've got one. Apparently the PyQt spashscreen doesn't behave correctly when I use the py2app "argv_emulation" option. To save y

Re: [Pythonmac-SIG] py2app questions..

2013-06-25 Thread Ronald Oussoren
On 25 Jun, 2013, at 16:26, Chris Barker - NOAA Federal wrote: > Ronald, > > Did you mean this to go to the list? I've forwarded it on... I did probably use the wrong reply button :-( > > Anyway, thanks for the notes -- I'll keep all this in mind when I > build that app again. > >>> I've le

Re: [Pythonmac-SIG] py2app questions..

2013-06-25 Thread Chris Barker - NOAA Federal
Ronald, Did you mean this to go to the list? I've forwarded it on... Anyway, thanks for the notes -- I'll keep all this in mind when I build that app again. >> I've learned a few things from this. >> >> 1) this is odd: >> right near the top, I see: >> prescript.py >> imports: Image >>

Re: [Pythonmac-SIG] py2app error when launching built app

2013-06-25 Thread Alex Honeywell
Framework build. I believe it had something to do with a bad environment (I was using virtualenv when I was getting this error and there were a few pathing conflicts). I deleted everything and made a more isolated Python environment with homebrew in /usr/local and it works fine now. On Mon, Dec 2

Re: [Pythonmac-SIG] Py2app-built app giving error 255 on loading AppKit?

2013-05-22 Thread Frank Steele
That was it -- Thanks! I built a new Python 2.7.4 virtual environment this morning, and code built with gives 10.6 as the minimum target. I'm not sure how my 2.7.3 environment got built with 10.8 only. Best, Frank On May 22, 2013, at 4:15 AM, Ronald Oussoren wrote: > > On 21 May, 2013, at 1

Re: [Pythonmac-SIG] Py2app-built app giving error 255 on loading AppKit?

2013-05-22 Thread Ronald Oussoren
On 21 May, 2013, at 16:04, fste...@mindspring.com wrote: > I've built an app with Py2app. It runs as expected on my development machine, > but on machines (10.7.5 and 10.8.2, at least) without a development > environment, I get: > > testmini1:~ administrator$ > /Users/administrator/Desktop/Ea

[Pythonmac-SIG] Py2app-built app giving error 255 on loading AppKit?

2013-05-21 Thread fsteele
I've built an app with Py2app. It runs as expected on my development machine, but on machines (10.7.5 and 10.8.2, at least) without a development environment, I get: testmini1:~ administrator$ /Users/administrator/Desktop/EasySetup.app/Contents/MacOS/EasySetup ; exit; Traceback (most recent cal

Re: [Pythonmac-SIG] py2app + pyqt: Differences between command-line and double-click

2013-05-15 Thread Ronald Oussoren
On 15 May, 2013, at 22:32, "Berg, Stuart" wrote: > Hi, > > I'm using py2app to packages my (cross-platform) PyQt app into a Mac OS X > application bundle. (py2app is great, btw!) > > I was wondering if anyone could point me to some documentation that explains > in detail how a python app bu

Re: [Pythonmac-SIG] py2app + pyqt: Differences between command-line and double-click

2013-05-15 Thread Michael McCracken
There aren't any other window-focus related gotchas that I know of in the bootstrap code, and I've looked at most of it - can you share more about your program, and perhaps show what your setup.py looks like? On Wed, May 15, 2013 at 2:31 PM, Berg, Stuart wrote: > Hi Michael, > > Thanks for yo

Re: [Pythonmac-SIG] py2app + pyqt: Differences between command-line and double-click

2013-05-15 Thread Berg, Stuart
Hi Michael, Thanks for your response.  I am already calling show() and then raise() (though my SO question didn't make that clear -- sorry about that).  I think I'm having a different issue than the one in the link you provided, because my app behaves correctly when launched from the command

Re: [Pythonmac-SIG] py2app + pyqt: Differences between command-line and double-click

2013-05-15 Thread Michael McCracken
Hi, I answered on stack overflow too - but the short version is call show() *then also call* raise_() on your main window. The answer to an earlier version of this question has a couple of links for more background: http://stackoverflow.com/questions/3662559/why-does-my-pyqt-application-open-in-t

[Pythonmac-SIG] py2app + pyqt: Differences between command-line and double-click

2013-05-15 Thread Berg, Stuart
Hi, I'm using py2app to packages my (cross-platform) PyQt app into a Mac OS X application bundle. (py2app is great, btw!) I was wondering if anyone could point me to some documentation that explains in detail how a python app bundle's launch process differs from launching the python app direc

[Pythonmac-SIG] Py2App and PyQt4 Issues

2013-04-27 Thread J Silverman
Hi All, I'm attempting to get py2app and PyQt4 to work on my Mac running OSX 10.6. I've tried multiple variations of Python (2.7.4, 3.2.4, 3.3.1, etc), and also tried both the premade binary of PyQtx and compiled my own of the most recent stable version of PyQt4 (4.10.1). Yet despite this, I

Re: [Pythonmac-SIG] py2app questions..

2013-04-15 Thread Chris Barker - NOAA Federal
Ronald et al, As matplotlib seems to be responsible for bringing eveything else in, I'm trying a different tack: 1) I've removed many of the recipes from my p2app distribution, notably teh matplotlib one. So now the only recipe getting run is wx. 2) I know that matplotlib isn't going to work rig

Re: [Pythonmac-SIG] py2app questions..

2013-04-12 Thread Chris Barker - NOAA Federal
On Thu, Apr 11, 2013 at 10:50 PM, Ronald Oussoren wrote: > On 11 Apr, 2013, at 23:50, Chris Barker - NOAA Federal > wrote: >> *** using recipe: virtualenv *** >> *** using recipe: sip *** ... >> It looks like the recipes for ALL of the packages I have installed are >> being run -- a bug perhap

Re: [Pythonmac-SIG] py2app questions..

2013-04-11 Thread Ronald Oussoren
On 10 Apr, 2013, at 20:19, Chris Barker - NOAA Federal wrote: > First: Ronald, thanks for keeping py2app up to date! > > The good news: I just ran a recent py2app on an older app of mine, and > it all worked out of the box. > > However, the resulting bundle is HUGE. A lot of this is inevitabl

[Pythonmac-SIG] py2app questions..

2013-04-10 Thread Chris Barker - NOAA Federal
First: Ronald, thanks for keeping py2app up to date! The good news: I just ran a recent py2app on an older app of mine, and it all worked out of the box. However, the resulting bundle is HUGE. A lot of this is inevitable, I'm using a universal build, and some big packages, but there seems to be s

Re: [Pythonmac-SIG] py2app failure with framework build of 2.7

2013-04-05 Thread Nat Echols
On Thu, Apr 4, 2013 at 11:28 PM, Ronald Oussoren wrote: > Packagemaker should't be problem here, although the build procedure might > be problematic: IIRC the app bundle contains symlinks where the target > is an absolute path, and therefore you need to create the app from > sources that are alrea

Re: [Pythonmac-SIG] py2app failure with framework build of 2.7

2013-04-04 Thread Ronald Oussoren
On 4 Apr, 2013, at 17:01, Nat Echols wrote: > On Thu, Apr 4, 2013 at 5:46 AM, Ronald Oussoren > wrote: >>> Replying to my own post: after sending this, I read the section in the >>> documentation about "alias mode". This seems to work fine, and >>> produces an app that is 50KB instead of near

Re: [Pythonmac-SIG] py2app failure with framework build of 2.7

2013-04-04 Thread Chris Barker - NOAA Federal
On Thu, Apr 4, 2013 at 8:01 AM, Nat Echols wrote: > On Thu, Apr 4, 2013 at 5:46 AM, Ronald Oussoren > wrote: >> An alias mode build contains symlinks to the python files in your >> application, and is therefore not a useful way to deploy. > > It's still not totally clear to me if this is reall

Re: [Pythonmac-SIG] py2app failure with framework build of 2.7

2013-04-04 Thread Nat Echols
On Thu, Apr 4, 2013 at 5:46 AM, Ronald Oussoren wrote: >> Replying to my own post: after sending this, I read the section in the >> documentation about "alias mode". This seems to work fine, and >> produces an app that is 50KB instead of nearly 9MB. Since I'm running >> this script as part of a

Re: [Pythonmac-SIG] py2app failure with framework build of 2.7

2013-04-04 Thread Ronald Oussoren
On 4 Apr, 2013, at 1:12, Nat Echols wrote: > Replying to my own post: after sending this, I read the section in the > documentation about "alias mode". This seems to work fine, and > produces an app that is 50KB instead of nearly 9MB. Since I'm running > this script as part of a complicated bu

Re: [Pythonmac-SIG] py2app failure with framework build of 2.7

2013-04-03 Thread Nat Echols
Replying to my own post: after sending this, I read the section in the documentation about "alias mode". This seems to work fine, and produces an app that is 50KB instead of nearly 9MB. Since I'm running this script as part of a complicated build and installation process, and the path to the inte

[Pythonmac-SIG] py2app failure with framework build of 2.7

2013-04-03 Thread Nat Echols
I'm trying to make a simple iconified Python launcher for a shell script, and something I'm doing isn't working, despite having used py2app successfully before. The target Python program ("my_program_wrapper.py") consists of this: import os import sys os.environ["PYTHONPATH"] = "" os.spawnv(os.P_

Re: [Pythonmac-SIG] py2app issue, app crashes on 10.7.5

2013-02-27 Thread Russell E. Owen
In article <2d0381b9-3b50-4804-9b2f-741855236...@gmail.com>, David Smith wrote: > Hi Ronald, > > To recap, my recent roadblocks were with current macport versions of python > 2.7, wxpython 2.9.4, and py2app 0.7.3 on OS X 10.8. The first problem > occurred when building the standalone app wit

Re: [Pythonmac-SIG] py2app issue, app crashes on 10.7.5

2013-02-24 Thread David Smith
Hi Ronald, To recap, my recent roadblocks were with current macport versions of python 2.7, wxpython 2.9.4, and py2app 0.7.3 on OS X 10.8. The first problem occurred when building the standalone app with py2app. The error seemed to arise from py2app or macholib: "Mach-O header is too large to

Re: [Pythonmac-SIG] py2app issue, app crashes on 10.7.5

2013-02-24 Thread Ronald Oussoren
On 23 Feb, 2013, at 21:03, David Smith wrote: > Hello, > > Were you able to resolve the crash problem on 10.7? If so, can you describe > your solution? I just built an app with py2app on 10.8, and it crashes with > identical exceptions on 10.6. Which version of py2app do you use? And which

Re: [Pythonmac-SIG] py2app issue, app crashes on 10.7.5

2013-02-23 Thread David Smith
Hello, Were you able to resolve the crash problem on 10.7? If so, can you describe your solution? I just built an app with py2app on 10.8, and it crashes with identical exceptions on 10.6. Thanks! ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.

Re: [Pythonmac-SIG] py2app : strange behavior maybe relative to encoding

2013-02-19 Thread Pierre Ratinaud
Hi, I have put this in my code : env = os.environ.copy() if sys.platform == 'darwin' and 'LC_ALL' not in env: env['LC_ALL'] = 'en_US.UTF-8' and now I use Popen like this : Popen(mycommand, env = env) Maybe it's a little less suboptmal then changing user's environment :) But it's no

Re: [Pythonmac-SIG] py2app : strange behavior maybe relative to encoding

2013-02-18 Thread Ronald Oussoren
On 18 Feb, 2013, at 21:22, Pierre Ratinaud wrote: > Hi, >> I'm not sure. What kind of encoding error occurs? The exact error message >> might give a hint as to what's going on here. > The only message I had was in Console. The software I'm using with Popen (R) > is complaining (in french) abou

Re: [Pythonmac-SIG] py2app : strange behavior maybe relative to encoding

2013-02-18 Thread Pierre Ratinaud
Hi, I'm not sure. What kind of encoding error occurs? The exact error message might give a hint as to what's going on here. The only message I had was in Console. The software I'm using with Popen (R) is complaining (in french) about encoding in my script. My tests and googling leave me to th

Re: [Pythonmac-SIG] py2app : strange behavior maybe relative to encoding

2013-02-18 Thread Ronald Oussoren
On 17 Feb, 2013, at 10:02, Pierre Ratinaud wrote: > Hi all, > I have create a .app with py2app for a wxpython application. The resulting > app does not work as expected if I double click on it (it works but somewhere > in the process, an encoding problem appear from another program called with

Re: [Pythonmac-SIG] py2app : strange behavior maybe relative to encoding

2013-02-17 Thread Pierre Ratinaud
Actually, I use Popen from subprocess. I don't know why I have written os.popen :) Regards Pierre Le 17/02/2013 10:14, Chris Rebert a écrit : On Feb 17, 2013 1:05 AM, "Pierre Ratinaud" > wrote: > > Hi all, > I have create a .app with py2app for a wxpython applic

Re: [Pythonmac-SIG] py2app : strange behavior maybe relative to encoding

2013-02-17 Thread Chris Rebert
On Feb 17, 2013 1:05 AM, "Pierre Ratinaud" wrote: > > Hi all, > I have create a .app with py2app for a wxpython application. The resulting app does not work as expected if I double click on it (it works but somewhere in the process, an encoding problem appear from another program called with os.po

[Pythonmac-SIG] py2app : strange behavior maybe relative to encoding

2013-02-17 Thread Pierre Ratinaud
Hi all, I have create a .app with py2app for a wxpython application. The resulting app does not work as expected if I double click on it (it works but somewhere in the process, an encoding problem appear from another program called with os.popen). This problem does not occur if I launch my app

Re: [Pythonmac-SIG] py2app issue, app crashes on 10.7.5

2012-12-27 Thread Ronald Oussoren
On 27 Dec, 2012, at 12:28, Nadav Hashimshony wrote: > Hi All > > i build a Python app using py2app on OSX 10.8.2 and it work fine. > > when trying to run the app on OSX 10.7.5 the app crashes and doesn't start. What do you mean by crashes? Is there a crash reporter screen or some other error

Re: [Pythonmac-SIG] py2app issue, app crashes on 10.7.5

2012-12-27 Thread Nadav Hashimshony
Thanks, if i run from command line it works great. the crash report is: Process: installer [14433] Path:/Users/USER/Desktop/installer.app/Contents/MacOS/installer Identifier: org.pythonmac.unspecified.installer Version: 0.0.0 (0.0.0) Code Type: X86-64 (Nat

[Pythonmac-SIG] py2app issue, app crashes on 10.7.5

2012-12-27 Thread Nadav Hashimshony
Hi All i build a Python app using py2app on OSX 10.8.2 and it work fine. when trying to run the app on OSX 10.7.5 the app crashes and doesn't start. when cd'ing to the app directory and running the pyx from cli it work fine. it look like something is happening when i double click the app file

Re: [Pythonmac-SIG] py2app error when launching built app

2012-12-24 Thread Ronald Oussoren
On 11 Nov, 2012, at 23:26, Alex Honeywell wrote: > I've got my app successfully bundled and built, but when I try to launch it > from Finder I get "snakewatch: Error" and nothing else except "exited with > error: 255" in Console. > > When I run the binary from Terminal instead, I get > > Tra

[Pythonmac-SIG] py2app error when launching built app

2012-12-21 Thread Alex Honeywell
I've got my app successfully bundled and built, but when I try to launch it from Finder I get "snakewatch: Error" and nothing else except "exited with error: 255" in Console. When I run the binary from Terminal instead, I get Traceback (most recent call last): File "/Volumes/Data/Development/sn

Re: [Pythonmac-SIG] py2app and PyQt: QT plugins cause loading multiple QT library versions

2012-11-28 Thread Christian Tismer
Hi Ronald, On 11/26/12 10:28 AM, Ronald Oussoren wrote: On 26 Nov, 2012, at 0:18, Christian Tismer wrote: Hi Ronald, I have run my install in Wing IDE and found out that the error was introduced by my wrong usage of MachOStandalone.py. I simply ran MachOStandalone.run(path) on the path of m

Re: [Pythonmac-SIG] py2app and PyQt: QT plugins cause loading multiple QT library versions

2012-11-26 Thread Ronald Oussoren
On 26 Nov, 2012, at 0:18, Christian Tismer wrote: > Hi Ronald, > > I have run my install in Wing IDE and found out that the error was > introduced by my wrong usage of MachOStandalone.py. > > I simply ran MachOStandalone.run(path) on the path of my pyside > build, assuming that everything work

Re: [Pythonmac-SIG] py2app and PyQt: QT plugins cause loading multiple QT library versions

2012-11-25 Thread Christian Tismer
Hi Ronald, I have run my install in Wing IDE and found out that the error was introduced by my wrong usage of MachOStandalone.py. I simply ran MachOStandalone.run(path) on the path of my pyside build, assuming that everything works from alone. I was not aware that MachOStandalone assumes that a

Re: [Pythonmac-SIG] py2app and PyQt: QT plugins cause loading multiple QT library versions

2012-11-25 Thread Ronald Oussoren
I'm the maintainer of macholib as well (and the rest of the py2app stack) Ronald Sent from my iPad On 25 nov. 2012, at 21:02, Christian Tismer wrote: > Hi Ronald, > > maybe my way to reply to this thread was the wrong approach. > I thought I had found the reason why Michael had problems, > be

Re: [Pythonmac-SIG] py2app and PyQt: QT plugins cause loading multiple QT library versions

2012-11-25 Thread Christian Tismer
Hi Ronald, maybe my way to reply to this thread was the wrong approach. I thought I had found the reason why Michael had problems, because I hit that, too. But it was not a py2app question at all that I wanted to ask. Instead I thought you are the current maintainer of macholib, and I wanted to

Re: [Pythonmac-SIG] py2app and PyQt: QT plugins cause loading multiple QT library versions

2012-11-25 Thread Ronald Oussoren
On 24 Nov, 2012, at 21:50, Christian Tismer wrote: > Howdy, > > On 31.05.12 21:46, Michael McCracken wrote: >> New user, so new thread, in reference to "(PyQt and py2app) Gui starts >> in IDLE but not as app". >> >> This happens when Qt loads image plugins from the >> system location (likely s

Re: [Pythonmac-SIG] py2app and PyQt: QT plugins cause loading multiple QT library versions

2012-11-24 Thread Christian Tismer
Howdy, On 31.05.12 21:46, Michael McCracken wrote: New user, so new thread, in reference to "(PyQt and py2app) Gui starts in IDLE but not as app". This happens when Qt loads image plugins from the system location (likely set during Qt's configure), which then load the system Qt. The problem an

Re: [Pythonmac-SIG] py2app - building under 10.6.8, running under 10.4?

2012-09-28 Thread Ronald Oussoren
On 28 Sep, 2012, at 16:33, Florian Höch wrote: > Am 26.09.2012 20:29, schrieb Ronald Oussoren: >> >> On 25 Sep, 2012, at 17:53, Florian Höch >> wrote: >> >>> Hi, >>> >>> I'm getting the following error in console.log when I try to run my app >>> which was built on OS X 10.6.8 under OS X 10.

  1   2   3   4   5   6   7   8   9   10   >