Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Maya 2015 Startup Error: Python Conflicting

Maya 2015 Startup Error: Python Conflicting

jazioblaq
Explorer Explorer
3,566 Views
7 Replies
Message 1 of 8

Maya 2015 Startup Error: Python Conflicting

jazioblaq
Explorer
Explorer

Hello group, I have been searching for a solution for this python conflicting problem. I am not a programmer and do not know what any of this means. I can render a still image but if I want to do a batch render, I get a python 'conflict with this version of python as well as when I start Maya;

 

 

 

Here is the error:

 

# Error: file: C:/Program Files/Autodesk/Maya2015/plug-ins/xgen/scripts/igInitialize.mel line 63: ImportError: file C:\Program Files\Autodesk\Maya2015\bin\python27.zip\ctypes\__init__.py line 10: Module use of python34.dll conflicts with this version of Python. #


// Error: Unable to execute igInitialize.mel. //
# Error: line 0: ImportError: file C:\Program Files\Autodesk\Maya2015\bin\python27.zip\ctypes\__init__.py line 10: Module use of python34.dll conflicts with this version of Python. #


// Error: Unable to execute xgen.mel. //
updateRendererUI;


# Error: file: C:/Program Files/Autodesk/Maya2015/plug-ins/xgen/scripts/xgenUI.mel line 140: NameError: file <maya console> line 1: name 'xg' is not defined #

 

somebody please help!

 

0 Likes
3,567 Views
7 Replies
Replies (7)
Message 2 of 8

warnold2
Autodesk
Autodesk
Maya has an embedded version of Python 2.7.x. are you setting any environment variables which would direct Maya to use the wrong version, possibly system installed versions

Check for PYTHONHOME and/or PYTHONPATH

What do you have in your PATH variable



Wayne Arnold

Developer

0 Likes
Message 3 of 8

jazioblaq
Explorer
Explorer

Hello and thanks for you reply.

How do I check the  PYTHONHOME and/or PYTHONPATH?

 

This is what I have for PATH

C:\Program Files (x86)\iis express\PHP\v5.4;

C:\ProgramData\Oracle\Java\javapath;

C:\Windows\system32;

C:\Windows;

C:\Windows\System32\Wbem;

C:\Windows\System32\WindowsPowerShell\v1.0\;

C:\Program Files\Hewlett-Packard\SimplePass\;

C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;

C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;

C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;

C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;

C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;

C:\Program Files (x86)\GtkSharp\2.12\bin;

C:\Program Files\Java\jdk1.8.0_31\bin;

C:\Users\Michael\AppData\Local\Android\android-sdk\tools;

C:\Users\Michael\AppData\Local\Android\android-sdk\platform-tools;

C:\apache-ant-1.9.3\bin;

C:\Program Files (x86)\nodejs\;

C:\Program Files (x86)\Git\cmd;

C:\Program Files\Microsoft\Web Platform Installer\;

C:\Users\Michael\AppData\Roaming\npm;

C:\Python27;

0 Likes
Message 4 of 8

warnold2
Autodesk
Autodesk
They are environment variables

From a cmd shell you can list all environment variables with the command: set
Or right click on MyComputer ->properties->advanced->environment variables

Looks like you also have Python 2.7 installed, it's in your PATH. this may or may not be problematic if it's 64bit and there is a python27.dll in c:\windows\system32. If it's found before Maya's version. Though the error would be different than the one you reported




Wayne Arnold

Developer

0 Likes
Message 5 of 8

jazioblaq
Explorer
Explorer

OK! I found the other paths:

 

PSModulePath

%SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\

 

PYTHON_HOME

C:\Python34;

 

Yes I do have Python 2.7 and 3.4  .dll's in my system32 folder.

 

Do I need to take something out or set something different?

0 Likes
Message 6 of 8

warnold2
Autodesk
Autodesk
I was expecting PYTHONHOME without the underscore but I would try deleting that variable
Then try to restart Maya. One needs to ensure that variable is not set when starting Maya

Or create a batch file that unsets the variable, then starts Maya


set PYTHONHOME=

"C:\Program Files\Autodesk\maya2015\bin\maya.exe"


Wayne Arnold

Developer

0 Likes
Message 7 of 8

jazioblaq
Explorer
Explorer

Ok, I deleted the PYTHON_HOME, restarted Maya and got the same error.

 

 

Im sorry, I have no clue how to create / set a batch file.

0 Likes
Message 8 of 8

Anonymous
Not applicable
Set the environment variables PYTHONHOME=C:/where/maya.exe PYTHONPAHT=C:/wherepithon.exeis/ good look
0 Likes