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
--
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 [email protected].
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.