Message 1 of 6
Adding Python modules scipy/numpy?
Not applicable
06-20-2013
07:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello!
I'm very new to the Maya API, and I'm trying to write a plugin for Maya 2011 in Python (on OSX 10.8). I'd like to use the libraries scipy and numpy, but Maya's internal Python does not come with these libraries. I downloaded anaconda, and can access the modules from my computer's Python. I've tried adding the packages to the site-packages directory, but I get the following error when I try to import either of them:
import numpy # Error: ImportError: file /Applications/Autodesk/maya2011/Maya 2011.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/numpy/core/__init__.py line 5: dlopen(/Applications/Autodesk/maya2011/Maya 2011.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/numpy/core/multiarray.so, 2): Symbol not found: _PyCapsule_Import Referenced from: /Applications/Autodesk/maya2011/Maya 2011.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/numpy/core/multiarray.so
I'm not sure what this error means, or if there's any way around it. Any help would be appreciated!
