Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to import a module, from itself #27

Closed
DarkZeros opened this issue Jun 8, 2017 · 2 comments
Closed

Fails to import a module, from itself #27

DarkZeros opened this issue Jun 8, 2017 · 2 comments

Comments

@DarkZeros
Copy link

Traceback (most recent call last):
File "pole_train.py", line 3, in
from baselines import deepq
File "/usr/local/lib/python3.4/dist-packages/baselines/deepq/init.py", line 4, in
from baselines.deepq.simple import learn, load # noqa
File "/usr/local/lib/python3.4/dist-packages/baselines/deepq/simple.py", line 12, in
from baselines import deepq
ImportError: cannot import name 'deepq'

@siemanko
Copy link
Collaborator

Currently we have no way of reproducing this issue. If you are willing to provide simple means of reproducing this, such as docker image, we can look into this.

@Bhargav5
Copy link

Bhargav5 commented Aug 4, 2017

You can replace,
from baselines import deepq by
from baselines.deepq.build_graph import build_act, build_train

it will work. This problem I faced while working with python 2.7

pzhokhov added a commit that referenced this issue Aug 20, 2018
* make nminibatces = min(nminibatches, nenv)

* clarify the usage of lstm policy, add an example and a test

* cleaned up example, added assert to the test

* remove nminibatches -> min(nminibatches, num_env)

* removed code snippet from the docstring, pointing to the file
huiwenn pushed a commit to huiwenn/baselines that referenced this issue Mar 20, 2019
…nai#27)

* make nminibatces = min(nminibatches, nenv)

* clarify the usage of lstm policy, add an example and a test

* cleaned up example, added assert to the test

* remove nminibatches -> min(nminibatches, num_env)

* removed code snippet from the docstring, pointing to the file
kkonen pushed a commit to kkonen/baselines-1 that referenced this issue Sep 26, 2019
…nai#27)

* make nminibatces = min(nminibatches, nenv)

* clarify the usage of lstm policy, add an example and a test

* cleaned up example, added assert to the test

* remove nminibatches -> min(nminibatches, num_env)

* removed code snippet from the docstring, pointing to the file
kkonen pushed a commit to kkonen/baselines-1 that referenced this issue Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants