Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / Python - UnicodeDecodeError? - Need help!
  RSS 2.0 ATOM  

Python - UnicodeDecodeError? - Need help!
Rate this thread
 
55614
 
Permlink of this thread  
avatar
  • SalaS
  • Posted: 11 May 2011 12:30 AM
  • Total Posts: 2
  • Joined: 10 May 2011 04:19 AM

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[0])
# 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



Replies: 0
avatar
  • SalaS
  • Posted: 16 May 2011 02:56 AM

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 QtCoreQtGui

gives me

ImportErrorDLL load failedThe 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) [MSC v.1500 32 bit (Intel)] 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) [MSC v.1500 32 bit (Intel)] on win32



Replies: 0