Issue when pip installing acc-app-optimisation in the virtual network
There is a bug when installing the deprecated gym package in the Technical Machine (virtual machine for CCC).
See also this commit from Francesco Velotti on another package: abt-optics-and-code-repository/commissioning-tools/cern-general-devices@c1695078
In the setup.py this line should be changed
"box2d": ["box2d-py==2.3.5", "pygame==2.1.0", "swig==4.*"],
to this
"box2d": ["box2d-py==2.3.5", "pygame==2.1.0", "swig==4.0"],
Error message:
Collecting gym>=0.17
Using cached http://acc-py-repo.cern.ch/repository/py-thirdparty-remote/packages/gym/0.21.0/gym-0.21.0.tar.gz (1.5 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
? exit code: 1
??> [1 lines of output]
error in gym setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
??> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.