Comments (9)
Newer version of pip did not support dependency links.
You can install baseline 0.1.6 manually.
git clone https://github.com/openai/baselines.git
cd baselines
pip install -e .
from football.
It can also be solved by downgrading pip
to 18.1
.
from football.
Here's the longer description of the issue: maybe someone from the community could help us solve it better (as I'm far from the pip/setup.py expert :-)
- Our code depends on openai/baselines library.
- That library is available in pypi, but is very old (> 1 year old) - version 0.1.5
- We depend on the features that were added more recently.
Therefore, in order to use the football library, the user must have installed the openAI baselines FROM github and not from pypi.
Now, our problem is: how to do it in the best way:
- just depending on the "baselines" in setup.py doesn't work (pip will download the old 0.1.5 version from pypi)
- we've added the dependency_links section (which seems to work in pip < 18), but this forced us to introduce the "fake" 0.1.6 dependency - so that we're sure that system takes the contents from the dependency_link part (rather than from pypi)
- for pip > 18 - seems that you can specify the "baselines @ git+git:XXX" which should download it from github. Unfortunately the earlier versions of pip don't understand that notion (and they would happily install the old 0.1.5 from pypi).
Any ideas for a better solution that could work across multiple pypi versions ?
from football.
one good (step towards a?) solution would be to ask openai to update their version on pypi.
from football.
Good news - openAI has increased their version in github repo to 0.1.6.
So people who install from github, should see the correct version now.
from football.
We just pushed a new release, process-dependency-links is not used anymore.
from football.
from football.
This issue is due to Python version, between Python 3.5 and Python 3.6 there was a change in pkgutil API which we use:
https://docs.python.org/3.6/library/pkgutil.html#pkgutil.iter_modules
https://docs.python.org/3.5/library/pkgutil.html#pkgutil.iter_modules
You can work around it by changing
return [m.name for m in pkgutil.iter_modules([path])]
to:
return [m[2] for m in pkgutil.iter_modules([path])]
In gfootball/env/scenario_builder.py
from football.
I have just pushed a new version with the workaround to the problem, so alternatively you can just sync to head.
from football.
Related Issues (20)
- Running problem
- How can solve RuntimeError: Dynamic linking causes SDL downgrade! (compiled with version 2.28.3, linked to 2.0.16)? HOT 1
- ImportError: /../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found HOT 3
- Rendering frame by frame (Headless: on a server without desktop)
- error: subprocess-exited-with-error python setup.py egg_info did not run successfully.
- Saving replay by rendering failed
- Football
- Football dates
- ImportError: /lib/x86_64-linux-gnu/libwayland-client.so.0: undefined symbol: ffi_type_uint32, version LIBFFI_BASE_7.0 HOT 2
- Colab example HOT 1
- working on small issues
- Error on colab
- Error: signal 11: HOT 2
- Compatibility with Pettingzoo
- Request for gfootball Installation Guide on Red Hat Linux
- Football game
- Football game
- Fotbal
- RuntimeError: This class cannot be instantiated from Python
- Example execution error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from football.