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.

Docker image is missing some important packages

See original GitHub issue

Hi all,

I’m trying to open a Jupyter notebook in the Docker image as per CONTRIBUTING.md, and when running from a (relatively new) Docker image I am finding that I cannot run import arviz as az without finding that we are missing the following packages:

  • scipy
  • xarray
  • matplotlib
  • netCDF4

Once I installed these for packages, I was finally able to import the package.

To Reproduce

  • Download docker image.
  • Open Docker Jupyter notebook.
  • Try to import arviz package.
  • For whatever module it complains its missing, go back, pip install in the Docker image, and then restart.
  • Repeat this and you get the 4 missing packages above.

Expected behavior I should be able to import the package without any trouble from a clean Docker image.

Additional context MacOSX 10.14 computer, Docker image downloaded on 2019-12-03 at around 3 PM PST.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
anzelpwjcommented, Dec 4, 2019

I mean, I’m trying to contribute as part of PyDataLA, so I’m happy to swap out the commands.

1reaction
anzelpwjcommented, Dec 4, 2019

That resolves it @OriolAbril , thanks for figuring it out!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing python packages in Docker container - Stack Overflow
From your dockerfile, it looks like certifi is being installed after you run spacy which from the stack trace seems to rely on...
Read more >
We reduced our Docker images by 60% with –no-install ...
We reduced our Docker images by 60% with –no-install-recommends ... Still, the recommended and suggested packages are not essential, ...
Read more >
Packages not accessible after build - Docker Desktop for Mac
After I build, I have this coming from the container: /usr/local/bin/gunicorn: No such file or directory. Clearly, I've told it to install.
Read more >
Missing files from docker image · Issue #2299 - GitHub
Files are missing according to the error log. The missing file is not always the same.
Read more >
Installing system packages in Docker with minimal bloat
Learn how to minimize your Docker image size while installing or updating system packages on on Debian, Ubuntu, and RHEL.
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