MushroomRL / mushroom-rl

Python library for Reinforcement Learning.
MIT License
826 stars 148 forks source link

can not import #72

Closed potato23333 closed 3 years ago

potato23333 commented 3 years ago

Hi, I can not import the package. Error information is as follows: File "mushroom_rl\environments\mujoco_envs\humanoid_gait\_external_simulation\muscle_simulation_stepupdate.pyx", line 1, in init mushroom_rl.environments.mujoco_envs.humanoid_gait._external_simulation.muscle_simulation_stepupdate ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

boris-il-forte commented 3 years ago

This is a cython + numpy issue. You probably updated numpy to a version that breaks binary compatibility, but you compiled the cython files with the older version. Try to reinstall MushroomRL, this should trigger the compilation again and fix the issue.

potato23333 commented 3 years ago

Thanks!