Open xiezhipeng-git opened 1 year ago
same problem; but i download the “multi-agent-ale-py”package,and use the method“cd C:\Anaconda\envs\torch116\Lib\site-packages\Multi-Agent-ALE-master python setup.py install”. Finally ,i can import pettingzoo[all] but pettingzoo[atari]. Problem :
AttributeError Traceback (most recent call last) Input In [1], in <cell line: 1>() ----> 1 from pettingzoo.atari import space_invaders_v2 2 env = space_invaders_v2.env()
File C:\Anaconda\envs\torch116\lib\site-packages\pettingzoo-1.22.3-py3.9.egg\pettingzoo\atari\space_invaders_v2.py:1, in
File C:\Anaconda\envs\torch116\lib\site-packages\pettingzoo-1.22.3-py3.9.egg\pettingzoo\atari\space_invaders\space_invaders.py:81, in
File C:\Anaconda\envs\torch116\lib\site-packages\pettingzoo-1.22.3-py3.9.egg\pettingzoo\atari\base_atari_env.py:4, in
File C:\Anaconda\envs\torch116\lib\site-packages\multi_agent_ale_py-0.1.11-py3.9-win-amd64.egg\multi_agent_ale_py__init__.py:1, in
File C:\Anaconda\envs\torch116\lib\site-packages\multi_agent_ale_py-0.1.11-py3.9-win-amd64.egg\multi_agent_ale_py\ale_python_interface.py:43, in
File C:\Anaconda\envs\torch116\lib\ctypes__init.py:395, in CDLL.getattr(self, name) 393 if name.startswith('') and name.endswith(''): 394 raise AttributeError(name) --> 395 func = self.getitem__(name) 396 setattr(self, name, func) 397 return func
File C:\Anaconda\envs\torch116\lib\ctypes__init.py:400, in CDLL.getitem(self, name_or_ordinal) 399 def getitem__(self, name_or_ordinal): --> 400 func = self._FuncPtr((name_or_ordinal, self)) 401 if not isinstance(name_or_ordinal, int): 402 func.name = name_or_ordinal
AttributeError: function 'ALE_new' not found
Has anyone been able to successfully install on windows? @hanyuyingfd47 @xiezhipeng-git
Hi, I am facing the same problem as @xiezhipeng-git, has anybody been able to successfully install on windows?
@elliottower @[mikepratt1] I did not install successfully, and this project has not been updated for a long time. But there are no issues with the installation of pettingzoo
PS E:\study\machineStudy\project\rlFrame\rl_frame> pip install multi_agent_ale_py Looking in indexes: http://mirrors.aliyun.com/pypi/simple/ Collecting multi_agent_ale_py Downloading http://mirrors.aliyun.com/pypi/packages/8a/a1/92127ae8088e45a90a04c5a334db8ddac71815a968884b663bc53416cff6/multi-agent-ale-py-0.1.11.tar.gz (551 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 552.0/552.0 kB 84.8 kB/s eta 0:00:00 Preparing metadata (setup.py) ... done Requirement already satisfied: numpy in c:\users\hasee\appdata\local\programs\python\python-3.9.13\lib\site-packages (from multi_agent_ale_py) (1.24.1)Building wheels for collected packages: multi_agent_ale_py Building wheel for multi_agent_ale_py (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [106 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-39 creating build\lib.win-amd64-cpython-39\multi_agent_ale_py copying multi_agent_ale_py\ale_python_interface.py -> build\lib.win-amd64-cpython-39\multi_agent_ale_py copying multi_agent_ale_py__init__.py -> build\lib.win-amd64-cpython-39\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' C:\Users\hasee\AppData\Local\Programs\Python\python-3.9.13\lib\site-packages\setuptools\command\build_py.py:202: SetuptoolsDeprecationWarning:
Installing 'multi_agent_ale_py.tests.fixtures' as data is deprecated, please list it in
packages
. !!note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for multi_agent_ale_py Running setup.py clean for multi_agent_ale_py Failed to build multi_agent_ale_py Installing collected packages: multi_agent_ale_py Running setup.py install for multi_agent_ale_py ... error error: subprocess-exited-with-error
× Running setup.py install for multi_agent_ale_py did not run successfully. │ exit code: 1 ╰─> [110 lines of output] running install C:\Users\hasee\AppData\Local\Programs\Python\python-3.9.13\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build\lib.win-amd64-cpython-39 creating build\lib.win-amd64-cpython-39\multi_agent_ale_py copying multi_agent_ale_py\ale_python_interface.py -> build\lib.win-amd64-cpython-39\multi_agent_ale_py copying multi_agent_ale_py__init__.py -> build\lib.win-amd64-cpython-39\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' C:\Users\hasee\AppData\Local\Programs\Python\python-3.9.13\lib\site-packages\setuptools\command\build_py.py:202: SetuptoolsDeprecationWarning:
Installing 'multi_agent_ale_py.tests.fixtures' as data is deprecated, please list it in
packages
. !!note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure
× Encountered error while trying to install package. ╰─> multi_agent_ale_py
note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.