Hello,
Anyone have comments experience in this?
Steps:
(1) Updated Ubuntu 16.04 Linux to linux-image-4.4.0-137-generic
(sudo apt-get install update & sudo apt-get install upgrade)
(2) While running Jupyter notebook (Python 3.6) after the update, a conda virtual environment stopped working.
(3) The same Jupyter notebook ran fine on Ubuntu 16.04 Linux Un-updated machine.
Environment managers such as conda are supposed to make the “Virtual Environment” impervious to OS and other updates.
Other than NOT updating OS, any suggestions to avoid this problem?
Thank you!
3bien
November 9, 2018, 5:16am
2
Have you tried updating conda? Maybe there is a new version of conda or some of its dependencies for the new kernel you installed.
1 Like
TyIsI
November 9, 2018, 5:20am
3
If there any binary/library dependencies, you will need to update your virtual environment as well.
The real question is… what got updated when you ran that upgrade?
1 Like
Arrgh
November 9, 2018, 5:22am
4
What kind of error messages do you get?
2 Likes
Thanks, will first try updating conda.
Dumb Question: Is running Virtual Environment (conda, virtualenv, pipenv) inside Virtual Box a solution to these problems?
(1) Deactivated Virtual Environment
(2) Updated Ubuntu 16.04 OS
(3) After the update, activated Virtual Environment
(4) Ran “conda env update -f environment.yml”
While running the Jupyter notebook, the only Python module that gives error is mapping library “Basemap”, it’s built on Matplotlib; prior to the update Basemap drew maps without problems.
TyIsI
November 10, 2018, 12:36am
8
It really depends. If you want to keep things stable, then a docker container (if that’s an option), could be a nice solution. You’d still have the same issues while running within a VM, unless the entire thing is running “natively” within the VM. (Without any of the virtual aspects.)
1 Like
Thanks, I think it’s time to move to a docker container!
Rebel_without_Clause:
(1) Updated Ubuntu 16.04 Linux to linux-image-4.4.0-137-generic
(sudo apt-get install update & sudo apt-get install upgrade)
(2) While running Jupyter notebook (Python 3.6) after the update, a conda virtual environment stopped working.
(3) The same Jupyter notebook ran fine on Ubuntu 16.04 Linux Un-updated machine.
Environment managers such as conda are supposed to make the “Virtual Environment” impervious to OS and other updates.
Rolling back the Ubuntu update made it work again after which I replaced the offending library.
system
Closed
November 26, 2019, 6:04am
11
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.