Как мне запустить пример MADDPG из AgileRL? [закрыто]Linux

Ответить
Anonymous
 Как мне запустить пример MADDPG из AgileRL? [закрыто]

Сообщение Anonymous »

Как запустить пример MADDPG в Fedora 43? Я получаю эту ошибку C++ при использовании зависимости multi_agent_ale.py (с использованием pip), потому что он хочет использовать C++17 (я думаю, потому что есть ошибка std::int8_t, которая говорит: «вы имели в виду wint_8») и по умолчанию в Fedora используется C++20.
Я пробовал использовать контейнер (podman), но ошибки все равно выскакивали (ubuntu, python 3.11.4 и gcc 13) - не одинаковые, а разные, поэтому я вообще не могу его запустить.
Ошибка при запуске контейнера (код отредактирован ниже):
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
╰─> [358 lines of output]
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-311/multi_agent_ale_py
copying multi_agent_ale_py/__init__.py -> build/lib.linux-x86_64-cpython-311/multi_agent_ale_py
copying multi_agent_ale_py/ale_python_interface.py -> build/lib.linux-x86_64-cpython-311/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-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/command/build_py.py:215: _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/us ... overy.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/us ... files.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-311/multi_agent_ale_py
copying multi_agent_ale_py/ale_c_wrapper.h -> build/lib.linux-x86_64-cpython-311/multi_agent_ale_py
creating build/lib.linux-x86_64-cpython-311/multi_agent_ale_py/tests/fixtures
copying multi_agent_ale_py/tests/fixtures/tetris.bin -> build/lib.linux-x86_64-cpython-311/multi_agent_ale_py/tests/fixtures
running build_ext
-- The CXX compiler identification is GNU 13.1.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.2.11")
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Configuring done
-- Generating done
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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/build/temp.linux-x86_64-cpython-311
...
[ 3%] Building CXX object src/CMakeFiles/ale.dir/common/SoundNull.cxx.o
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/common/SoundNull.cxx: In member function ‘virtual bool SoundNull::load(Deserializer&)’:
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/common/SoundNull.cxx:49:9: warning: variable ‘reg’ set but not used [-Wunused-but-set-variable]
49 | uInt8 reg;
| ^~~
...
[ 5%] Building CXX object src/CMakeFiles/ale.dir/emucore/m6502/src/M6502Hi.cxx.o
In file included from /tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/emucore/m6502/src/M6502Hi.cxx:155:
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/emucore/m6502/src/M6502Hi.ins: In member function ‘virtual bool M6502High::execute(uInt32)’:
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/emucore/m6502/src/M6502Hi.ins:2061:6: warning: operation on ‘((M6502High*)this)->M6502High::.M6502::PC’ may be undefined [-Wsequence-point]
2061 | PC = low | ((uInt16)peek(PC++) M6502Low::.M6502::PC’ may be undefined [-Wsequence-point]
2060 | PC = low | ((uInt16)peek(PC++) pageMask();
| ^~~~
[ 10%] Building CXX object src/CMakeFiles/ale.dir/emucore/Cart3E.cxx.o
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/emucore/Cart3E.cxx: In member function ‘virtual void Cartridge3E::install(System&)’:
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/emucore/Cart3F.cxx: In member function ‘virtual void Cartridge3F::install(System&)’:
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/emucore/Cart4K.cxx: In member function ‘virtual void Cartridge4K::install(System&)’:
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/emucore/CartAR.cxx: In member function ‘virtual void CartridgeAR::install(System&)’:
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/emucore/CartCV.cxx: In member function ‘virtual void CartridgeCV::install(System&)’:
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/emucore/CartCV.cxx:87:10: warning: unused variable ‘mask’ [-Wunused-variable]
87 | uInt16 mask = mySystem->pageMask();
| ^~~~
...
[ 19%] Building CXX object src/CMakeFiles/ale.dir/emucore/CartFE.cxx.o
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/emucore/CartFE.cxx: In member function ‘virtual void CartridgeFE::install(System&)’:
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/emucore/CartMC.cxx: In member function ‘virtual void CartridgeMC::install(System&)’:
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/emucore/CartUA.cxx: In member function ‘virtual void CartridgeUA::install(System&)’:
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/emucore/CartUA.cxx:60:10: warning: unused variable ‘mask’ [-Wunused-variable]
60 | uInt16 mask = mySystem->pageMask();
| ^~~~
...
[ 26%] Building CXX object src/CMakeFiles/ale.dir/emucore/M6532.cxx.o
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/emucore/M6532.cxx: In member function ‘virtual void M6532::install(System&)’:
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/emucore/M6532.cxx:87:10: warning: unused variable ‘mask’ [-Wunused-variable]
87 | uInt16 mask = mySystem->pageMask();
| ^~~~
...
[ 33%] Building CXX object src/CMakeFiles/ale.dir/os_dependent/FSNodePOSIX.cxx.o
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/os_dependent/FSNodePOSIX.cxx: In constructor ‘POSIXFilesystemNode::POSIXFilesystemNode()’:
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/environment/stella_environment.cpp: In member function ‘std::vector ale::StellaEnvironment::act(std::vector)’:
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/environment/stella_environment.cpp:168:12: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
168 | if(i < actions.size()){
| ~~^~~~~~~~~~~~~~~~
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/environment/stella_environment.cpp: In member function ‘void ale::StellaEnvironment::emulate(std::vector, size_t)’:
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/environment/stella_environment.cpp:263:14: warning: unused variable ‘a’ [-Wunused-variable]
263 | for(Action a : actions){
| ^
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/environment/stella_environment.cpp:273:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector::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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/games/supported/Backgammon.cpp: In member function ‘virtual void ale::BackgammonSettings::step(const System&)’:
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/games/supported/Backgammon.cpp:89:9: error: ‘pieces’ was not declared in this scope
89 | if (pieces > 0) {
| ^~~~~~
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/games/supported/Backgammon.cpp:97:9: error: ‘pieces’ was not declared in this scope
97 | if (pieces > 0) {
| ^~~~~~
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/src/games/supported/Backgammon.cpp: In member function ‘virtual void ale::BackgammonSettings::setMode(ale::game_mode_t, System&, std::unique_ptr)’:
/tmp/pip-install-9q9mzqtz/multi-agent-ale-py_d560a80ef9fc43a28cbe78f055ba2532/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 "/usr/local/lib/python3.11/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in
main()
File "/usr/local/lib/python3.11/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 280, in build_wheel
return _build_backend().build_wheel(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 439, in build_wheel
return _build(['bdist_wheel', '--dist-info-dir', str(metadata_directory)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 427, in _build
return self._build_with_temp_dir(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 408, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 518, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
File "", line 136, in
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/__init__.py", line 117, in setup
return distutils.core.setup(**attrs) # type: ignore[return-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/core.py", line 186, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/core.py", line 202, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/dist.py", line 1107, in run_command
super().run_command(command)
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 1021, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/command/bdist_wheel.py", line 370, in run
self.run_command("build")
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/cmd.py", line 357, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/dist.py", line 1107, in run_command
super().run_command(command)
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 1021, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/cmd.py", line 357, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/dist.py", line 1107, in run_command
super().run_command(command)
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/dist.py", line 1021, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/command/build_ext.py", line 97, in run
_build_ext.run(self)
File "/tmp/pip-build-env-32wrgg23/overlay/local/lib/python3.11/dist-packages/setuptools/_distutils/command/build_ext.py", line 368, in run
self.build_extensions()
File "", line 71, in build_extensions
File "/usr/lib/python3.11/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: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> multi_agent_ale_py

кто-нибудь знает, в чем могут быть проблемы?
Это DockerFile, который я использовал:
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /workspace

# ---- system deps ----
RUN apt-get update && apt-get install -y \
software-properties-common \
ca-certificates \
curl \
build-essential \
&& rm -rf /var/lib/apt/lists/*

# ---- toolchains ----
RUN add-apt-repository ppa:ubuntu-toolchain-r/test && \
add-apt-repository ppa:deadsnakes/ppa

RUN apt-get update && apt-get install -y \
gcc-13 \
g++-13 \
cmake \
git \
python3.11 \
python3.11-dev \
python3-pip \
&& rm -rf /var/lib/apt/lists/*

RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 100 && \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 100

RUN ln -sf /usr/bin/python3.11 /usr/bin/python && \
ln -sf /usr/bin/python3.11 /usr/bin/python3

RUN python -m pip install --upgrade pip

# ---- install Python deps ----
COPY pyproject.toml ./
RUN pip install --no-cache-dir .

# ---- copy source ----
COPY src ./src

# Make src importable
ENV PYTHONPATH=/workspace/src

CMD ["/bin/bash"]

Со структурой каталогов:
container/
|
- Dockerfile
src/
|
----package/
|
----test/
|
----file.py // that I run in container (same code as the one on AgileRL docs)


Подробнее здесь: https://stackoverflow.com/questions/798 ... om-agilerl
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Linux»