Re-compile win32py for maya 2017

49 views
Skip to first unread message

illunara

unread,
Oct 5, 2017, 6:06:20 AM10/5/17
to Python Programming for Autodesk Maya
Hi everybody
I tried to use pip to install win32py for maya 2017, and the result is

ImportError: DLL load failed: The specified module could not be found.

For 2 days, i've looked into it, and i found out, pyd library has been compiled with difference compiler than mayapy did. That's why, mayapy can't load these modules

So basically:
Maya 2017
Windows 64bit Win7x64
Visual Studio 2012 Update 4 + Win 8 SDK
.Net framework 4.5.1
Embedded Python 2.7.11 - Internal to Maya

I need to build python with using same settings above, and then recompile all the modules i need, right?
Thanks

Here is a topic i have posted on tech-artist, asked them about the problems when i cannot load the module with mayapy

Marcus Ottosson

unread,
Oct 5, 2017, 6:16:42 AM10/5/17
to python_in...@googlegroups.com

You don’t have to build Python, you can use mayapy to build win32py. Just replace any call to python with mayapy.

For example..

$ cd win32py_source
$ mayapy configure.py
$ make
$ make install

--
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 python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/2e3d8ea6-3f6b-4843-956e-0a44da86df91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

illunara

unread,
Oct 5, 2017, 2:31:41 PM10/5/17
to Python Programming for Autodesk Maya
Hi Marcus
How can i setup the enviroment, so cl.exe can find the include folder ("C:\Program Files\Autodesk\Maya2017\include\python2.7")?
Thanks


Reply all
Reply to author
Forward
0 new messages