Closed drjarno closed 3 years ago
@drjarno I had the same issue, but the cause was different. When you happen to install conda
(in my case Miniconda3
, it interferes with the TLJH
installer. That's because, although parts of the installer does indeed use it's internal virtual environment python
-- i.e. /opt/tljh/user/bin/python
-- as that installer downloads additional components to installs them, if it happens to find your external conda
(i.e. find it first in the PATH
), then it will cause conflict and crash exactly as above.
I ended up removing conda
completely (100%) and am using straight python
to intall TLJH
until I can figure out how to get the TLJH
installer to reliably work with conda
installed side-by-side.
P.S. I tried @drjarno update solution, but the failure remained because it kept finding my conda
's python.
EDIT (UPDATE): I figured out how to overcome my variety of this issue.
I always install conda
in /opt/conda.d/
. To avoid my version of this problem, I dynamically (temporarily) remove /opt/conda.d/bin/
from my PATH
environment variable, like this:
root# export PATH='.:/root/.local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:'
Then I immediately run the installer using /opt/conda.d/bin/python3
(yes, the one I just removed from the PATH
), like this:
root# /opt/conda.d/bin/python3 /root/tinstall.tljh.py
Now, however, since /opt/conda.d/bin/{conda, python3}
aren't in my PATH
environment variable, other TLJH
components downloaded later on won't find them; and avoids the conflict.
And finally, once installation is complete, I recover the PATH
by simply re-sourcing .profile
:
root# . /root/.profile
I hope this helps, too.
I had the error when installing on a Multipass default instance of Ubuntu LTS, with only 1GB memory. Running the command showed an error because that was not enough memory. Failed when 2GB available as well - worked at 4GB.
With #697, we have a very up to date version of conda/mamba so the workaround won't be needed. The mamba
CLI is a high performance clone of the conda
CLI.
I created a fresh VM with 18.04 and ran apt full-upgrade to install the latest updates.
Then I tried to install Jupyter Hub by following the installation instructions: sudo apt install python3 python3-dev git curl
Unfortunately, this failed with the following error:
I noticed that conda was only at version 4.7.10, so I updated with
After that, I ran the install command again and this time it worked. I hope this workaround will help you to figure out why the install scripts fails on a fresh Ubuntu 18.04 VM.