Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in installation #22

Open
Nafyaz opened this issue Oct 12, 2024 · 1 comment
Open

Error in installation #22

Nafyaz opened this issue Oct 12, 2024 · 1 comment

Comments

@Nafyaz
Copy link

Nafyaz commented Oct 12, 2024

I have been trying to install it with 'pip install multi-agent-ale-py' for the last 2 to 3 hours. Here is the full stacktrace. Please help

Collecting multi-agent-ale-py
Using cached multi-agent-ale-py-0.1.11.tar.gz (551 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /home/nafis/E/Virtual Environments/RL/lib/python3.12/site-packages (from multi-agent-ale-py) (1.26.4)
Building wheels for collected packages: multi-agent-ale-py
Building wheel for multi-agent-ale-py (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for multi-agent-ale-py (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [353 lines of output]
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-312/multi_agent_ale_py
copying multi_agent_ale_py/init.py -> build/lib.linux-x86_64-cpython-312/multi_agent_ale_py
copying multi_agent_ale_py/ale_python_interface.py -> build/lib.linux-x86_64-cpython-312/multi_agent_ale_py
running egg_info
writing multi_agent_ale_py.egg-info/PKG-INFO
writing dependency_links to multi_agent_ale_py.egg-info/dependency_links.txt
writing requirements to multi_agent_ale_py.egg-info/requires.txt
writing top-level names to multi_agent_ale_py.egg-info/top_level.txt
reading manifest file 'multi_agent_ale_py.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.md'
writing manifest file 'multi_agent_ale_py.egg-info/SOURCES.txt'
/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/command/build_py.py:218: _Warning: Package 'multi_agent_ale_py.tests.fixtures' is absent from the packages configuration.
!!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'multi_agent_ale_py.tests.fixtures' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.
  
          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'multi_agent_ale_py.tests.fixtures' is explicitly added
          to the `packages` configuration field.
  
          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).
  
          You can read more about "package discovery" on setuptools documentation page:
  
          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
  
          If you don't want 'multi_agent_ale_py.tests.fixtures' to be distributed and are
          already explicitly excluding 'multi_agent_ale_py.tests.fixtures' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.
  
          You can read more about "package data files" on setuptools documentation page:
  
          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
  
  
          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************
  
  !!
    check.warn(importable)
  copying multi_agent_ale_py/ale_c_wrapper.cpp -> build/lib.linux-x86_64-cpython-312/multi_agent_ale_py
  copying multi_agent_ale_py/ale_c_wrapper.h -> build/lib.linux-x86_64-cpython-312/multi_agent_ale_py
  creating build/lib.linux-x86_64-cpython-312/multi_agent_ale_py/tests/fixtures
  copying multi_agent_ale_py/tests/fixtures/tetris.bin -> build/lib.linux-x86_64-cpython-312/multi_agent_ale_py/tests/fixtures
  running build_ext
  -- The CXX compiler identification is GNU 13.2.0
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /usr/bin/c++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.3")
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
  -- Found Threads: TRUE
  -- Configuring done (0.2s)
  -- Generating done (0.0s)
  CMake Warning:
    Manually-specified variables were not used by the project:
  
      BUILD_CLI
      BUILD_EXAMPLES
      OUTPUT_NAME
      USE_RLGLUE
  
  
  -- Build files have been written to: /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/build/temp.linux-x86_64-cpython-312
  [  0%] Building CXX object src/CMakeFiles/ale.dir/common/ColourPalette.cpp.o
  [  1%] Building CXX object src/CMakeFiles/ale.dir/common/Constants.cpp.o
  [  1%] Building CXX object src/CMakeFiles/ale.dir/common/display_screen.cpp.o
  [  2%] Building CXX object src/CMakeFiles/ale.dir/common/Log.cpp.o
  [  2%] Building CXX object src/CMakeFiles/ale.dir/common/ScreenExporter.cpp.o
  [  3%] Building CXX object src/CMakeFiles/ale.dir/common/SoundExporter.cpp.o
  [  3%] Building CXX object src/CMakeFiles/ale.dir/common/SoundNull.cxx.o
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/common/SoundNull.cxx: In member function ‘virtual bool SoundNull::load(Deserializer&)’:
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/common/SoundNull.cxx:49:9: warning: variable ‘reg’ set but not used [-Wunused-but-set-variable]
     49 |   uInt8 reg;
        |         ^~~
  [  4%] Building CXX object src/CMakeFiles/ale.dir/common/SoundSDL.cxx.o
  [  4%] Building CXX object src/CMakeFiles/ale.dir/emucore/m6502/src/Device.cxx.o
  [  5%] Building CXX object src/CMakeFiles/ale.dir/emucore/m6502/src/M6502.cxx.o
  [  5%] Building CXX object src/CMakeFiles/ale.dir/emucore/m6502/src/M6502Hi.cxx.o
  In file included from /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/m6502/src/M6502Hi.cxx:155:
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/m6502/src/M6502Hi.ins: In member function ‘virtual bool M6502High::execute(uInt32)’:
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/m6502/src/M6502Hi.ins:2061:6: warning: operation on ‘((M6502High*)this)->M6502High::<anonymous>.M6502::PC’ may be undefined [-Wsequence-point]
   2061 |   PC = low | ((uInt16)peek(PC++) << 8);
        |   ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  [  6%] Building CXX object src/CMakeFiles/ale.dir/emucore/m6502/src/M6502Low.cxx.o
  In file included from /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/m6502/src/M6502Low.cxx:138:
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/m6502/src/M6502Low.ins: In member function ‘virtual bool M6502Low::execute(uInt32)’:
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/m6502/src/M6502Low.ins:2060:6: warning: operation on ‘((M6502Low*)this)->M6502Low::<anonymous>.M6502::PC’ may be undefined [-Wsequence-point]
   2060 |   PC = low | ((uInt16)peek(PC++) << 8);
        |   ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  [  7%] Building CXX object src/CMakeFiles/ale.dir/emucore/m6502/src/NullDev.cxx.o
  [  7%] Building CXX object src/CMakeFiles/ale.dir/emucore/m6502/src/System.cxx.o
  [  8%] Building CXX object src/CMakeFiles/ale.dir/emucore/AtariVox.cxx.o
  [  8%] Building CXX object src/CMakeFiles/ale.dir/emucore/Booster.cxx.o
  [  9%] Building CXX object src/CMakeFiles/ale.dir/emucore/Cart.cxx.o
  [  9%] Building CXX object src/CMakeFiles/ale.dir/emucore/Cart0840.cxx.o
  [ 10%] Building CXX object src/CMakeFiles/ale.dir/emucore/Cart2K.cxx.o
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/Cart2K.cxx: In member function ‘virtual void Cartridge2K::install(System&)’:
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/Cart2K.cxx:57:10: warning: unused variable ‘mask’ [-Wunused-variable]
     57 |   uInt16 mask = mySystem->pageMask();
        |          ^~~~
  [ 10%] Building CXX object src/CMakeFiles/ale.dir/emucore/Cart3E.cxx.o
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/Cart3E.cxx: In member function ‘virtual void Cartridge3E::install(System&)’:
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/Cart3E.cxx:73:10: warning: unused variable ‘mask’ [-Wunused-variable]
     73 |   uInt16 mask = mySystem->pageMask();
        |          ^~~~
  [ 11%] Building CXX object src/CMakeFiles/ale.dir/emucore/Cart3F.cxx.o
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/Cart3F.cxx: In member function ‘virtual void Cartridge3F::install(System&)’:
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/Cart3F.cxx:66:10: warning: unused variable ‘mask’ [-Wunused-variable]
     66 |   uInt16 mask = mySystem->pageMask();
        |          ^~~~
  [ 11%] Building CXX object src/CMakeFiles/ale.dir/emucore/Cart4A50.cxx.o
  [ 12%] Building CXX object src/CMakeFiles/ale.dir/emucore/Cart4K.cxx.o
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/Cart4K.cxx: In member function ‘virtual void Cartridge4K::install(System&)’:
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/Cart4K.cxx:58:10: warning: unused variable ‘mask’ [-Wunused-variable]
     58 |   uInt16 mask = mySystem->pageMask();
        |          ^~~~
  [ 13%] Building CXX object src/CMakeFiles/ale.dir/emucore/CartAR.cxx.o
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/CartAR.cxx: In member function ‘virtual void CartridgeAR::install(System&)’:
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/CartAR.cxx:94:10: warning: unused variable ‘mask’ [-Wunused-variable]
     94 |   uInt16 mask = mySystem->pageMask();
        |          ^~~~
  [ 13%] Building CXX object src/CMakeFiles/ale.dir/emucore/CartCV.cxx.o
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/CartCV.cxx: In member function ‘virtual void CartridgeCV::install(System&)’:
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/CartCV.cxx:87:10: warning: unused variable ‘mask’ [-Wunused-variable]
     87 |   uInt16 mask = mySystem->pageMask();
        |          ^~~~
  [ 14%] Building CXX object src/CMakeFiles/ale.dir/emucore/CartDPC.cxx.o
  [ 14%] Building CXX object src/CMakeFiles/ale.dir/emucore/CartE0.cxx.o
  [ 15%] Building CXX object src/CMakeFiles/ale.dir/emucore/CartE7.cxx.o
  [ 15%] Building CXX object src/CMakeFiles/ale.dir/emucore/CartF4.cxx.o
  [ 16%] Building CXX object src/CMakeFiles/ale.dir/emucore/CartF4SC.cxx.o
  [ 16%] Building CXX object src/CMakeFiles/ale.dir/emucore/CartF6.cxx.o
  [ 17%] Building CXX object src/CMakeFiles/ale.dir/emucore/CartF6SC.cxx.o
  [ 17%] Building CXX object src/CMakeFiles/ale.dir/emucore/CartF8.cxx.o
  [ 18%] Building CXX object src/CMakeFiles/ale.dir/emucore/CartF8SC.cxx.o
  [ 19%] Building CXX object src/CMakeFiles/ale.dir/emucore/CartFASC.cxx.o
  [ 19%] Building CXX object src/CMakeFiles/ale.dir/emucore/CartFE.cxx.o
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/CartFE.cxx: In member function ‘virtual void CartridgeFE::install(System&)’:
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/CartFE.cxx:58:10: warning: unused variable ‘mask’ [-Wunused-variable]
     58 |   uInt16 mask = mySystem->pageMask();
        |          ^~~~
  [ 20%] Building CXX object src/CMakeFiles/ale.dir/emucore/CartMB.cxx.o
  [ 20%] Building CXX object src/CMakeFiles/ale.dir/emucore/CartMC.cxx.o
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/CartMC.cxx: In member function ‘virtual void CartridgeMC::install(System&)’:
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/CartMC.cxx:85:10: warning: unused variable ‘mask’ [-Wunused-variable]
     85 |   uInt16 mask = mySystem->pageMask();
        |          ^~~~
  [ 21%] Building CXX object src/CMakeFiles/ale.dir/emucore/CartUA.cxx.o
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/CartUA.cxx: In member function ‘virtual void CartridgeUA::install(System&)’:
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/CartUA.cxx:60:10: warning: unused variable ‘mask’ [-Wunused-variable]
     60 |   uInt16 mask = mySystem->pageMask();
        |          ^~~~
  [ 21%] Building CXX object src/CMakeFiles/ale.dir/emucore/Console.cxx.o
  [ 22%] Building CXX object src/CMakeFiles/ale.dir/emucore/Control.cxx.o
  [ 22%] Building CXX object src/CMakeFiles/ale.dir/emucore/Deserializer.cxx.o
  [ 23%] Building CXX object src/CMakeFiles/ale.dir/emucore/Driving.cxx.o
  [ 23%] Building CXX object src/CMakeFiles/ale.dir/emucore/Event.cxx.o
  [ 24%] Building CXX object src/CMakeFiles/ale.dir/emucore/FSNode.cxx.o
  [ 25%] Building CXX object src/CMakeFiles/ale.dir/emucore/Joystick.cxx.o
  [ 25%] Building CXX object src/CMakeFiles/ale.dir/emucore/Keyboard.cxx.o
  [ 26%] Building CXX object src/CMakeFiles/ale.dir/emucore/M6532.cxx.o
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/M6532.cxx: In member function ‘virtual void M6532::install(System&)’:
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/emucore/M6532.cxx:87:10: warning: unused variable ‘mask’ [-Wunused-variable]
     87 |   uInt16 mask = mySystem->pageMask();
        |          ^~~~
  [ 26%] Building CXX object src/CMakeFiles/ale.dir/emucore/MD5.cxx.o
  [ 27%] Building CXX object src/CMakeFiles/ale.dir/emucore/MediaSrc.cxx.o
  [ 27%] Building CXX object src/CMakeFiles/ale.dir/emucore/OSystem.cxx.o
  [ 28%] Building CXX object src/CMakeFiles/ale.dir/emucore/Paddles.cxx.o
  [ 28%] Building CXX object src/CMakeFiles/ale.dir/emucore/Props.cxx.o
  [ 29%] Building CXX object src/CMakeFiles/ale.dir/emucore/PropsSet.cxx.o
  [ 29%] Building CXX object src/CMakeFiles/ale.dir/emucore/Random.cxx.o
  [ 30%] Building CXX object src/CMakeFiles/ale.dir/emucore/Serializer.cxx.o
  [ 30%] Building CXX object src/CMakeFiles/ale.dir/emucore/Settings.cxx.o
  [ 31%] Building CXX object src/CMakeFiles/ale.dir/emucore/SpeakJet.cxx.o
  [ 32%] Building CXX object src/CMakeFiles/ale.dir/emucore/Switches.cxx.o
  [ 32%] Building CXX object src/CMakeFiles/ale.dir/emucore/TIA.cxx.o
  [ 33%] Building CXX object src/CMakeFiles/ale.dir/emucore/TIASnd.cxx.o
  [ 33%] Building CXX object src/CMakeFiles/ale.dir/os_dependent/FSNodePOSIX.cxx.o
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/os_dependent/FSNodePOSIX.cxx: In constructor ‘POSIXFilesystemNode::POSIXFilesystemNode()’:
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/os_dependent/FSNodePOSIX.cxx:102:9: warning: ignoring return value of ‘char* getcwd(char*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    102 |   getcwd(buf, MAXPATHLEN);
        |   ~~~~~~^~~~~~~~~~~~~~~~~
  [ 34%] Building CXX object src/CMakeFiles/ale.dir/os_dependent/OSystemUNIX.cxx.o
  [ 34%] Building CXX object src/CMakeFiles/ale.dir/os_dependent/SettingsUNIX.cxx.o
  [ 35%] Building CXX object src/CMakeFiles/ale.dir/environment/ale_state.cpp.o
  [ 35%] Building CXX object src/CMakeFiles/ale.dir/environment/phosphor_blend.cpp.o
  [ 36%] Building CXX object src/CMakeFiles/ale.dir/environment/stella_environment.cpp.o
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/environment/stella_environment.cpp: In member function ‘std::vector<int> ale::StellaEnvironment::act(std::vector<ale::Action>)’:
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/environment/stella_environment.cpp:168:12: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<ale::Action>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
    168 |       if(i < actions.size()){
        |          ~~^~~~~~~~~~~~~~~~
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/environment/stella_environment.cpp: In member function ‘void ale::StellaEnvironment::emulate(std::vector<ale::Action>, size_t)’:
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/environment/stella_environment.cpp:263:14: warning: unused variable ‘a’ [-Wunused-variable]
    263 |   for(Action a  : actions){
        |              ^
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/environment/stella_environment.cpp:273:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<ale::Action>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
    273 |       for(int p = 0; p < actions.size(); p++){
        |                      ~~^~~~~~~~~~~~~~~~
  [ 36%] Building CXX object src/CMakeFiles/ale.dir/environment/stella_environment_wrapper.cpp.o
  [ 37%] Building CXX object src/CMakeFiles/ale.dir/games/supported/Adventure.cpp.o
  [ 38%] Building CXX object src/CMakeFiles/ale.dir/games/supported/AirRaid.cpp.o
  [ 38%] Building CXX object src/CMakeFiles/ale.dir/games/supported/Alien.cpp.o
  [ 39%] Building CXX object src/CMakeFiles/ale.dir/games/supported/Amidar.cpp.o
  [ 39%] Building CXX object src/CMakeFiles/ale.dir/games/supported/Assault.cpp.o
  [ 40%] Building CXX object src/CMakeFiles/ale.dir/games/supported/Asterix.cpp.o
  [ 40%] Building CXX object src/CMakeFiles/ale.dir/games/supported/Asteroids.cpp.o
  [ 41%] Building CXX object src/CMakeFiles/ale.dir/games/supported/Atlantis.cpp.o
  [ 41%] Building CXX object src/CMakeFiles/ale.dir/games/supported/Atlantis2.cpp.o
  [ 42%] Building CXX object src/CMakeFiles/ale.dir/games/supported/Backgammon.cpp.o
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/games/supported/Backgammon.cpp:34:6: error: ‘int8_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
     34 | std::int8_t readPieces(const System* system, int offset) {
        |      ^~~~~~
        |      wint_t
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/games/supported/Backgammon.cpp: In member function ‘virtual void ale::BackgammonSettings::step(const System&)’:
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/games/supported/Backgammon.cpp:79:8: error: ‘int8_t’ is not a member of ‘std’; did you mean ‘wint_t’?
     79 |   std::int8_t num_player_pieces_out = -readPieces(&system, 0x80);
        |        ^~~~~~
        |        wint_t
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/games/supported/Backgammon.cpp:80:8: error: ‘int8_t’ is not a member of ‘std’; did you mean ‘wint_t’?
     80 |   std::int8_t num_computer_pieces_out = readPieces(&system, 0x8E);
        |        ^~~~~~
        |        wint_t
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/games/supported/Backgammon.cpp:82:8: error: ‘int8_t’ is not a member of ‘std’; did you mean ‘wint_t’?
     82 |   std::int8_t num_player_pieces_in = 0;
        |        ^~~~~~
        |        wint_t
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/games/supported/Backgammon.cpp:83:8: error: ‘int8_t’ is not a member of ‘std’; did you mean ‘wint_t’?
     83 |   std::int8_t num_computer_pieces_in = 0;
        |        ^~~~~~
        |        wint_t
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/games/supported/Backgammon.cpp:88:10: error: ‘int8_t’ is not a member of ‘std’; did you mean ‘wint_t’?
     88 |     std::int8_t pieces = readPieces(&system, address);
        |          ^~~~~~
        |          wint_t
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/games/supported/Backgammon.cpp:89:9: error: ‘pieces’ was not declared in this scope
     89 |     if (pieces > 0) {
        |         ^~~~~~
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/games/supported/Backgammon.cpp:90:7: error: ‘num_computer_pieces_in’ was not declared in this scope
     90 |       num_computer_pieces_in += pieces;
        |       ^~~~~~~~~~~~~~~~~~~~~~
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/games/supported/Backgammon.cpp:92:7: error: ‘num_player_pieces_in’ was not declared in this scope
     92 |       num_player_pieces_in += -pieces;
        |       ^~~~~~~~~~~~~~~~~~~~
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/games/supported/Backgammon.cpp:96:10: error: ‘int8_t’ is not a member of ‘std’; did you mean ‘wint_t’?
     96 |     std::int8_t pieces = readPieces(&system, address);
        |          ^~~~~~
        |          wint_t
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/games/supported/Backgammon.cpp:97:9: error: ‘pieces’ was not declared in this scope
     97 |     if (pieces > 0) {
        |         ^~~~~~
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/games/supported/Backgammon.cpp:98:7: error: ‘num_computer_pieces_in’ was not declared in this scope
     98 |       num_computer_pieces_in += pieces;
        |       ^~~~~~~~~~~~~~~~~~~~~~
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/games/supported/Backgammon.cpp:100:7: error: ‘num_player_pieces_in’ was not declared in this scope
    100 |       num_player_pieces_in += -pieces;
        |       ^~~~~~~~~~~~~~~~~~~~
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/games/supported/Backgammon.cpp:105:20: error: ‘num_computer_pieces_in’ was not declared in this scope
    105 |   bool is_valid = (num_computer_pieces_in + num_computer_pieces_out == 15 &&
        |                    ^~~~~~~~~~~~~~~~~~~~~~
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/games/supported/Backgammon.cpp:105:45: error: ‘num_computer_pieces_out’ was not declared in this scope
    105 |   bool is_valid = (num_computer_pieces_in + num_computer_pieces_out == 15 &&
        |                                             ^~~~~~~~~~~~~~~~~~~~~~~
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/games/supported/Backgammon.cpp:106:20: error: ‘num_player_pieces_in’ was not declared in this scope
    106 |                    num_player_pieces_in + num_player_pieces_out == 15);
        |                    ^~~~~~~~~~~~~~~~~~~~
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/games/supported/Backgammon.cpp:106:43: error: ‘num_player_pieces_out’ was not declared in this scope
    106 |                    num_player_pieces_in + num_player_pieces_out == 15);
        |                                           ^~~~~~~~~~~~~~~~~~~~~
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/games/supported/Backgammon.cpp: In member function ‘virtual void ale::BackgammonSettings::setMode(ale::game_mode_t, System&, std::unique_ptr<ale::StellaEnvironmentWrapper>)’:
  /tmp/pip-install-5hipknyp/multi-agent-ale-py_e236c8506cc74b5284a4de1f41358318/src/games/supported/Backgammon.cpp:174:33: warning: comparison of integer expressions of different signedness: ‘int’ and ‘ale::game_mode_t’ {aka ‘unsigned int’} [-Wsign-compare]
    174 |   while (readRam(&system, 0xDC) != m) { environment->pressSelect(1); }
        |          ~~~~~~~~~~~~~~~~~~~~~~~^~~~
  gmake[2]: *** [src/CMakeFiles/ale.dir/build.make:1154: src/CMakeFiles/ale.dir/games/supported/Backgammon.cpp.o] Error 1
  gmake[1]: *** [CMakeFiles/Makefile2:234: src/CMakeFiles/ale.dir/all] Error 2
  gmake: *** [Makefile:136: all] Error 2
  Traceback (most recent call last):
    File "/home/nafis/E/Virtual Environments/RL/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
    File "/home/nafis/E/Virtual Environments/RL/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/nafis/E/Virtual Environments/RL/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 421, in build_wheel
      return self._build_with_temp_dir(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 403, in _build_with_temp_dir
      self.run_setup()
    File "/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 503, in run_setup
      super().run_setup(setup_script=setup_script)
    File "/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 318, in run_setup
      exec(code, locals())
    File "<string>", line 136, in <module>
    File "/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/__init__.py", line 117, in setup
      return distutils.core.setup(**attrs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 183, in setup
      return run_commands(dist)
             ^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 199, in run_commands
      dist.run_commands()
    File "/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
      self.run_command(cmd)
    File "/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 950, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/command/bdist_wheel.py", line 398, in run
      self.run_command("build")
    File "/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 950, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 950, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/command/build_ext.py", line 98, in run
      _build_ext.run(self)
    File "/tmp/pip-build-env-eyfq0xgn/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
      self.build_extensions()
    File "<string>", line 71, in build_extensions
    File "/usr/lib/python3.12/subprocess.py", line 413, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['cmake', '--build', '.']' returned non-zero exit status 2.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for multi-agent-ale-py
Failed to build multi-agent-ale-py
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (multi-agent-ale-py)

@liuzhaoze
Copy link

Try to install multi-agent-ale manually:

git clone --depth=1 https://github.com/Farama-Foundation/Multi-Agent-ALE.git
cd ./Multi-Agent-ALE
python setup.py install

Make sure you have installed build tools:

apt install cmake swig zlib1g-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants