I'm having exactly the same issue. I have everything compiled from  
scratch and configured with mayapy in order to have the site-packages  
of PyQt and Sip in the right place (inside the Maya.app).

If I run the code you post (or any PyQt example) in the mayapy  
interpreter it works fine. When done through the GUI of maya, it  
crashes.

I run it from a custom terminal window and it does report an error:  
"Interpreter not initialized. Version mismatch?"

I have checked and recompiled twice to be sure that it is compiling  
against the right versions of Qt, PyQt and Sip.

Looks like a namespace error or something related to an __init__.py  
file.

On Jun 6, 2009, at 11:38 PM, Taylor Carrasco wrote:

> Hey all -
>
> Having trouble importing the libraries of PyQt4 on OSX, inside Maya  
> 2009.
>
> I can run the following code without any trouble... (if I don't  
> append this path, it says it can not find PyQt4)
>
> import sys
> sys.path.append( '/Library/Python/2.5/site-packages' )
> import PyQt4
>
> But if I try what I want to do, which is import QtCore and/or QtGui,  
> the following code crashes Maya without an error.
>
> from PyQt4.QtCore import *
> from PyQt4.QtGui import *
>
>
>
> Let me know if there are some further details I can provide to make  
> this debugging easier.
>
> >


--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to