Skip to content

Numpy version mismatch issue when running Libero evaluation #31

@dinuransika

Description

@dinuransika

Here is the full trace of the error and there appears to be a numpy version mismatch. This is after a fresh install.

python eval/eval_libero.py --model_path ./runs/vla0/model_last.pth --task_suite_name libero_goal --task_name put_the_wine_bottle_on_top_of_the_cabinet --action_horizon 1 --ensemble_prediction 8 --task_id_count 10 --task_id_index 0
[robosuite WARNING] No private macro file found! (__init__.py:7)
[robosuite WARNING] It is recommended to use a private macro file (__init__.py:8)
[robosuite WARNING] To setup, run: python /share/data/drive_1/huggingface_cache/miniconda3/envs/vla0/lib/python3.10/site-packages/robosuite/scripts/setup_macros.py (__init__.py:9)

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.2.6 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last):  File "/share/users/dinura/Projects/VLA/vla0/eval/eval_libero.py", line 10, in <module>
    from roboverse.evals.libero.eval import eval, get_evaluation_tasks  # noqa
  File "/share/users/dinura/Projects/VLA/vla0/libs/RoboVerse/roboverse/evals/libero/eval.py", line 17, in <module>
    from libero.libero.envs import OffScreenRenderEnv
  File "/share/users/dinura/Projects/VLA/LIBERO/libero/libero/envs/__init__.py", line 6, in <module>
    from .env_wrapper import OffScreenRenderEnv, SegmentationRenderEnv
  File "/share/users/dinura/Projects/VLA/LIBERO/libero/libero/envs/env_wrapper.py", line 4, in <module>
    import matplotlib.cm as cm
  File "/share/data/drive_1/huggingface_cache/miniconda3/envs/vla0/lib/python3.10/site-packages/matplotlib/__init__.py", line 109, in <module>
    from . import _api, _version, cbook, docstring, rcsetup
  File "/share/data/drive_1/huggingface_cache/miniconda3/envs/vla0/lib/python3.10/site-packages/matplotlib/rcsetup.py", line 27, in <module>
    from matplotlib.colors import Colormap, is_color_like
  File "/share/data/drive_1/huggingface_cache/miniconda3/envs/vla0/lib/python3.10/site-packages/matplotlib/colors.py", line 56, in <module>
    from matplotlib import _api, cbook, scale
  File "/share/data/drive_1/huggingface_cache/miniconda3/envs/vla0/lib/python3.10/site-packages/matplotlib/scale.py", line 23, in <module>
    from matplotlib.ticker import (
  File "/share/data/drive_1/huggingface_cache/miniconda3/envs/vla0/lib/python3.10/site-packages/matplotlib/ticker.py", line 136, in <module>
    from matplotlib import transforms as mtransforms
  File "/share/data/drive_1/huggingface_cache/miniconda3/envs/vla0/lib/python3.10/site-packages/matplotlib/transforms.py", line 46, in <module>
    from matplotlib._path import (
AttributeError: _ARRAY_API not found
Traceback (most recent call last):
  File "/share/users/dinura/Projects/VLA/vla0/eval/eval_libero.py", line 10, in <module>
    from roboverse.evals.libero.eval import eval, get_evaluation_tasks  # noqa
  File "/share/users/dinura/Projects/VLA/vla0/libs/RoboVerse/roboverse/evals/libero/eval.py", line 17, in <module>
    from libero.libero.envs import OffScreenRenderEnv
  File "/share/users/dinura/Projects/VLA/LIBERO/libero/libero/envs/__init__.py", line 6, in <module>
    from .env_wrapper import OffScreenRenderEnv, SegmentationRenderEnv
  File "/share/users/dinura/Projects/VLA/LIBERO/libero/libero/envs/env_wrapper.py", line 4, in <module>
    import matplotlib.cm as cm
  File "/share/data/drive_1/huggingface_cache/miniconda3/envs/vla0/lib/python3.10/site-packages/matplotlib/__init__.py", line 109, in <module>
    from . import _api, _version, cbook, docstring, rcsetup
  File "/share/data/drive_1/huggingface_cache/miniconda3/envs/vla0/lib/python3.10/site-packages/matplotlib/rcsetup.py", line 27, in <module>
    from matplotlib.colors import Colormap, is_color_like
  File "/share/data/drive_1/huggingface_cache/miniconda3/envs/vla0/lib/python3.10/site-packages/matplotlib/colors.py", line 56, in <module>
    from matplotlib import _api, cbook, scale
  File "/share/data/drive_1/huggingface_cache/miniconda3/envs/vla0/lib/python3.10/site-packages/matplotlib/scale.py", line 23, in <module>
    from matplotlib.ticker import (
  File "/share/data/drive_1/huggingface_cache/miniconda3/envs/vla0/lib/python3.10/site-packages/matplotlib/ticker.py", line 136, in <module>
    from matplotlib import transforms as mtransforms
  File "/share/data/drive_1/huggingface_cache/miniconda3/envs/vla0/lib/python3.10/site-packages/matplotlib/transforms.py", line 46, in <module>
    from matplotlib._path import (
ImportError: numpy.core.multiarray failed to import

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions