大佬,拉进maya用不了,显示:
import maya.app.general.executeDroppedPythonFile as myTempEDPF
myTempEDPF.executeDroppedPythonFile("D:/Download/MayaPlugin/動畫師專用小工具/峚鏝厙-雄賒呇苤馱撿.py", "")
del myTempEDPF
# UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal, at line 57, in "C:\Program Files\Autodesk\Maya2019\Python\lib\site-packages\maya\app\general\executeDroppedPythonFile.py"
# Error: Error in maya.utils._guiExceptHook:
# File "C:\Program Files\Autodesk\Maya2019\Python\lib\site-packages\maya\utils.py", line 337, in formatGuiException
# exceptionMsg = unicode(exceptionObject.args[0])
# UnicodeDecodeError: 'ascii' codec can't decode byte 0x84 in position 58: ordinal not in range(128)
#
# Original exception was:
# Traceback (most recent call last):
# File "<maya console>", line 3, in <module>
# File "C:\Program Files\Autodesk\Maya2019\Python\lib\site-packages\maya\app\general\executeDroppedPythonFile.py", line 66, in executeDroppedPythonFile
# loadedModule = imp.load_module(theModuleName, fp, pathname, desc)
# File "D:/Download/MayaPlugin/動畫師專用小工具\峚鏝厙-雄賒呇苤馱撿.py", line 9
# SyntaxError: Non-ASCII character '\xb6' in file D:/Download/MayaPlugin/動畫師專用小工具\峚鏝厙-雄賒呇苤馱撿.py on line 9, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details #
全部评论55
import maya.app.general.executeDroppedPythonFile as myTempEDPF
myTempEDPF.executeDroppedPythonFile("D:/Download/MayaPlugin/動畫師專用小工具/峚鏝厙-雄賒呇苤馱撿.py", "")
del myTempEDPF
# UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal, at line 57, in "C:\Program Files\Autodesk\Maya2019\Python\lib\site-packages\maya\app\general\executeDroppedPythonFile.py"
# Error: Error in maya.utils._guiExceptHook:
# File "C:\Program Files\Autodesk\Maya2019\Python\lib\site-packages\maya\utils.py", line 337, in formatGuiException
# exceptionMsg = unicode(exceptionObject.args[0])
# UnicodeDecodeError: 'ascii' codec can't decode byte 0x84 in position 58: ordinal not in range(128)
#
# Original exception was:
# Traceback (most recent call last):
# File "<maya console>", line 3, in <module>
# File "C:\Program Files\Autodesk\Maya2019\Python\lib\site-packages\maya\app\general\executeDroppedPythonFile.py", line 66, in executeDroppedPythonFile
# loadedModule = imp.load_module(theModuleName, fp, pathname, desc)
# File "D:/Download/MayaPlugin/動畫師專用小工具\峚鏝厙-雄賒呇苤馱撿.py", line 9
# SyntaxError: Non-ASCII character '\xb6' in file D:/Download/MayaPlugin/動畫師專用小工具\峚鏝厙-雄賒呇苤馱撿.py on line 9, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details #
请问是什么问题啊?