Dashboard_avatar
Jan 06, 2012
Post id: 309412 Report Item

Hi,

 I've read quite a few posts here and on stackoverflow and I'm still having an issue running any Qt code in maya 2011 after going from 2008. Whenever I try importing QtCore, I'm getting "DLL load failed: the specified procedure could not be found". I've tried replacing DLLs and pyds in python/site-packages and still had no luck. sys.path has maya site-packages folder in the list of folders to look in and everything works outside maya (even though it was qt 4.8 I installed separately). I can't even figure out which Qt version Maya comes with as I can't import QT_VERSION_STR from QtCore. Dependency walker doesn't show any issues that might have been caused by missing DLLs. I was also thinking it might be 32 vs. 64 bit compatibility but when I deliberatly replaced 32 bit dlls with 64 (my Maya 2011 is 32bit) it started complaining about invalid DLLs (i.e. it was trying to load them from the right place).
 What's the best way to overcome this issue? Do you have and advices as this is really weird situation I haven't encountered before.

thanks! 

Dashboard_avatar
Jan 06, 2012
Post id: 309414 Report Item

Ok, if anyone encounters this issue. Here's one way to overcome it:

1. download or build the version of PyQt compiled against your version of Python integrated into Maya (was 2.6.1 in my 2011). Can grab 4.5.1 here: http://pyqwt.sourceforge.net/home.html.
2. install it into maya's python folder not the python installations on your machine.

Actually this guy goes in a bit of detail here: http://tech-artists.org/forum/showthread.php?t=1052

Dashboard_avatar
Jan 06, 2012
Post id: 309416 Report Item

Better late than never. Just in case people have similar issues on various versions, go check this one - it's great read:
http://nathanhorne.com/?p=451