Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Importing numpy into Maya?

1 REPLY 1
Reply
Message 1 of 2
Dunnie
1087 Views, 1 Reply

Importing numpy into Maya?

I am trying to import numpy into Maya 2015. Maya 2015 uses Python27 so I dont think there is a conflict in python versions.

 

import numpy as np

 

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

# Traceback (most recent call last):

# File "<maya console>", line 1, in <module>

# File "C:\Python27\Lib\site-packages\numpy\__init__.py", line 168, in <module>

# from . import add_newdocs

# File "C:\Python27\Lib\site-packages\numpy\add_newdocs.py", line 13, in <module>

# from numpy.lib import add_newdoc

# File "C:\Python27\Lib\site-packages\numpy\lib\__init__.py", line 8, in <module>

# from .type_check import *

# File "C:\Python27\Lib\site-packages\numpy\lib\type_check.py", line 11, in <module>

# import numpy.core.numeric as _nx

# File "C:\Python27\Lib\site-packages\numpy\core\__init__.py", line 6, in <module>

# from . import multiarray

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

 

Any ideas ?

 

1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Dunnie

You'd have to compile numpy against Visual Studio 2012.

The version you have will have been compiled against VS 2008.

Unfortunately Maya and Python in Maya are compiled against different versions of Visual Studio to the norm.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report