cd football
PYTHONPATH=/home/ross/Projects/GRFL/football/build/lib.linux-x86_64-3.8/:/home/ross/Projects/GRFL/football/ python gfootball/eval_server/example_client.py --username <team name> --token <team token>
I0309 13:09:05.644010 140027944847104 remote_football_env.py:82] Error HTTP Error 404: Not Found, sleeping 10 secs
PYTHONPATH=/home/ross/Projects/GRFL/football/build/lib.linux-x86_64-3.8/:/home/ross/Projects/GRFL/football/ python gfootball/eval_server/example_client.py --username <team name> --token <team token> --track multiagent --how_many 1
Traceback (most recent call last):
File "gfootball/eval_server/example_client.py", line 105, in <module>
app.run(main)
File "/home/ross/miniconda2/envs/grfl/lib/python3.7/site-packages/absl/app.py", line 299, in run
_run_main(main, args)
File "/home/ross/miniconda2/envs/grfl/lib/python3.7/site-packages/absl/app.py", line 250, in _run_main
sys.exit(main(argv))
File "gfootball/eval_server/example_client.py", line 86, in main
include_rendering=FLAGS.render)
File "/home/ross/Projects/GRFL/football/build/lib.linux-x86_64-3.8/gfootball/env/__init__.py", line 234, in create_remote_environment
from gfootball.env import remote_football_env
File "/home/ross/Projects/GRFL/football/build/lib.linux-x86_64-3.8/gfootball/env/remote_football_env.py", line 22, in <module>
from gfootball.eval_server import config
ModuleNotFoundError: No module named 'gfootball.eval_server'
After many attempts and hours of troubleshooting, I have been unable to connect to the Google Research Football League servers to play teams online. My problems seem to be connected to how the football environment is installed on my machine. I've been following installation directions here:I will note that, due to other projects I work on, I am attempting to use a conda environment to manage dependencies.One of the major hurdles I have encountered is that the installation creates multiple different gfootball python packages, each with different functions, which seems to cause endless conflicts and import errors. Specifically, my install has gfootball packages located at:
- .../football/build/lib.linux-x86_64-3.8/gfootball/
- ...//football/gfootball/
- ~/.local/lib/python3.5/site-packages/gfootball/
Can anyone tell if I did something wrong during installation? How do others manage these seems conflicting package dependencies? Does anyone have examples they could share of how they kick off I've found some work-arounds using PYTHONPATH, but they are hacks and don't work for all cases.To give you an idea of the errors I am running into, if I try to start a league game on the default track, I get this error (team name and token removed):cd footballPYTHONPATH=/home/ross/Projects/GRFL/football/build/lib.linux-x86_64-3.8/:/home/ross/Projects/GRFL/football/python gfootball/eval_server/example_client.py --username <team name> --token <team token>
I0309 13:09:05.644010 140027944847104 remote_football_env.py:82] Error HTTP Error 404: Not Found, sleeping 10 secs
If instead I try to run a game on the multiagent track, I get the following:PYTHONPATH=/home/ross/Projects/GRFL/football/build/lib.linux-x86_64-3.8/:/home/ross/Projects/GRFL/football/ python gfootball/eval_server/example_client.py --username <team name> --token <team token> --track multiagent --how_many 1
Traceback (most recent call last):
File "gfootball/eval_server/example_client.py", line 105, in <module>
app.run(main)
File "/home/ross/miniconda2/envs/grfl/lib/python3.7/site-packages/absl/app.py", line 299, in run
_run_main(main, args)
File "/home/ross/miniconda2/envs/grfl/lib/python3.7/site-packages/absl/app.py", line 250, in _run_main
sys.exit(main(argv))
File "gfootball/eval_server/example_client.py", line 86, in main
include_rendering=FLAGS.render)
File "/home/ross/Projects/GRFL/football/build/lib.linux-x86_64-3.8/gfootball/env/__init__.py", line 234, in create_remote_environment
from gfootball.env import remote_football_env
File "/home/ross/Projects/GRFL/football/build/lib.linux-x86_64-3.8/gfootball/env/remote_football_env.py", line 22, in <module>
from gfootball.eval_server import config
ModuleNotFoundError: No module named 'gfootball.eval_server'
--Thank you!
You received this message because you are subscribed to the Google Groups "Google Research Football" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-research-fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-research-football/6c98d9d9-f9e6-4aff-9915-c47737456703%40googlegroups.com.
$ cd /home/ross/Projects/GRFL/football
$ PYTHONPATH=/home/ross/Projects/GRFL/football/build/lib.linux-x86_64-3.8/:/home/ross/Projects/GRFL/football/ python
>>> import gfootball
>>> print(gfootball.__file__)
/home/ross/Projects/GRFL/football/build/lib.linux-x86_64-3.8/gfootball/__init__.py
--
You received this message because you are subscribed to the Google Groups "Google Research Football" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-research-fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-research-football/e82e0f29-aa6b-4237-b0ad-5d416036b6f5%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Research Football" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-research-fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-research-football/4fb452c3-079f-4c3d-863d-b69aac542b5e%40googlegroups.com.