Git Product home page Git Product logo

Comments (9)

gumush avatar gumush commented on September 22, 2024 1

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.

TianhongDai avatar TianhongDai commented on September 22, 2024

It can also be solved by downgrading pip to 18.1.

from football.

cyfra avatar cyfra commented on September 22, 2024

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.

nczempin avatar nczempin commented on September 22, 2024

one good (step towards a?) solution would be to ask openai to update their version on pypi.

from football.

cyfra avatar cyfra commented on September 22, 2024

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.

qstanczyk avatar qstanczyk commented on September 22, 2024

We just pushed a new release, process-dependency-links is not used anymore.

from football.

ZechenLiu avatar ZechenLiu commented on September 22, 2024

from football.

qstanczyk avatar qstanczyk commented on September 22, 2024

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.

qstanczyk avatar qstanczyk commented on September 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.