opendilab/LightZero

Installation fails on MacBook M1 Pro

Closed this issue · 6 comments

I am not able to install the package with my M1 Pro MacBook. The problematic library seems to be box2d-py. I already tried to install box2d via brew (brew install box2d) and followed these instructions without any success. Do you have any ideas?

Installation from pypi

❯ pip install LightZero
Collecting LightZero
  Using cached LightZero-0.0.1.tar.gz (194 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      Traceback (most recent call last):
        File "/Users/user/.pyenv/versions/3.10.8/envs/light_zero/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/user/.pyenv/versions/3.10.8/envs/light_zero/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/user/.pyenv/versions/3.10.8/envs/light_zero/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-alil5aea/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-alil5aea/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-alil5aea/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 507, in run_setup
          super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-alil5aea/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in run_setup
          exec(code, locals())
        File "<string>", line 41, in <module>
        File "<string>", line 25, in _load_req
      FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Directly installing from repo

Skipped some sections as the complete output is 5000 lines.

❯ pip install -e .
Obtaining file:///Users/user/Code/private/light_zero/LightZero
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Collecting DI-engine>=0.4.7 (from DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached DI_engine-0.4.9-py3-none-any.whl.metadata (61 kB)
Collecting gym==0.25.1 (from gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Using cached gym-0.25.1-py3-none-any.whl

...

Using cached smmap-5.0.1-py3-none-any.whl (24 kB)
Building wheels for collected packages: LightZero, box2d-py
  Building editable for LightZero (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building editable for LightZero (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [2340 lines of output]
      In file included from /Users/user/Code/private/light_zero/LightZero/lzero/mcts/ctree/ctree_sampled_efficientzero/ezs_tree.cpp:39:
      In file included from /Users/user/.pyenv/versions/3.10.8/include/python3.10/Python.h:25:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:64:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:93:16: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
              unsigned char   *_base;
                              ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:93:16: note: insert '_Nullable' if the pointer may be null
              unsigned char   *_base;
                              ^
                                _Nullable
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:93:16: note: insert '_Nonnull' if the pointer should never be null
              unsigned char   *_base;
                              ^
                                _Nonnull
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:138:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
              int     (* _Nullable _read) (void *, char *, int);
                                                ^
                                                 
...

      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:643:17: note: declared here
      template <class _A1, class _A2>
                      ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:646:58: error: expected unqualified-id
                                      std::__promote<_A1, _A2> >::type
                                                               ^
      In file included from Box2D/Box2D_wrap.cpp:3023:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:561:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__string/char_traits.h:24:
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdio:104:5: error: <cstdio> tried including <stdio.h> but didn't find libc++'s <stdio.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
      #   error <cstdio> tried including <stdio.h> but didn't find libc++'s <stdio.h> header. \
          ^
      In file included from Box2D/Box2D_wrap.cpp:3023:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:561:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__string/char_traits.h:29:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cwchar:108:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cwctype:54:
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cctype:43:5: error: <cctype> tried including <ctype.h> but didn't find libc++'s <ctype.h> header.           This usually means that your header search paths are not configured properly.            The header search paths should contain the C++ Standard Library headers before           any C Standard Library.
      #   error <cctype> tried including <ctype.h> but didn't find libc++'s <ctype.h> header. \
          ^
      In file included from Box2D/Box2D_wrap.cpp:3023:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:561:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__string/char_traits.h:29:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cwchar:108:
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cwctype:59:5: error: <cwctype> tried including <wctype.h> but didn't find libc++'s <wctype.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
      #   error <cwctype> tried including <wctype.h> but didn't find libc++'s <wctype.h> header. \
          ^
      In file included from Box2D/Box2D_wrap.cpp:3023:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:561:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__string/char_traits.h:29:
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cwchar:113:5: error: <cwchar> tried including <wchar.h> but didn't find libc++'s <wchar.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
      #   error <cwchar> tried including <wchar.h> but didn't find libc++'s <wchar.h> header. \
          ^
      fatal error: too many errors emitted, stopping now [-ferror-limit=]
      193 warnings and 20 errors generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for box2d-py
  Running setup.py clean for box2d-py
Failed to build LightZero box2d-py
ERROR: Could not build wheels for LightZero, box2d-py, which is required to install pyproject.toml-based projects

Based on your installation log, this issue might be due to an incorrect configuration of the C++ header file library path. The error message suggests that C++ standard library header files should be included before C standard library header files, but your compiler settings may not be adhering to this rule.

This issue may be related to your system environment and the version of Python installed. Here are some potential solutions:

  • Update Xcode and Command Line Tools: Ensure that both Xcode and Command Line Tools on your Mac system are up-to-date. These tools include the C and C++ standard libraries that you need. You can update Xcode via the App Store, and Command Line Tools can be updated by running the command xcode-select --install.

  • Confirm Compatibility of box2d-py Version with Your Environment: You may need to confirm that the version of box2d-py is compatible with your Python version and operating system version. If it's not compatible, you may need to install a different version.

This problem could also be caused by other factors, and the above are just some possible solutions.

Note part of this suggestion is provided by GPT-4 :)

Best wishes.

Thanks for the feedback. I updated by OS (is now Sonoma 14.1.1) and every package that I have installed via brew and tried different versions of python. Here are my results:

         | pip install -e .  | pip install LightZero
--------------------------------------------------------
py 3.10  | ❌                | ❌
py 3.9   | ❌                | ✅
py 3.8   | ❌                | ✅

So at least I can install the package (version 0.0.1) in a non-editable way. When trying to install it directly from repository I also used the tagged versions v0.0.1, v0.0.2 and master branch without success.

Question: Is it possible to run the training / environments with "only" pip install LightZero?

  • Hello, as most of our development and testing is carried out in the Python 3.8 environment, could you please provide the detailed error information when executing the command pip install -e . in this Python version? This would greatly assist us in pinpointing the issue.
  • Regarding the v0.0.2 version of LightZero, we will be uploading it to PyPI shortly. If you're simply looking to run the example codes without any deep development or debugging, executing pip install LightZero should suffice. However, if you're planning for further research and development based on LightZero, we strongly recommend installing it with the pip install -e . command.

Hey @puyuan1996 ,

you can find the complete log attached. Here are my steps:

  1. Ensure that all homebrew packages are up-to-date (brew update, brew upgrade)
  2. Create new python environment and use it (pyenv virtualenv 3.8.18 lightzero, pyenv shell lightzero)
  3. Update pip: pip install --upgrade pip
  4. Install the dependencies: pip install -e .

I also updated setuptools first as recommended in the logs and this SO answer with no success. Omitting the -e option in the pip install command yields the same results.

❯ pip install -e .
Obtaining file:///Users/timon/Code/private/light_zero/LightZero
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Collecting DI-engine>=0.4.7 (from DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached DI_engine-0.4.9-py3-none-any.whl.metadata (61 kB)
Collecting gym==0.25.1 (from gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Using cached gym-0.25.1-py3-none-any.whl
Collecting numpy>=1.22.4 (from LightZero==0.0.2)
  Using cached numpy-1.24.4-cp38-cp38-macosx_11_0_arm64.whl.metadata (5.6 kB)
Collecting pympler (from LightZero==0.0.2)
  Using cached Pympler-1.0.1-py3-none-any.whl (164 kB)
Collecting cloudpickle>=1.2.0 (from gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Using cached cloudpickle-3.0.0-py3-none-any.whl.metadata (7.0 kB)
Collecting gym-notices>=0.0.4 (from gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Using cached gym_notices-0.0.8-py3-none-any.whl (3.0 kB)
Collecting importlib-metadata>=4.8.0 (from gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Downloading importlib_metadata-6.8.0-py3-none-any.whl.metadata (5.1 kB)
Collecting autorom~=0.4.2 (from autorom[accept-rom-license]~=0.4.2; extra == "accept-rom-license"->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Using cached AutoROM-0.4.2-py3-none-any.whl (16 kB)
Requirement already satisfied: setuptools<=66.1.1 in /Users/timon/.pyenv/versions/3.8.18/envs/lightzero/lib/python3.8/site-packages (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2) (56.0.0)
Collecting yapf==0.29.0 (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached yapf-0.29.0-py2.py3-none-any.whl (185 kB)
Collecting gymnasium (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached gymnasium-0.29.1-py3-none-any.whl.metadata (10 kB)
Collecting torch>=1.1.0 (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading torch-2.1.1-cp38-none-macosx_11_0_arm64.whl.metadata (25 kB)
Collecting DI-treetensor>=0.4.0 (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached DI_treetensor-0.4.1-py3-none-any.whl.metadata (10 kB)
Collecting DI-toolkit>=0.1.0 (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached DI_toolkit-0.2.0-py3-none-any.whl.metadata (8.5 kB)
Collecting trueskill (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached trueskill-0.4.5.tar.gz (21 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting tensorboardX>=2.2 (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached tensorboardX-2.6.2.2-py2.py3-none-any.whl.metadata (5.8 kB)
Collecting wandb (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached wandb-0.16.0-py3-none-any.whl.metadata (9.8 kB)
Collecting matplotlib (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading matplotlib-3.7.4-cp38-cp38-macosx_11_0_arm64.whl.metadata (5.7 kB)
Collecting easydict==1.9 (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached easydict-1.9.tar.gz (6.4 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pyyaml (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached PyYAML-6.0.1-cp38-cp38-macosx_14_0_arm64.whl
Collecting enum-tools (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached enum_tools-0.11.0-py3-none-any.whl.metadata (7.9 kB)
Collecting hickle (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached hickle-5.0.2-py3-none-any.whl (107 kB)
Collecting tabulate (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached tabulate-0.9.0-py3-none-any.whl (35 kB)
Collecting click>=7.0.0 (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting requests>=2.25.1 (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
Collecting flask~=1.1.2 (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached Flask-1.1.4-py2.py3-none-any.whl (94 kB)
Collecting responses~=0.12.1 (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached responses-0.12.1-py2.py3-none-any.whl (16 kB)
Collecting URLObject>=2.4.0 (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached URLObject-2.4.3.tar.gz (27 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting MarkupSafe==2.0.1 (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading MarkupSafe-2.0.1-cp38-cp38-macosx_10_9_universal2.whl (18 kB)
Collecting pynng (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading pynng-0.7.2-cp38-cp38-macosx_10_9_universal2.whl (951 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 951.6/951.6 kB 10.3 MB/s eta 0:00:00
Collecting redis (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached redis-5.0.1-py3-none-any.whl.metadata (8.9 kB)
Collecting mpire>=2.3.5 (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached mpire-2.8.1-py3-none-any.whl.metadata (14 kB)
WARNING: di-engine 0.4.9 does not provide the extra 'common-env'
Collecting ale-py (from DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading ale_py-0.8.1-cp38-cp38-macosx_11_0_arm64.whl (1.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 19.6 MB/s eta 0:00:00
Collecting cmake>=3.18.4 (from DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached cmake-3.27.7-py2.py3-none-macosx_10_10_universal2.macosx_10_10_x86_64.macosx_11_0_arm64.macosx_11_0_universal2.whl.metadata (6.7 kB)
Collecting opencv-python (from DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached opencv_python-4.8.1.78-cp37-abi3-macosx_11_0_arm64.whl.metadata (19 kB)
Collecting pytest==7.0.1 (from gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Using cached pytest-7.0.1-py3-none-any.whl (296 kB)
Collecting ale-py (from DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading ale_py-0.7.5-cp38-cp38-macosx_11_0_arm64.whl (1.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 23.1 MB/s eta 0:00:00
Collecting lz4>=3.1.0 (from gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Downloading lz4-4.3.2-cp38-cp38-macosx_11_0_arm64.whl (212 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 212.2/212.2 kB 12.0 MB/s eta 0:00:00
Collecting imageio>=2.14.1 (from gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Downloading imageio-2.33.0-py3-none-any.whl.metadata (4.9 kB)
Collecting box2d-py==2.3.5 (from gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Using cached box2d-py-2.3.5.tar.gz (374 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting mujoco==2.2.0 (from gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Downloading mujoco-2.2.0-cp38-cp38-macosx_11_0_arm64.whl (3.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 20.6 MB/s eta 0:00:00
Collecting mujoco-py<2.2,>=2.1 (from gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Using cached mujoco_py-2.1.2.14-py3-none-any.whl (2.4 MB)
Collecting pygame==2.1.0 (from gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Downloading pygame-2.1.0-cp38-cp38-macosx_11_0_arm64.whl (4.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.8/4.8 MB 7.6 MB/s eta 0:00:00
Collecting absl-py (from mujoco==2.2.0->gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Using cached absl_py-2.0.0-py3-none-any.whl.metadata (2.3 kB)
Collecting glfw (from mujoco==2.2.0->gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Downloading glfw-2.6.3-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-macosx_11_0_arm64.whl.metadata (5.4 kB)
Collecting pyopengl (from mujoco==2.2.0->gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Using cached PyOpenGL-3.1.7-py3-none-any.whl.metadata (3.2 kB)
Collecting attrs>=19.2.0 (from pytest==7.0.1->gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Using cached attrs-23.1.0-py3-none-any.whl (61 kB)
Collecting iniconfig (from pytest==7.0.1->gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Using cached iniconfig-2.0.0-py3-none-any.whl (5.9 kB)
Collecting packaging (from pytest==7.0.1->gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Using cached packaging-23.2-py3-none-any.whl.metadata (3.2 kB)
Collecting pluggy<2.0,>=0.12 (from pytest==7.0.1->gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Using cached pluggy-1.3.0-py3-none-any.whl.metadata (4.3 kB)
Collecting py>=1.8.2 (from pytest==7.0.1->gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Using cached py-1.11.0-py2.py3-none-any.whl (98 kB)
Collecting tomli>=1.0.0 (from pytest==7.0.1->gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting importlib-resources (from ale-py->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached importlib_resources-6.1.1-py3-none-any.whl.metadata (4.1 kB)
Collecting tqdm (from autorom~=0.4.2->autorom[accept-rom-license]~=0.4.2; extra == "accept-rom-license"->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Using cached tqdm-4.66.1-py3-none-any.whl.metadata (57 kB)
Collecting AutoROM.accept-rom-license (from autorom[accept-rom-license]~=0.4.2; extra == "accept-rom-license"->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Using cached AutoROM.accept_rom_license-0.6.1-py3-none-any.whl
Collecting hbutils>=0.9.1 (from DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached hbutils-0.9.3-py3-none-any.whl.metadata (8.3 kB)
Collecting rich>=12.2.0 (from DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached rich-13.7.0-py3-none-any.whl.metadata (18 kB)
Collecting yattag>=1.14.0 (from DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached yattag-1.15.2.tar.gz (28 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pandas (from DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading pandas-2.0.3-cp38-cp38-macosx_11_0_arm64.whl.metadata (18 kB)
Collecting tensorboard (from DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading tensorboard-2.14.0-py3-none-any.whl.metadata (1.8 kB)
Collecting scipy (from DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading scipy-1.10.1-cp38-cp38-macosx_12_0_arm64.whl (28.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 28.8/28.8 MB 28.9 MB/s eta 0:00:00
Collecting scikit-learn (from DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading scikit_learn-1.3.2-cp38-cp38-macosx_12_0_arm64.whl.metadata (11 kB)
Collecting seaborn (from DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached seaborn-0.13.0-py3-none-any.whl.metadata (5.3 kB)
Collecting treevalue>=1.4.11 (from DI-treetensor>=0.4.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading treevalue-1.4.12-cp38-cp38-macosx_11_0_arm64.whl.metadata (22 kB)
Collecting Werkzeug<2.0,>=0.15 (from flask~=1.1.2->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
Collecting Jinja2<3.0,>=2.10.1 (from flask~=1.1.2->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)
Collecting itsdangerous<2.0,>=0.24 (from flask~=1.1.2->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)
Collecting click>=7.0.0 (from DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting zipp>=0.5 (from importlib-metadata>=4.8.0->gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Downloading zipp-3.17.0-py3-none-any.whl.metadata (3.7 kB)
Collecting contourpy>=1.0.1 (from matplotlib->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading contourpy-1.1.1-cp38-cp38-macosx_11_0_arm64.whl.metadata (5.9 kB)
Collecting cycler>=0.10 (from matplotlib->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)
Collecting fonttools>=4.22.0 (from matplotlib->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading fonttools-4.44.3-cp38-cp38-macosx_10_9_universal2.whl.metadata (154 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 154.6/154.6 kB 10.4 MB/s eta 0:00:00
Collecting kiwisolver>=1.0.1 (from matplotlib->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading kiwisolver-1.4.5-cp38-cp38-macosx_11_0_arm64.whl.metadata (6.4 kB)
Collecting pillow>=6.2.0 (from matplotlib->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading Pillow-10.1.0-cp38-cp38-macosx_11_0_arm64.whl.metadata (9.5 kB)
Collecting pyparsing>=2.3.1 (from matplotlib->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached pyparsing-3.1.1-py3-none-any.whl.metadata (5.1 kB)
Collecting python-dateutil>=2.7 (from matplotlib->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting pygments>=2.0 (from mpire>=2.3.5->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading pygments-2.17.1-py3-none-any.whl.metadata (2.6 kB)
Collecting charset-normalizer<4,>=2 (from requests>=2.25.1->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading charset_normalizer-3.3.2-cp38-cp38-macosx_11_0_arm64.whl.metadata (33 kB)
Collecting idna<4,>=2.5 (from requests>=2.25.1->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting urllib3<3,>=1.21.1 (from requests>=2.25.1->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached urllib3-2.1.0-py3-none-any.whl.metadata (6.4 kB)
Collecting certifi>=2017.4.17 (from requests>=2.25.1->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading certifi-2023.11.17-py3-none-any.whl.metadata (2.2 kB)
Collecting six (from responses~=0.12.1->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting protobuf>=3.20 (from tensorboardX>=2.2->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached protobuf-4.25.1-cp37-abi3-macosx_10_9_universal2.whl.metadata (541 bytes)
Collecting filelock (from torch>=1.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached filelock-3.13.1-py3-none-any.whl.metadata (2.8 kB)
Collecting typing-extensions (from torch>=1.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached typing_extensions-4.8.0-py3-none-any.whl.metadata (3.0 kB)
Collecting sympy (from torch>=1.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached sympy-1.12-py3-none-any.whl (5.7 MB)
Collecting networkx (from torch>=1.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading networkx-3.1-py3-none-any.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 8.0 MB/s eta 0:00:00
Collecting fsspec (from torch>=1.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached fsspec-2023.10.0-py3-none-any.whl.metadata (6.8 kB)
Collecting farama-notifications>=0.0.1 (from gymnasium->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached Farama_Notifications-0.0.4-py3-none-any.whl (2.5 kB)
Collecting h5py>=2.10.0 (from hickle->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading h5py-3.10.0-cp38-cp38-macosx_11_0_arm64.whl.metadata (2.5 kB)
Collecting cffi (from pynng->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached cffi-1.16.0-cp38-cp38-macosx_14_0_arm64.whl
Collecting sniffio (from pynng->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting async-timeout>=4.0.2 (from redis->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached async_timeout-4.0.3-py3-none-any.whl.metadata (4.2 kB)
Collecting GitPython!=3.1.29,>=1.0.0 (from wandb->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached GitPython-3.1.40-py3-none-any.whl.metadata (12 kB)
Collecting psutil>=5.0.0 (from wandb->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached psutil-5.9.6-cp38-abi3-macosx_11_0_arm64.whl.metadata (21 kB)
Collecting sentry-sdk>=1.0.0 (from wandb->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached sentry_sdk-1.35.0-py2.py3-none-any.whl.metadata (9.7 kB)
Collecting docker-pycreds>=0.4.0 (from wandb->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached docker_pycreds-0.4.0-py2.py3-none-any.whl (9.0 kB)
Collecting setproctitle (from wandb->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading setproctitle-1.3.3-cp38-cp38-macosx_10_9_universal2.whl.metadata (9.9 kB)
Collecting appdirs>=1.4.3 (from wandb->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting gitdb<5,>=4.0.1 (from GitPython!=3.1.29,>=1.0.0->wandb->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached gitdb-4.0.11-py3-none-any.whl.metadata (1.2 kB)
Collecting pytimeparse>=1.1.8 (from hbutils>=0.9.1->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached pytimeparse-1.1.8-py2.py3-none-any.whl (10.0 kB)
Collecting bitmath>=1.3.3.1 (from hbutils>=0.9.1->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached bitmath-1.3.3.1.tar.gz (88 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting chardet<5,>=3.0.4 (from hbutils>=0.9.1->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting deprecation>=2.0.0 (from hbutils>=0.9.1->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached deprecation-2.1.0-py2.py3-none-any.whl (11 kB)
Collecting Cython>=0.27.2 (from mujoco-py<2.2,>=2.1->gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Using cached Cython-3.0.5-py2.py3-none-any.whl.metadata (3.2 kB)
Collecting fasteners~=0.15 (from mujoco-py<2.2,>=2.1->gym==0.25.1->gym[accept-rom-license]==0.25.1->LightZero==0.0.2)
  Using cached fasteners-0.19-py3-none-any.whl.metadata (4.9 kB)
Collecting pycparser (from cffi->pynng->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting markdown-it-py>=2.2.0 (from rich>=12.2.0->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)
Collecting graphviz>=0.17 (from treevalue>=1.4.11->DI-treetensor>=0.4.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached graphviz-0.20.1-py3-none-any.whl (47 kB)
Collecting dill>=0.3.4 (from treevalue>=1.4.11->DI-treetensor>=0.4.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached dill-0.3.7-py3-none-any.whl.metadata (9.9 kB)
Collecting pytz>=2020.1 (from pandas->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached pytz-2023.3.post1-py2.py3-none-any.whl.metadata (22 kB)
Collecting tzdata>=2022.1 (from pandas->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached tzdata-2023.3-py2.py3-none-any.whl (341 kB)
Collecting joblib>=1.1.1 (from scikit-learn->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached joblib-1.3.2-py3-none-any.whl.metadata (5.4 kB)
Collecting threadpoolctl>=2.0.0 (from scikit-learn->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached threadpoolctl-3.2.0-py3-none-any.whl.metadata (10.0 kB)
Collecting mpmath>=0.19 (from sympy->torch>=1.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)
Collecting grpcio>=1.48.2 (from tensorboard->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading grpcio-1.59.3-cp38-cp38-macosx_10_10_universal2.whl.metadata (4.0 kB)
Collecting google-auth<3,>=1.6.3 (from tensorboard->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached google_auth-2.23.4-py2.py3-none-any.whl.metadata (4.7 kB)
Collecting google-auth-oauthlib<1.1,>=0.5 (from tensorboard->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Downloading google_auth_oauthlib-1.0.0-py2.py3-none-any.whl (18 kB)
Collecting markdown>=2.6.8 (from tensorboard->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached Markdown-3.5.1-py3-none-any.whl.metadata (7.1 kB)
Collecting tensorboard-data-server<0.8.0,>=0.7.0 (from tensorboard->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached tensorboard_data_server-0.7.2-py3-none-any.whl.metadata (1.1 kB)
Collecting wheel>=0.26 (from tensorboard->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached wheel-0.41.3-py3-none-any.whl.metadata (2.2 kB)
Collecting smmap<6,>=3.0.1 (from gitdb<5,>=4.0.1->GitPython!=3.1.29,>=1.0.0->wandb->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached smmap-5.0.1-py3-none-any.whl.metadata (4.3 kB)
Collecting cachetools<6.0,>=2.0.0 (from google-auth<3,>=1.6.3->tensorboard->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached cachetools-5.3.2-py3-none-any.whl.metadata (5.2 kB)
Collecting pyasn1-modules>=0.2.1 (from google-auth<3,>=1.6.3->tensorboard->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached pyasn1_modules-0.3.0-py2.py3-none-any.whl (181 kB)
Collecting rsa<5,>=3.1.4 (from google-auth<3,>=1.6.3->tensorboard->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached rsa-4.9-py3-none-any.whl (34 kB)
Collecting requests-oauthlib>=0.7.0 (from google-auth-oauthlib<1.1,>=0.5->tensorboard->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=12.2.0->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Collecting pyasn1<0.6.0,>=0.4.6 (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached pyasn1-0.5.0-py2.py3-none-any.whl (83 kB)
Collecting oauthlib>=3.0.0 (from requests-oauthlib>=0.7.0->google-auth-oauthlib<1.1,>=0.5->tensorboard->DI-toolkit>=0.1.0->DI-engine>=0.4.7->DI-engine[common_env]>=0.4.7->LightZero==0.0.2)
  Using cached oauthlib-3.2.2-py3-none-any.whl (151 kB)
Using cached DI_engine-0.4.9-py3-none-any.whl (2.1 MB)
Using cached numpy-1.24.4-cp38-cp38-macosx_11_0_arm64.whl (13.8 MB)
Using cached cloudpickle-3.0.0-py3-none-any.whl (20 kB)
Using cached cmake-3.27.7-py2.py3-none-macosx_10_10_universal2.macosx_10_10_x86_64.macosx_11_0_arm64.macosx_11_0_universal2.whl (47.4 MB)
Using cached DI_toolkit-0.2.0-py3-none-any.whl (29 kB)
Using cached DI_treetensor-0.4.1-py3-none-any.whl (46 kB)
Downloading importlib_metadata-6.8.0-py3-none-any.whl (22 kB)
Downloading matplotlib-3.7.4-cp38-cp38-macosx_11_0_arm64.whl (7.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/7.3 MB 28.8 MB/s eta 0:00:00
Using cached mpire-2.8.1-py3-none-any.whl (270 kB)
Using cached opencv_python-4.8.1.78-cp37-abi3-macosx_11_0_arm64.whl (33.1 MB)
Using cached requests-2.31.0-py3-none-any.whl (62 kB)
Using cached tensorboardX-2.6.2.2-py2.py3-none-any.whl (101 kB)
Downloading torch-2.1.1-cp38-none-macosx_11_0_arm64.whl (59.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.6/59.6 MB 27.2 MB/s eta 0:00:00
Using cached enum_tools-0.11.0-py3-none-any.whl (62 kB)
Using cached gymnasium-0.29.1-py3-none-any.whl (953 kB)
Using cached redis-5.0.1-py3-none-any.whl (250 kB)
Using cached wandb-0.16.0-py3-none-any.whl (2.1 MB)
Using cached async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
Downloading certifi-2023.11.17-py3-none-any.whl (162 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.5/162.5 kB 13.5 MB/s eta 0:00:00
Downloading charset_normalizer-3.3.2-cp38-cp38-macosx_11_0_arm64.whl (119 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 119.1/119.1 kB 11.9 MB/s eta 0:00:00
Downloading contourpy-1.1.1-cp38-cp38-macosx_11_0_arm64.whl (232 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 232.4/232.4 kB 14.3 MB/s eta 0:00:00
Using cached cycler-0.12.1-py3-none-any.whl (8.3 kB)
Downloading fonttools-4.44.3-cp38-cp38-macosx_10_9_universal2.whl (2.7 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.7/2.7 MB 27.7 MB/s eta 0:00:00
Using cached GitPython-3.1.40-py3-none-any.whl (190 kB)
Downloading h5py-3.10.0-cp38-cp38-macosx_11_0_arm64.whl (2.7 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.7/2.7 MB 27.2 MB/s eta 0:00:00
Using cached hbutils-0.9.3-py3-none-any.whl (129 kB)
Downloading imageio-2.33.0-py3-none-any.whl (313 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 313.3/313.3 kB 15.8 MB/s eta 0:00:00
Using cached importlib_resources-6.1.1-py3-none-any.whl (33 kB)
Downloading kiwisolver-1.4.5-cp38-cp38-macosx_11_0_arm64.whl (66 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.0/66.0 kB 4.8 MB/s eta 0:00:00
Using cached packaging-23.2-py3-none-any.whl (53 kB)
Downloading Pillow-10.1.0-cp38-cp38-macosx_11_0_arm64.whl (3.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 28.0 MB/s eta 0:00:00
Downloading protobuf-4.25.1-cp37-abi3-macosx_10_9_universal2.whl (394 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 394.2/394.2 kB 17.3 MB/s eta 0:00:00
Using cached psutil-5.9.6-cp38-abi3-macosx_11_0_arm64.whl (246 kB)
Downloading pygments-2.17.1-py3-none-any.whl (1.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 23.2 MB/s eta 0:00:00
Using cached pyparsing-3.1.1-py3-none-any.whl (103 kB)
Using cached rich-13.7.0-py3-none-any.whl (240 kB)
Using cached sentry_sdk-1.35.0-py2.py3-none-any.whl (248 kB)
Using cached tqdm-4.66.1-py3-none-any.whl (78 kB)
Downloading treevalue-1.4.12-cp38-cp38-macosx_11_0_arm64.whl (807 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 807.6/807.6 kB 22.2 MB/s eta 0:00:00
Using cached typing_extensions-4.8.0-py3-none-any.whl (31 kB)
Using cached urllib3-2.1.0-py3-none-any.whl (104 kB)
Downloading zipp-3.17.0-py3-none-any.whl (7.4 kB)
Using cached filelock-3.13.1-py3-none-any.whl (11 kB)
Using cached fsspec-2023.10.0-py3-none-any.whl (166 kB)
Downloading pandas-2.0.3-cp38-cp38-macosx_11_0_arm64.whl (10.7 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.7/10.7 MB 29.0 MB/s eta 0:00:00
Downloading scikit_learn-1.3.2-cp38-cp38-macosx_12_0_arm64.whl (9.4 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.4/9.4 MB 29.1 MB/s eta 0:00:00
Using cached seaborn-0.13.0-py3-none-any.whl (294 kB)
Downloading setproctitle-1.3.3-cp38-cp38-macosx_10_9_universal2.whl (16 kB)
Downloading tensorboard-2.14.0-py3-none-any.whl (5.5 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.5/5.5 MB 29.9 MB/s eta 0:00:00
Using cached absl_py-2.0.0-py3-none-any.whl (130 kB)
Using cached Cython-3.0.5-py2.py3-none-any.whl (1.2 MB)
Using cached dill-0.3.7-py3-none-any.whl (115 kB)
Using cached fasteners-0.19-py3-none-any.whl (18 kB)
Using cached gitdb-4.0.11-py3-none-any.whl (62 kB)
Downloading glfw-2.6.3-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-macosx_11_0_arm64.whl (92 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 92.7/92.7 kB 6.9 MB/s eta 0:00:00
Using cached google_auth-2.23.4-py2.py3-none-any.whl (183 kB)
Downloading grpcio-1.59.3-cp38-cp38-macosx_10_10_universal2.whl (9.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.6/9.6 MB 29.2 MB/s eta 0:00:00
Using cached joblib-1.3.2-py3-none-any.whl (302 kB)
Using cached Markdown-3.5.1-py3-none-any.whl (102 kB)
Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
Using cached pluggy-1.3.0-py3-none-any.whl (18 kB)
Using cached pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)
Using cached tensorboard_data_server-0.7.2-py3-none-any.whl (2.4 kB)
Using cached threadpoolctl-3.2.0-py3-none-any.whl (15 kB)
Using cached wheel-0.41.3-py3-none-any.whl (65 kB)
Using cached PyOpenGL-3.1.7-py3-none-any.whl (2.4 MB)
Using cached cachetools-5.3.2-py3-none-any.whl (9.3 kB)
Using cached smmap-5.0.1-py3-none-any.whl (24 kB)
Building wheels for collected packages: LightZero, easydict, box2d-py, URLObject, trueskill, yattag, bitmath
  Building editable for LightZero (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building editable for LightZero (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [199 lines of output]
      In file included from /Users/timon/Code/private/light_zero/LightZero/lzero/mcts/ctree/ctree_sampled_efficientzero/ezs_tree.cpp:1229:
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:86:27: warning: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare]
              for (int i = 0; i < this->value.size(); ++i)
                              ~ ^ ~~~~~~~~~~~~~~~~~~
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:104:31: warning: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare]
                  for (int i = 1; i < hash.size(); ++i)
                                  ~ ^ ~~~~~~~~~~~
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:374:18: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
                  for (auto prob : probs)
                       ^
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:374:28: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
                  for (auto prob : probs)
                                 ^
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:384:44: error: no member named '__emplace_back' in 'std::vector<std::pair<int, double> >'; did you mean 'emplace_back'?
                          disc_action_with_probs.__emplace_back(std::make_pair(iter, disturbed_probs[iter]));
                                                 ^~~~~~~~~~~~~~
                                                 emplace_back
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:600:19: note: 'emplace_back' declared here
              void      emplace_back(_Args&&... __args);
                        ^
      In file included from /Users/timon/Code/private/light_zero/LightZero/lzero/mcts/ctree/ctree_sampled_efficientzero/ezs_tree.cpp:1229:
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:327:31: warning: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare]
                  for (int i = 0; i < policy_logits.size(); ++i)
                                  ~ ^ ~~~~~~~~~~~~~~~~~~~~
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:331:31: warning: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare]
                  for (int i = 0; i < policy_logits.size(); ++i)
                                  ~ ^ ~~~~~~~~~~~~~~~~~~~~
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:494:14: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
              for (auto a : this->legal_actions)
                   ^
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:494:21: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
              for (auto a : this->legal_actions)
                          ^
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:574:27: warning: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare]
              for (int i = 0; i < traj.size(); ++i)
                              ~ ^ ~~~~~~~~~~~
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:592:18: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
                  for (auto a : this->legal_actions)
                       ^
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:592:25: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
                  for (auto a : this->legal_actions)
                              ^
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:663:35: warning: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare]
                      for (int i = 0; i < this->legal_actions_list.size(); ++i)
                                      ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:777:31: warning: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare]
                  for (int j = 0; j < this->roots[i].legal_actions.size(); ++j)
                                  ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:844:18: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
                  for (auto a : node->legal_actions)
                       ^
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:844:25: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
                  for (auto a : node->legal_actions)
                              ^
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:816:15: warning: unused variable 'parent_value_prefix' [-Wunused-variable]
              float parent_value_prefix = 0.0;
                    ^
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:993:14: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
              for (auto a : root->legal_actions)
                   ^
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:993:21: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
              for (auto a : root->legal_actions)
                          ^
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:1058:35: warning: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare]
                      for (int i = 0; i < parent->children.size(); ++i)
                                      ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~
      lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:1067:35: warning: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare]
                      for (int i = 0; i < parent->children.size(); ++i)
                                      ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~
      /Users/timon/Code/private/light_zero/LightZero/lzero/mcts/ctree/ctree_sampled_efficientzero/ezs_tree.cpp:8374:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
        0, /*tp_print*/
        ^
      /Users/timon/.pyenv/versions/3.8.18/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
          Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
          ^
      /Users/timon/.pyenv/versions/3.8.18/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
      #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                           ^
      /Users/timon/Code/private/light_zero/LightZero/lzero/mcts/ctree/ctree_sampled_efficientzero/ezs_tree.cpp:8521:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
        0, /*tp_print*/
        ^
      /Users/timon/.pyenv/versions/3.8.18/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
          Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
          ^
      /Users/timon/.pyenv/versions/3.8.18/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
      #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                           ^
      /Users/timon/Code/private/light_zero/LightZero/lzero/mcts/ctree/ctree_sampled_efficientzero/ezs_tree.cpp:8669:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
        0, /*tp_print*/
        ^
      /Users/timon/.pyenv/versions/3.8.18/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
          Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
          ^
      /Users/timon/.pyenv/versions/3.8.18/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
      #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                           ^
      /Users/timon/Code/private/light_zero/LightZero/lzero/mcts/ctree/ctree_sampled_efficientzero/ezs_tree.cpp:8835:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
        0, /*tp_print*/
        ^
      /Users/timon/.pyenv/versions/3.8.18/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
          Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
          ^
      /Users/timon/.pyenv/versions/3.8.18/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
      #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                           ^
      /Users/timon/Code/private/light_zero/LightZero/lzero/mcts/ctree/ctree_sampled_efficientzero/ezs_tree.cpp:8982:3: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
        0, /*tp_print*/
        ^
      /Users/timon/.pyenv/versions/3.8.18/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
          Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
          ^
      /Users/timon/.pyenv/versions/3.8.18/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
      #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                           ^
      /Users/timon/Code/private/light_zero/LightZero/lzero/mcts/ctree/ctree_sampled_efficientzero/ezs_tree.cpp:12896:5: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
          0,
          ^
      /Users/timon/.pyenv/versions/3.8.18/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
          Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
          ^
      /Users/timon/.pyenv/versions/3.8.18/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
      #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                           ^
      26 warnings and 1 error generated.
      Traceback (most recent call last):
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-mfov5jq9/overlay/lib/python3.8/site-packages/setuptools/_distutils/unixccompiler.py", line 185, in _compile
          self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-mfov5jq9/overlay/lib/python3.8/site-packages/setuptools/_distutils/ccompiler.py", line 1041, in spawn
          spawn(cmd, dry_run=self.dry_run, **kwargs)
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-mfov5jq9/overlay/lib/python3.8/site-packages/setuptools/_distutils/spawn.py", line 70, in spawn
          raise DistutilsExecError(
      distutils.errors.DistutilsExecError: command '/usr/bin/clang' failed with exit code 1

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-mfov5jq9/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 156, in run
          self._create_wheel_file(bdist_wheel)
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-mfov5jq9/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 345, in _create_wheel_file
          files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-mfov5jq9/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 268, in _run_build_commands
          self._run_build_subcommands()
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-mfov5jq9/overlay/lib/python3.8/site-packages/setuptools/command/editable_wheel.py", line 295, in _run_build_subcommands
          self.run_command(name)
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-mfov5jq9/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-mfov5jq9/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
          super().run_command(command)
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-mfov5jq9/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-mfov5jq9/overlay/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 88, in run
          _build_ext.run(self)
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-mfov5jq9/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
          self.build_extensions()
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-mfov5jq9/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
          self._build_extensions_serial()
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-mfov5jq9/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
          self.build_extension(ext)
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-mfov5jq9/overlay/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 249, in build_extension
          _build_ext.build_extension(self, ext)
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-mfov5jq9/overlay/lib/python3.8/site-packages/Cython/Distutils/build_ext.py", line 135, in build_extension
          super(build_ext, self).build_extension(ext)
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-mfov5jq9/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
          objects = self.compiler.compile(
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-mfov5jq9/overlay/lib/python3.8/site-packages/setuptools/_distutils/ccompiler.py", line 600, in compile
          self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
        File "/private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-mfov5jq9/overlay/lib/python3.8/site-packages/setuptools/_distutils/unixccompiler.py", line 187, in _compile
          raise CompileError(msg)
      distutils.errors.CompileError: command '/usr/bin/clang' failed with exit code 1
      /private/var/folders/b5/vc_ln9s912z8_m6gyf6d98_r0000gn/T/pip-build-env-mfov5jq9/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py:988: _DebuggingTips: Problem in editable installation.
      !!

              ********************************************************************************
              An error happened while installing `LightZero` in editable mode.

              The following steps are recommended to help debug this problem:

              - Try to install the project normally, without using the editable mode.
                Does the error still persist?
                (If it does, try fixing the problem before attempting the editable mode).
              - If you are using binary extensions, make sure you have all OS-level
                dependencies installed (e.g. compilers, toolchains, binary libraries, ...).
              - Try the latest version of setuptools (maybe the error was already fixed).
              - If you (or your project dependencies) are using any setuptools extension
                or customization, make sure they support the editable mode.

              After following the steps above, if the problem still persists and
              you think this is related to how setuptools handles editable installations,
              please submit a reproducible example
              (see https://stackoverflow.com/help/minimal-reproducible-example) to:

                  https://github.com/pypa/setuptools/issues

              See https://setuptools.pypa.io/en/latest/userguide/development_mode.html for details.
              ********************************************************************************

      !!
        cmd_obj.run()
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building editable for LightZero
  Building wheel for easydict (pyproject.toml) ... done
  Created wheel for easydict: filename=easydict-1.9-py3-none-any.whl size=6344 sha256=636e1a7dc27467e07ca59beb89a7e2b392c51ff8c14f329bc400ab4e1378f65d
  Stored in directory: /Users/timon/Library/Caches/pip/wheels/d3/e0/e9/305e348717e399665119bd012510d51ff4f22d709ff60c3096
  Building wheel for box2d-py (pyproject.toml) ... done
  Created wheel for box2d-py: filename=box2d_py-2.3.5-cp38-cp38-macosx_14_0_arm64.whl size=436038 sha256=23af4ba8a3ce9b35d6a924f17a030f5fc13cb163b9b31582390ada7cdb03721d
  Stored in directory: /Users/timon/Library/Caches/pip/wheels/8b/95/16/1dc99ff9a3f316ff245fdb5c9086cd13c35dad630809909075
  Building wheel for URLObject (pyproject.toml) ... done
  Created wheel for URLObject: filename=URLObject-2.4.3-py3-none-any.whl size=14509 sha256=7ead7bcaa141c89bea08e24edf4753371e26524e5803cd92c80192e17f9cfe86
  Stored in directory: /Users/timon/Library/Caches/pip/wheels/6d/9f/65/f0e414e2ac1be3f726f12d3952e38a624629b1056d5fc76401
  Building wheel for trueskill (pyproject.toml) ... done
  Created wheel for trueskill: filename=trueskill-0.4.5-py3-none-any.whl size=18049 sha256=c515bd0e7c4ec690a2f83ca2d6bb4cab1f6f22a4682c360fecc7f83ca3e5dada
  Stored in directory: /Users/timon/Library/Caches/pip/wheels/57/f0/71/e48afe7c387a680d85096a1e02c45fa0e0d34313d55c281df3
  Building wheel for yattag (pyproject.toml) ... done
  Created wheel for yattag: filename=yattag-1.15.2-py3-none-any.whl size=15667 sha256=5a49762229da25fbbf2a30980a07395543d83ef5c0be8e656787399c31a72256
  Stored in directory: /Users/timon/Library/Caches/pip/wheels/b9/65/96/0d6a19ea5ed220ed5a9e74968f299f7584613689738c754cb8
  Building wheel for bitmath (pyproject.toml) ... done
  Created wheel for bitmath: filename=bitmath-1.3.3.1-py3-none-any.whl size=23976 sha256=0d5b5cea7332bfdb288f5e2f76c25f9437242e9460a9c9cdfa04cdeee372c4ce
  Stored in directory: /Users/timon/Library/Caches/pip/wheels/f8/27/45/1bb5ccf30e6547dd54f876ec625f11ce36e1b81f921f2881e4
Successfully built easydict box2d-py URLObject trueskill yattag bitmath
Failed to build LightZero
ERROR: Could not build wheels for LightZero, which is required to install pyproject.toml-based projects

Thank you for providing the detailed log information.

  • We have pinpointed the issue at this specific location:
    "lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:384:44: error: no member named '__emplace_back' in 'std::vector<std::pair<int, double>>'; did you mean 'emplace_back'? disc_action_with_probs.__emplace_back(std::make_pair(iter, disturbed_probs[iter]));".

  • In the latest version of the clang compiler on Mac Pro, __emplace_back should be modified to emplace_back. Therefore, you need to remove the two preceding underscores in the variable at the position 'lzero/mcts/ctree/ctree_sampled_efficientzero/lib/cnode.cpp:384:44'.

After this modification, you should be able to compile and install normally. We sincerely apologize for any inconvenience caused during the compilation process. Best wishes.

I can confirm that it builds for me now. Thanks for the help!