Comments on: PyQt and py2app: Seriously I don’t know what to do with you when you’re like this http://www.toryhoke.com/2009/08/27/pyqt-and-py2app-seriously-i-dont-know-what-to-do-with-you-when-youre-like-this/ Comics, essays, art, and heckling Wed, 27 Apr 2016 15:07:16 +0000 hourly 1 http://wordpress.org/?v=4.3.8 By: Tory http://www.toryhoke.com/2009/08/27/pyqt-and-py2app-seriously-i-dont-know-what-to-do-with-you-when-youre-like-this/comment-page-1/#comment-64353 Mon, 01 Apr 2013 21:50:35 +0000 https://www.toryhoke.com/wp/?p=2174#comment-64353 Thank you for this update! This gives me courage for next time. Good job getting it to work!

]]>
By: thblt http://www.toryhoke.com/2009/08/27/pyqt-and-py2app-seriously-i-dont-know-what-to-do-with-you-when-youre-like-this/comment-page-1/#comment-64247 Sat, 30 Mar 2013 20:48:53 +0000 https://www.toryhoke.com/wp/?p=2174#comment-64247 Ok, it’s been three years since this post and the world has changed, but I found a stupid, but seemingly working, way to have my app bundle embed the *svg* plugins, which wasn’t included by default, and btw to fix the “you might be loading two sets of Qt binaries” infamous error. Your post helped me on the first part with the pointer to macdeployqt, I found out that the best, although dirty, way to finally achieve my end was :

1. python3 setup.py py2app
2. macdeployqt dist/Tkacz.app
(Ignore the long “WARNING: Could not find any external (…) before trying again.”
3. cp /Developer/Applications/Qt/plugins/imageformats/libqsvg.dylib dist/Tkacz.app/Contents/PlugIns/imageformats/
4. macdeployqt dist/Tkacz.app (Yes, again. That’s because I haven’t found a way to make it aware of the need to embed the SVG lib, but the app crashes after manual embedding. The second run seems to fix that.).

Maybe this may be helpful to someone struggling inside this strange asylum of bundling PyQt apps for osx.

]]>
By: Tory http://www.toryhoke.com/2009/08/27/pyqt-and-py2app-seriously-i-dont-know-what-to-do-with-you-when-youre-like-this/comment-page-1/#comment-29007 Mon, 25 Jan 2010 18:42:59 +0000 https://www.toryhoke.com/wp/?p=2174#comment-29007 Useless? No! Bizarre? Yes. Smelling of overkill? Quite. But ReportLab turned my application from broken to unbroken after a half day of pure *headdesk* — and for that I will buy them a beer.
Thank you for the advice to ask pythonmac. I should do that. I’ve seen most of my PyQt workarounds cause temporary euphoria and long-term coming-back-to-bite-you — I can hardly expect this one to be different.

]]>
By: Chris Barker http://www.toryhoke.com/2009/08/27/pyqt-and-py2app-seriously-i-dont-know-what-to-do-with-you-when-youre-like-this/comment-page-1/#comment-29003 Fri, 22 Jan 2010 23:54:50 +0000 https://www.toryhoke.com/wp/?p=2174#comment-29003 Well, in this case, at least, I think the issue is with OS-X vs. Windows, rather than py2app vs. py2exe.

In generally, Windows is very sloppy with linking, which results in dll hell, but does sometimes make things like this easier to do.

As for your problem — that is a useless work-around if you want to write an app that can open a jpeg, which would be a pretty reasonable thing to want to do.

There has got to be a solution, however. I don’t know a thing about QT, and not much about the inner workings of linking on the Mac, but there are people that do on the pythomac list — I don’t think I’ve seen you there — it’s worth posting a question.

http://mail.python.org/mailman/listinfo/pythonmac-sig

]]>
By: Tory http://www.toryhoke.com/2009/08/27/pyqt-and-py2app-seriously-i-dont-know-what-to-do-with-you-when-youre-like-this/comment-page-1/#comment-28914 Mon, 07 Dec 2009 19:20:56 +0000 https://www.toryhoke.com/wp/?p=2174#comment-28914 Me and a coworker were just talking today about how py2exe seems to handle things better than py2app (also/as a result of more users, more documentation, more helper apps, etc.) I’m glad you got py2exe to bend to your will. I look forward to seeing what develops for Python on Mac.

]]>
By: jbz http://www.toryhoke.com/2009/08/27/pyqt-and-py2app-seriously-i-dont-know-what-to-do-with-you-when-youre-like-this/comment-page-1/#comment-28911 Mon, 07 Dec 2009 17:11:17 +0000 https://www.toryhoke.com/wp/?p=2174#comment-28911 After hours of stumbling around with the same issue, I’d like to share the that worked for me on windows:
using python2.6

copy the following directory into your dist directory generated by py2exe:
C:\Python26\Lib\site-packages\PyQt4\plugins\imageformats

I just dropped the imageformats directory directly into my dist directory, without any further modifications to qt.conf or anything like that. I haven’t tried it, but this may work for phonon as well.

]]>
By: Hugo Rabson http://www.toryhoke.com/2009/08/27/pyqt-and-py2app-seriously-i-dont-know-what-to-do-with-you-when-youre-like-this/comment-page-1/#comment-28826 Tue, 03 Nov 2009 22:10:35 +0000 https://www.toryhoke.com/wp/?p=2174#comment-28826 Yippee! You’ve made my day. I have been having *exactly* the same problem. Thanks to you, I now have a solution. Please consider yourself appreciated and thanked. You rock my socks.

]]>
By: Tory http://www.toryhoke.com/2009/08/27/pyqt-and-py2app-seriously-i-dont-know-what-to-do-with-you-when-youre-like-this/comment-page-1/#comment-28075 Fri, 28 Aug 2009 16:36:18 +0000 https://www.toryhoke.com/wp/?p=2174#comment-28075 Anomalous Fan, I believe you have made a spelling error. “Saddens” should be “delights and validates the existence of.”

]]>
By: Your Anomalous Fan http://www.toryhoke.com/2009/08/27/pyqt-and-py2app-seriously-i-dont-know-what-to-do-with-you-when-youre-like-this/comment-page-1/#comment-28073 Fri, 28 Aug 2009 13:28:14 +0000 https://www.toryhoke.com/wp/?p=2174#comment-28073 It saddens me greatly that the *only* thing I understood in that post was the comic book joke.

]]>