[Pythonmac-SIG] PyQT on Lion?

Thomas Robitaille thomas.robitaille at gmail.com
Fri Jul 20 20:56:47 CEST 2012


I use Macports to manage my Python installation on 10.6 and 10.7 and haven't had any issues - and 'port install py27-pyqt4' works great.

See http://astrofrog.github.com/macports-python/ for more details on using Python from Macports.

Macports is also now much faster than it used to be since binary builds are available in many cases.

Cheers,
Tom

On 20 Jul 2012, at 20:06, Arana Fireheart <aranafireheart at mac.com> wrote:

> Okay, I GIVE UP!!
> 
> 	I have tried just about everything I can think of and they all failed! I have spent over a month on this and can't seem to get all of these pieces to work together.
> 
> 	I have tried all the latest developers releases for QT, sip and PyQt and all I can get to is a wrong architecture message (see below). I have tried virtualenv and no virtualenv. I have tried to force python to use 32-bit (defaults write com.apple.versioner.python Prefer-32-Bit -bool yes), without any change. I think it is an issue with 32/64-bit versions, but I can't figure out which piece is the one using the wrong architecture...
> 
>  	If ANYONE has managed to get PyQt to build and install on Lion, could you please let me know how you did it…
> 
> Arana
> 
> 
>     from PyQt4 import QtCore
> ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PyQt4/QtCore.so, 2): no suitable image found.  Did find:
> 	/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PyQt4/QtCore.so: mach-o, but wrong architecture
> 
> 
> On Jul 16, 2012, at 4:51 PM, pythonmac-sig-request at python.org wrote:
> 
>> From: Arana Fireheart <aranafireheart at mac.com>
>> Subject: Re: [Pythonmac-SIG] PyQT on Lion? (Charlie Clark)
>> Date: July 16, 2012 4:51:21 PM EDT
>> To: pythonmac-sig at python.org
>> 
>> 
>> Charlie,
>> 
>> 	Thanks for the response. Part of the reason I was trying to use virtualenv was to 'disconnect' from a few years of builds (some successful/ some unsuccessful). I was hoping to avoid doing a 'clean install' of my machine and reinstall of of the apps etc.
>> 
>> 	The latest attempt is to perform a 'new' install of PyQT and then copy the site-packages directory into the virtual environment (or possibly sym link it). I think this one shows the most promise for getting an environment that will not only run my PyQT apps but allow me to build a distribution version with py2app (which I have NEVER managed to be able to do!!)
>> 
>> 	I'll let you all know how it goes, Iv'e got my finger's crossed!
>> 
>> Arana
>> 
>> 
>> 
>> On Jul 12, 2012, at 6:00 AM, pythonmac-sig-request at python.org wrote:
>> 
>>> Am 11.07.2012, 14:41 Uhr, schrieb Arana Fireheart <aranafireheart at mac.com>:
>>> 
>>>> Charlie,
>>>> 	I tried virtualenv after reading lots of people extolling it's virtues. Having had little luck with other methods I thought I would give it a try. I have managed to get this all built on my MacBookPro which is running Snow Leopard, but not on my desktop machine (iMac). HomeBrew lists PyQT as installed, but when I try to run some code it fails with a "can't find module".
>>>> 	What I don't get is why python can't locate the installed modules. Do you have any hints as to how I can track this down?
>>> 
>>> Hi Arana,
>>> 
>>> virtualenv's are indeed a great idea. They allow you to isolate the
>>> libraries for different projects from each other. However, if you are
>>> using libraries that need compiling then it can be better to use "system"
>>> libraries. You can do this in a virtualenv with the switch "--system-site-packages"
>>> 
>>> Charlie
>>> -- 
>>> Charlie Clark
>>> Managing Director
>>> Clark Consulting & Research
>>> German Office
>>> Kronenstr. 27a
>>> Düsseldorf
>>> D- 40217
>>> Tel: +49-211-600-3657
>>> Mobile: +49-178-782-6226
>>> 
>>> 
>>> 
>>> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
>> 
>> 
>> 
>> 
>> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
> 
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20120720/57cae83d/attachment-0001.html>


More information about the Pythonmac-SIG mailing list