PyQt server install

41 views
Skip to first unread message

Johan Forsgren

unread,
May 8, 2015, 6:33:16 AM5/8/15
to python_in...@googlegroups.com
I'm sure this has been covered in this list, but can't for the life of me find where, so... 
I have a couple of tools developed, they are all pyqt based,  mainly standalone stuff but a few for maya/nuke as well. Id like to distribute these to the rest of the studio, so I've copied my the pyqt4-folder from site-packages to a location on the server. But pyqt wont stop giving me hassle on import. 

import os
os.environ["PATH"] += os.pathsep + r"\\path\to\QT\on\server"
import PyQt4
from PyQt4 import QtGui

>>> Import Error: DLL load failed.

Soooo, my guess is that python can't find the dlls associated with the module (QtGui4.dll in this case) , even though I'm pointing right at them with both the path variable and the pythonpath.
The dlls lies where they should, right in the pyqt folder, I've tried laying them beside python.exe, no luck there either. 

I've also tried downloading and installing QT in order to extract those dlls from C:\Qt\4.7.4\bin into the pyqt folder, this time around i got another kind of error ("ImportError: DLL load failed: %1 is not a valid Win32 application.") which suggests that python is looking in the correct place... or am I mistaken?

Is there some kind of registry key I've missed or something, I'm at a loss here


Marcus Ottosson

unread,
May 8, 2015, 6:37:13 AM5/8/15
to python_in...@googlegroups.com
Deploying PyQt sure is a PITA. (A PyQITA?).

Maybe this could offer some insight.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANSD_rqA1LAGdxQdM_M5mB9Gng7pWFcC%3Di4uu%2BuS5jsnQbJ1sw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Marcus Ottosson
konstr...@gmail.com

Johan Forsgren

unread,
May 8, 2015, 7:35:02 AM5/8/15
to python_in...@googlegroups.com
Pyqt in the ass? there's an image... 
From a quick glance I would say the link could give alot of insight, thanks!



Reply all
Reply to author
Forward
0 new messages