Coppeliasim 4.3.0 [Windows] can't handle numpy import
Posted: 29 Jan 2022, 12:01
First of all, I really commend the massive efforts put into the recent coppeliasim update.
Specifically, the support for python is really a nice one. However, it's throws error for all imports built on numpy.
Being that almost all robotics and ML libraries are built on numpy, utilizing the full power of python with coppeliasim will be crippled without flexible importing of libraries.
Please kindly look into it.
Kind regards
Specifically, the support for python is really a nice one. However, it's throws error for all imports built on numpy.
Being that almost all robotics and ML libraries are built on numpy, utilizing the full power of python with coppeliasim will be crippled without flexible importing of libraries.
Code: Select all
...es/CoppeliaRobotics/CoppeliaSimEdu/lua/pythonWrapper.lua:628:
[/nonThreadedChildScript], line 4, in sysCall_init
File "defaultPython\envs\coppeliasim_py\lib\site-packages\numpy\__init__.py", line 150, in <module>
from . import core
File defaultPython\envs\coppeliasim_py\lib\site-packages\numpy\core\__init__.py", line 48, in <module>
raise ImportError(msg)
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
* The Python version is: Python3.7 from "defaultPython\envs\coppeliasim_py\python.exe"
* The NumPy version is: "1.21.2"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: DLL load failed: The specified module could not be found.
stack traceback:
[C]: in function 'error'
...es/CoppeliaRobotics/CoppeliaSimEdu/lua/pythonWrapper.lua:628: in function 'handleErrors'
...es/CoppeliaRobotics/CoppeliaSimEdu/lua/pythonWrapper.lua:647: in function 'handleRemote'
...es/CoppeliaRobotics/CoppeliaSimEdu/lua/pythonWrapper.lua:415: in function 'sysCall_actuation'
Please kindly look into it.
Kind regards