openai / gym-soccer

303 stars 172 forks source link

ERROR: Failed building wheel for hfo-py #14

Open hxhebit opened 3 years ago

hxhebit commented 3 years ago

I ran these codes:!pip install -e git+https://github.com/cycraig/gym-soccer#egg=gym_soccer in Google Colab here is an error: `Obtaining gym_soccer from git+https://github.com/cycraig/gym-soccer#egg=gym_soccer Updating ./src/gym-soccer clone Running command git fetch -q --tags Running command git reset --hard -q a65f514290b0bdd58ba0d9b542316bc9d55bba14 Requirement already satisfied: gym>=0.2.3 in /usr/local/lib/python3.6/dist-packages (from gym_soccer) (0.17.3) Collecting hfo_py>=0.2 Using cached https://files.pythonhosted.org/packages/d8/b7/fce181f43b01e3908b70bc2eabd5fa271e89ade5b1a492682af9706b6412/hfo-py-0.2.tar.gz Requirement already satisfied: pyglet<=1.5.0,>=1.4.0 in /usr/local/lib/python3.6/dist-packages (from gym>=0.2.3->gym_soccer) (1.5.0) Requirement already satisfied: scipy in /usr/local/lib/python3.6/dist-packages (from gym>=0.2.3->gym_soccer) (1.4.1) Requirement already satisfied: cloudpickle<1.7.0,>=1.2.0 in /usr/local/lib/python3.6/dist-packages (from gym>=0.2.3->gym_soccer) (1.3.0) Requirement already satisfied: numpy>=1.10.4 in /usr/local/lib/python3.6/dist-packages (from gym>=0.2.3->gym_soccer) (1.19.4) Requirement already satisfied: future in /usr/local/lib/python3.6/dist-packages (from pyglet<=1.5.0,>=1.4.0->gym>=0.2.3->gym_soccer) (0.16.0) Building wheels for collected packages: hfo-py Building wheel for hfo-py (setup.py) ... error ERROR: Failed building wheel for hfo-py Running setup.py clean for hfo-py Failed to build hfo-py Installing collected packages: hfo-py, gym-soccer Running setup.py install for hfo-py ... error ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tfehppeh/hfo-py/setup.py'"'"'; file='"'"'/tmp/pip-install-tfehppeh/hfo-py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-k3q4wtvg/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

`

Stefan2016 commented 3 years ago

Same issue here.

qweasdzxc1233133 commented 3 years ago

I have fixed it. Just need to install the essential packages.You can find them from the original HFO program.

wanguangxi commented 2 years ago

I have the same problem, How to fixed?

Always1172 commented 6 months ago

Try this repo https://github.com/mhauskn/hfo-py.git