can't install python module with c bindings for maya 2018

can't install python module with c bindings for maya 2018

Anonymous
Not applicable
634 Views
2 Replies
Message 1 of 3

can't install python module with c bindings for maya 2018

Anonymous
Not applicable

hi there,

 

Using maya 2018 for windows and MS Visual studio 2015.

I'm trying to build/install a python module with c bindings (https://github.com/caseman/noise)

 

cmd:-

mayapy.exe /path/to/noise/setup.py build

(with following vcvarsall.bat error)

 

running build
running build_py
running build_ext
building 'noise._simplex' extension
error: Unable to find vcvarsall.bat

 

I've set env variable %VS140COMNTOOLS% to /program files/VS14/common7/tools, and set it

SET VS90COMNTOOLS=%VS140COMNTOOLS%

 

if anyone has a work around or better way of doing it - would be highly appreciated.

thanks,

D

0 Likes
635 Views
2 Replies
Replies (2)
Message 2 of 3

ACOLTEL
Contributor
Contributor

hello,

I never had this issue before so considere it more as a blind guess than a solution.

May be your computer is missing a dependancy to perform the Build.

You should try to install the compiler package for Python on your computer.

Microsoft Visual C++ Compiler for Python 2.7 :

https://www.microsoft.com/en-us/download/details.aspx?id=44266

 

Don't know if it will solve your problem but it doesn't harm to try 🙂

 

Good luck,

Anthony

 

0 Likes
Message 3 of 3

cheng_xi_li
Autodesk Support
Autodesk Support

Hi,

 

I tried to build it and don't have any problems. Here are mysteps:

 

1. Run vs2015 environment as Administrator(My maya installation is in Program Files which needs Administrator access)

2. Add maya/bin path to path

3. Python setup.py install(I have copied mayapy to python, should be fine directly with mayapy)

 

Hope it helps.

 

Yours,

Li

0 Likes