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.

Hi. I tried running this through Docker, and ran into a few gotchas following the gitbook instructions:

  • the files in bin somehow gave me permission errors, despite being root. pasting these manually helped as a work-around.
  • the setup script used sudo a lot, but the docker container did not recognize this. removing these helped. fwiw, installing sudo helped as well.
  • source activate lab errored stating source was not recognized. I then tried:
# conda config --add channels anaconda
# conda activate lab
# conda env update
(lab) # python3 --version
Python 3.6.4
(lab) # yarn start
$ python3 run_lab.py
Traceback (most recent call last):
  File "run_lab.py", line 6, in <module>
    from slm_lab.experiment.control import Session, Trial, Experiment
  File "/opt/SLM-Lab/slm_lab/__init__.py", line 12
    with open(os.path.join(ROOT_DIR, 'config', f'{config_name}.json')) as f:
                                                                   ^
SyntaxError: invalid syntax
error Command failed with exit code 1

Trying this line in this python3 seemed not to yield syntax errors though, so f-strings do seem supported. Weird.

I haven’t fully gotten this to work, but hopefully some of this may be useful for the tutorial. I tried looking for the gitbook source in case I could add to the installation instructions based on this, but couldn’t find it.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kengzcommented, Jun 19, 2018

ok it’s released. master branch is up to date https://github.com/kengz/SLM-Lab/releases/tag/v1.1.0

1reaction
kengzcommented, Jun 17, 2018

please use the saving branch in the mean time https://github.com/kengz/SLM-Lab/tree/saving they are to be merged monday.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Docker gotchas that you need to avoid - LinkedIn
Common Docker gotchas that you need to avoid · 1. Base image incompatibility · 2. Running unnecessary services · 3. Storing critical data...
Read more >
ASP.NET Docker Gotchas and Workarounds
I've recently been working with Docker deployments to get my ASP.NET Core applications into the hands of more developers.
Read more >
Docker In 2020: Strange Surprises And Unexpected Gotchas
Docker Bypasses UFW Firewall Rules. Leaky Permission Boundaries. Dockerized Applications Run As Root. Programs Consisting of Multiple Processes.
Read more >
Top 10 Docker Logging Gotchas - Sematext
So what are the top 10 Docker logging gotchas, every Docker user should know? · Journald – storing container logs in the system...
Read more >
Docker In 2020: Strange Surprises And Unexpected Gotchas
Despite years of use and improvements there are still surprises and gotchas that exist in docker that can easily catch people off guard....
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