Python - UnicodeDecodeError? - Need help!

Python - UnicodeDecodeError? - Need help!

Anonymous
Not applicable
1,946 Views
1 Reply
Message 1 of 2

Python - UnicodeDecodeError? - Need help!

Anonymous
Not applicable
Hi guys,

I'm starting my big adventure (as i hope) with Python and by the way with writing widgets compatible for Maya & MoBu. I started learning it by following the video made by David Coleman ( http://area.autodesk.com/gdc2011/class3, big thx for that great vid) and unfortunately I met a painful as hell problem.
I can't get anything working, that uses outside libraries like from PyQt4 QtCore, QtGui etc...

the error I get from Maya:

# Error: Error in maya.utils._guiExceptHook:
# File "C:\Program Files (x86)\Autodesk\Maya2011\Python\lib\site-packages\maya\utils.py", line 267, in formatGuiException
# exceptionMsg = unicode(exceptionObject.args)
# UnicodeDecodeError: 'ascii' codec can't decode byte 0xbf in position 23: ordinal not in range(128)
#
# Original exception was:
# Traceback (most recent call last):
# File "<maya console>", line 2, in <module>
# ImportError: DLL load failed:


I'm working under Windows7 x64, with Maya/Python 2.6.4/PyQt v.4.8.4 (all x86). My system language is PL, the rest is EN (if that makes any useful info).

Last 2 days I spent on searching the solution, browsing the web/forums, but still I can't go any closer. I will be very great-full for any kind of clue on that issue because I'm stuck and it's driving me mad!

Sorry for my bad english
0 Likes
1,947 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Ok, small update incoming, sorry for double posting but can anybody plz answer me something :))
I've got the same problems in MotionBuilder, running simple code like
from PyQt4 import QtCore, QtGui
gives me
ImportError: DLL load failed: The specified module could not be found.
and ofc a small headache 😕
I've uninstalled/cleaned/reainstalled Python/Maya/MoBu/PyQt/Qt etc... same goes to environmental varaibles.

I can import and run scripts involving elements from QtGui in Python IDLE, but can't in Maya/MoBu. I know I've missed something and I'm new in this, so if any expert could give me a hand, I really need got this working.

I'm using Maya/Mobu ( x86) with Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) on win32 onboard
PyQt GPL v4.8.4 for Python v2.6 (x86)
Qt by Nokia v4.7.2 (MinGW OpenSource)
and
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) on win32
0 Likes