-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Hi, I'm getting the following error when trying to run python3 run_traj.py --env_name SnakeLocomotionDiscrete --traj_name test
File "run_traj.py", line 248, in <module>
main()
File "run_traj.py", line 237, in main
gen_expert_data(
File "run_traj.py", line 69, in gen_expert_data
obs = env.reset(run_render=run_render)
File "/home/tbreimer/sims/SoMo/somovenv/lib/python3.8/site-packages/gym/wrappers/time_limit.py", line 25, in reset
return self.env.reset(**kwargs)
File "/home/tbreimer/sims/SoMo/somogym/environments/SomoEnv.py", line 391, in reset
self.step(start_action)
File "/home/tbreimer/sims/SoMo/somogym/environments/SnakeLocomotionDiscrete/SnakeLocomotionDiscrete.py", line 115, in step
obs, reward, done, info = super().step(action=action)
File "/home/tbreimer/sims/SoMo/somogym/environments/SomoEnv.py", line 228, in step
manipulator.apply_actuation_torques(
File "/home/tbreimer/sims/SoMo/somovenv/lib/python3.8/site-packages/somo/sm_continuum_manipulator.py", line 390, in apply_actuation_torques
if isinstance(act_torque, (np.float, np.float32, np.float64)):
File "/home/tbreimer/sims/SoMo/somovenv/lib/python3.8/site-packages/numpy/__init__.py", line 305, in __getattr__
raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
I tried downgrading to NumPy 1.19, but then got the following error:
Traceback (most recent call last):
File "run_traj.py", line 8, in <module>
import pybullet as p
ImportError: numpy.core.multiarray failed to import
Here's a list of the packages installed by installing requirements.txt. I'm using Python 3.8.10.
cloudpickle==1.6.0
contourpy==1.1.1
cycler==0.12.1
fonttools==4.57.0
gym==0.18.3
importlib-resources==6.4.5
iniconfig==2.1.0
kiwisolver==1.4.7
matplotlib==3.7.5
numpy==1.19.0
packaging==24.2
pandas==2.0.3
Pillow==8.2.0
pluggy==0.13.1
py==1.11.0
pybullet==3.1.7
pyglet==1.5.15
pyparsing==3.1.4
pyquaternion==0.9.9
pytest==6.2.4
python-dateutil==2.9.0.post0
pytz==2025.2
PyYAML==6.0.2
scipy==1.10.1
six==1.17.0
somo==0.1.4
sorotraj==0.14
stable-baselines3==1.0
toml==0.10.2
torch==1.8.1
typing-extensions==4.13.2
tzdata==2025.2
UNKNOWN==0.0.0
zipp==3.20.2
Any help would be appreciated. Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels