Skip to content

Issue on page /projects/project-notebooks/Macrocircuits.html #429

Description

@yjmantilla

For me the notebook for macrocircuits currently crashes with:

[15] test_dm_control(env)

Traceback (most recent call last)
<ipython-input-15-04e55b918405> in <cell line: 0>()
---- > 1 test_dm_control(env)

ValueError

6 frames
/usr/local/lib/python3.11/dist-packages/acme/wrappers/single_precision.py in _convert_single_value(value)
value = np.array(value, copy=False)
if np.issubdtype(value.dtype, np.float64):
value = np.array(value, copy=False, dtype=np.float32)
elif np.issubdtype(value.dtype, np.int64):
value = np.array(value, copy=False, dtype=np.int32)

ValueError: Unable to avoid copy while creating an array as requested.
If using 'np.array(obj, copy=False)' replace it with 'np.asarray(obj)' to allow a copy when needed (no behavior change in NumPy 1.x).
For more details, see https://numpy.org/devdocs/numpy 2 0 migration_guide.html#adapting-to-changes-in-the-copy-keyword.

Which comes from the numpy 2 update, with the installed version of acme not supporting it.

I solved it by doing:

!git clone https://github.com/google-deepmind/acme.git
%cd acme/
!pip install .
%cd ..

And also installing launchpad which was not automatically installed ( using !pip install .[envs] will add its own problems so i didnt do it).

!pip install -q launchpad

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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