question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running into issues on example execution

See original GitHub issue

Get this error when I run the first example python3 -m baselines.deepq.experiments.train_cartpole:

/usr/bin/python3: Error while finding spec for 'baselines.deepq.experiments.train_cartpole' (<class 'ImportError'>: cannot import name 'deepq')

I have both Python 2 and 3 installed. Thus I installed baselines with pip3. Any suggestions?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14

github_iconTop GitHub Comments

8reactions
ghostcommented, Jun 2, 2017

the issue seemed to be stemming from a recursive import error (i don’t have know what i’m talking about) of deepq from baselines.deepq.simple.py I changed some some code in simple.py to more explicitly point at the desired modules and it worked modifications include: edited line 12 to “from baselines.deepq.build_graph import build_act, build_train” edited line 172 to " act, train, update_target, debug = baselines.deepq.build_graph.build_train(" added “import baselines” to file

0reactions
Bhargav5commented, 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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Identifying and Fixing Performance Problems using Execution ...
... SQL Server execution plans can be used to identify problems with ... to empower the attendee to make their own queries run...
Read more >
Troubleshoot slow-running queries - SQL Server
To establish that you have query performance issues on your SQL Server instance, start by examining queries by their execution time (elapsed ...
Read more >
Using conditions to control job execution - GitHub Docs
This example uses if to control when the production-deploy job can run. It will only run if the repository is named octo-repo-prod and...
Read more >
Troubleshoot execution issues in Lambda - AWS Documentation
Function execution errors can be caused by issues with your code, function configuration, downstream resources, or permissions. If you invoke your function ...
Read more >
Botched Executions - Death Penalty Information Center
Examples of such problems include, among other things, inmates catching fire ... Efforts to find a suitable vein and to execute Mr. Broom...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found