--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/73293d32-3135-462f-956a-335e1c78d848o%40googlegroups.com.
import sys
sys.path.append(r"C:\Python27\Lib\site-packages")
import numpy
# IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
#
# Importing the multiarray numpy extension module failed. Most
# likely you are trying to import a failed build of numpy.
# Here is how to proceed:
# - If you're working with a numpy git repository, try `git clean -xdf`
# (removes all files not under version control) and rebuild numpy.
# - If you are simply trying to use the numpy version that you have installed:
# your installation is broken - please reinstall numpy.
# - If you have already reinstalled and that did not fix the problem, then:
# 1. Check that you are using the Python you expect (you're using C:\Program Files\Autodesk\Maya2018\bin\maya.exe),
# and that you have no directories in your PATH or PYTHONPATH that can
# interfere with the Python and numpy versions you're trying to use.
# 2. If (1) looks fine, you can open a new issue at
# https://github.com/numpy/numpy/issues. Please include details on:
# - how you installed Python
# - how you installed numpy
# - your operating system
# - whether or not you have multiple versions of Python installed
# - if you built from source, your compiler versions and ideally a build log
#
# Note: this error has many possible causes, so please don't comment on
# an existing issue about this - open a new one instead.
#
# Original error was: DLL load failed: The specified module could not be found. #
import numpy, I get this error
Introducir código aquí...# Error: cannot import name _distributor_init
# Traceback (most recent call last):
# File "<maya console>", line 1, in <module>
# File "C:\Python27\Lib\site-packages\numpy\__init__.py", line 140, in <module>
# from . import _distributor_init
# ImportError: cannot import name _distributor_init #
So I am completly lost.
Is it possible that it is I am running maya 2018.6 instead of 2018?
By the way, everything is fine in pycharm if I set the interpreter as C:\Python27\python.exeSo numpy is not boken. It is mayapy that is not happy with numpy
--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/b39fa53a-ff3a-4c6f-986b-4d21b5f544d2o%40googlegroups.com.
There are at least two problems.- First, remember that the official Python != Maya's Python. The version of NumPy you've got is built for the official Python, and you need one for Maya's Python. How can you get that? The interwebs could lead you to a copy someone has built, or you can build it yourself using `mayapy` in place of `python`.- Second, if you *were* going to use the official Python version (which probably won't work), make sure it's 64-bit like Deke said. It must match your Maya version. My guess is that's where your DLL error comes from. But again, official Python != Maya's Python.The reason PyCharm works is because PyCharm == official Python, so everything is well. Anytime you're dealing with compiled modules, like NumPy, and want to use them in Maya, you'll need them compiled for Maya's Python.
On Mon, 15 Jun 2020 at 03:09, Rudi Hammad <rudih...@gmail.com> wrote:
--By the way, everything is fine in pycharm if I set the interpreter as C:\Python27\python.exeSo numpy is not boken. It is mayapy that is not happy with numpy
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 unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/b39fa53a-ff3a-4c6f-986b-4d21b5f544d2o%40googlegroups.com.
--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/9ad4f036-8455-4e0d-9fc1-fcb13f0e635fo%40googlegroups.com.
From what I gather, numexpr and pyhook are other Python libraries?They won't help you get NumPy installed if that's what you're thinking. I think the reference you found was maybe this?If so, that's from 5 years ago and it's likely the contents of that folder has changed since then.
On Mon, 15 Jun 2020 at 08:43, Rudi Hammad <rudih...@gmail.com> wrote:
I see, thanks for the explanation.The error is coming having installed the 64 bits vanilla version that deke suggested,I found this link and it seems to work for people who tried it: https://drive.google.com/drive/folders/0BwsYd1k8t0lEMjBCa2N1Z25KZXc
but I didn't it didn't for me. Not sure what I am doing wrong.Actually, I don't really understand what pyHook and numexpr are supposed to be doing, so there must be some bit of information that I didn't quite get.So I'll just write my math libraries using python's default for now and maybe refactor in the future if I manage to make it work.El domingo, 14 de junio de 2020, 23:54:44 (UTC-7), Marcus Ottosson escribió:
There are at least two problems.- First, remember that the official Python != Maya's Python. The version of NumPy you've got is built for the official Python, and you need one for Maya's Python. How can you get that? The interwebs could lead you to a copy someone has built, or you can build it yourself using `mayapy` in place of `python`.- Second, if you *were* going to use the official Python version (which probably won't work), make sure it's 64-bit like Deke said. It must match your Maya version. My guess is that's where your DLL error comes from. But again, official Python != Maya's Python.The reason PyCharm works is because PyCharm == official Python, so everything is well. Anytime you're dealing with compiled modules, like NumPy, and want to use them in Maya, you'll need them compiled for Maya's Python.
On Mon, 15 Jun 2020 at 03:09, Rudi Hammad <rudih...@gmail.com> wrote:
--By the way, everything is fine in pycharm if I set the interpreter as C:\Python27\python.exeSo numpy is not boken. It is mayapy that is not happy with numpy
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/b39fa53a-ff3a-4c6f-986b-4d21b5f544d2o%40googlegroups.com.
--
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 unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/b39fa53a-ff3a-4c6f-986b-4d21b5f544d2o%40googlegroups.com.
--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/9ad4f036-8455-4e0d-9fc1-fcb13f0e635fo%40googlegroups.com.
--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/075e4f58-8494-4dc3-afa6-93b45b0fc856o%40googlegroups.com.
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/b39fa53a-ff3a-4c6f-986b-4d21b5f544d2o%40googlegroups.com.
--
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/9ad4f036-8455-4e0d-9fc1-fcb13f0e635fo%40googlegroups.com.
--
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.