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

Mac Issue while trying to play the game. #51

Open
burhanusman opened this issue Oct 14, 2020 · 0 comments
Open

Mac Issue while trying to play the game. #51

burhanusman opened this issue Oct 14, 2020 · 0 comments

Comments

@burhanusman
Copy link

burhanusman commented Oct 14, 2020

I'm trying to run this command python3 -m gfootball.play_game --action_set=full

But getting this error. Any help is appreciated.
Docker doesn't work either (seems like it doesn't support rendering)

(football-env) (base) bkv004@US_C02Z68PJLVCG football % pip3 install --process-dependency-links .
Processing /Users/bkv004/Documents/Projects/Kaggle/Google Football/football
DEPRECATION: Dependency Links processing has been deprecated and will be removed in a future release. You can find discussion regarding this at https://github.com/pypa/pip/issues/4187.
Requirement already satisfied: pygame==1.9.6 in ./football-env/lib/python3.8/site-packages (from gfootball==2.6) (1.9.6)
Requirement already satisfied: opencv-python in ./football-env/lib/python3.8/site-packages (from gfootball==2.6) (4.4.0.44)
Requirement already satisfied: scipy in ./football-env/lib/python3.8/site-packages (from gfootball==2.6) (1.5.2)
Requirement already satisfied: gym>=0.11.0 in ./football-env/lib/python3.8/site-packages (from gfootball==2.6) (0.17.3)
Requirement already satisfied: absl-py in ./football-env/lib/python3.8/site-packages (from gfootball==2.6) (0.10.0)
Requirement already satisfied: wheel in ./football-env/lib/python3.8/site-packages (from gfootball==2.6) (0.35.1)
Requirement already satisfied: numpy>=1.17.3 in ./football-env/lib/python3.8/site-packages (from opencv-python->gfootball==2.6) (1.19.2)
Requirement already satisfied: pyglet<=1.5.0,>=1.4.0 in ./football-env/lib/python3.8/site-packages (from gym>=0.11.0->gfootball==2.6) (1.5.0)
Requirement already satisfied: cloudpickle<1.7.0,>=1.2.0 in ./football-env/lib/python3.8/site-packages (from gym>=0.11.0->gfootball==2.6) (1.6.0)
Requirement already satisfied: six in ./football-env/lib/python3.8/site-packages (from absl-py->gfootball==2.6) (1.15.0)
Requirement already satisfied: future in ./football-env/lib/python3.8/site-packages (from pyglet<=1.5.0,>=1.4.0->gym>=0.11.0->gfootball==2.6) (0.18.2)
Building wheels for collected packages: gfootball
  Running setup.py bdist_wheel for gfootball ... done
  Stored in directory: /private/var/folders/2w/dc7w5mj5445b8k0rqrykgdcm0000gp/T/pip-ephem-wheel-cache-fnef2dse/wheels/64/66/49/f91e68da87d9e3a7d06de3d4765f5a5865acf5fea45bf3b57b
Successfully built gfootball
Installing collected packages: gfootball
  Found existing installation: gfootball 2.6
    Uninstalling gfootball-2.6:
      Successfully uninstalled gfootball-2.6
Successfully installed gfootball-2.6
You are using pip version 18.0, however version 20.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(football-env) (base) bkv004@US_C02Z68PJLVCG football % python3 -m gfootball.play_game --action_set=full

WARNING:root:Looks like game engine is not compiled, please run:
WARNING:root:  pushd /Users/bkv004/Documents/Projects/Kaggle/Google Football/football/football-env/lib/python3.8/site-packages/gfootball_engine && cmake . && make -j `nproc` && popd
WARNING:root:  pushd /Users/bkv004/Documents/Projects/Kaggle/Google Football/football/football-env/lib/python3.8/site-packages/gfootball_engine && ln -s libgame.so _gameplayfootball.so && popd
Traceback (most recent call last):
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 185, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 111, in _get_module_details
    __import__(pkg_name)
  File "/Users/bkv004/Documents/Projects/Kaggle/Google Football/football/gfootball/__init__.py", line 17, in <module>
    from gfootball.env import scenario_builder
  File "/Users/bkv004/Documents/Projects/Kaggle/Google Football/football/gfootball/env/__init__.py", line 21, in <module>
    from gfootball.env import config
  File "/Users/bkv004/Documents/Projects/Kaggle/Google Football/football/gfootball/env/config.py", line 24, in <module>
    import gfootball_engine as libgame
  File "/Users/bkv004/Documents/Projects/Kaggle/Google Football/football/football-env/lib/python3.8/site-packages/gfootball_engine/__init__.py", line 39, in <module>
    from _gameplayfootball import *
ImportError: dlopen(/Users/bkv004/Documents/Projects/Kaggle/Google Football/football/football-env/lib/python3.8/site-packages/gfootball_engine/_gameplayfootball.so, 2): no suitable image found.  Did find:
	/Users/bkv004/Documents/Projects/Kaggle/Google Football/football/football-env/lib/python3.8/site-packages/gfootball_engine/_gameplayfootball.so: mmap() errno=5 at address=0x107BC7000, size=0x00164000 segment=__TEXT in Segment::map() mapping /Users/bkv004/Documents/Projects/Kaggle/Google Football/football/football-env/lib/python3.8/site-packages/gfootball_engine/_gameplayfootball.so
(football-env) (base) bkv004@US_C02Z68PJLVCG football % 
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

1 participant