Keep in mind although your PYTHONHOME variable has been fixed your actual
sys.path still contains python 2.5 in it. Most likely you are not affected
by this as Maya 2013 comes shipped with python 2.6 and all the libraries
are there but in case further oddities arise try upgrading your core python
install from 2.5 to 2.6 , it's this part in your sys.path:
C:\Program Files\Autodesk\Maya2013\bin\python26.zip
C:\Python25\DLLs
C:\Python25\lib
C:\Python25\lib\plat-win
C:\Python25\lib\lib-tk
C:\Program Files\Autodesk\Maya2013\bin
C:\Python25
C:\Python25\lib\site-packages
You can verify what's in your sys.path without waiting for a crash by
typing in:
import sys
print [ n for n in sys.path ]
and to keep things working as expected you should expect to see no
reference in that list to python 2.5
A similar reference list can be read from the os module as well:
import os
print os.environ.get( 'PYTHONPATH' )
This one should be exclusive to the same version python your Maya
instance is using ( 2.6 , 2.7 if you move up to Maya 2014 )
Hope this helps, the error does look like a simple version mismatch issue
but when those break the errors tend to be a bit messy.
--
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/a95c7e7a-3467-4744-9060-98ddc665f62e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.