Thanks Morgan. I ran:
pip install jupyter_server
outside my conda environment, then I was able to run jupyter notebook.
I did get this dependency error however, not sure if this will cause errors in the future.
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
jupyterlab-server 2.27.3 requires requests>=2.31, but you have requests 2.25.1 which is incompatible.
I found that I was able to use the Jupyter notebook, till I got to the stop to train the model. It looked like it was downloading something, but it then froze and the notebook crashed. I got this error:
[W 2025-03-05 09:49:03.824 ServerApp] WebSocket ping timeout after 116770 ms.
[W 2025-03-05 09:49:03.873 ServerApp]
[W 2025-03-05 09:49:03.873 ServerApp]
[W 2025-03-05 09:49:03.969 ServerApp]
[W 2025-03-05 09:49:04.075 ServerApp]
[W 2025-03-05 09:49:04.128 ServerApp]
[W 2025-03-05 09:49:04.231 ServerApp]
[W 2025-03-05 09:49:04.333 ServerApp]
[W 2025-03-05 09:49:04.487 ServerApp]
[W 2025-03-05 09:49:04.589 ServerApp]
After that I shut down my Jupyter server and tried to re-open it. I got this output now:
jupyter notebook --ip 0.0.0.0 --port 8888 --allow-root
Traceback (most recent call last):
File "/home/porter/.local/bin/jupyter-notebook", line 5, in <module>
from notebook.app import main
File "/home/porter/.local/lib/python3.10/site-packages/notebook/app.py", line 17, in <module>
from jupyter_server.serverapp import flags
File "/home/porter/.local/lib/python3.10/site-packages/jupyter_server/serverapp.py", line 108, in <module>
from jupyter_server.gateway.managers import (
File "/home/porter/.local/lib/python3.10/site-packages/jupyter_server/gateway/managers.py", line 16, in <module>
import websocket
ModuleNotFoundError: No module named 'websocket'
So I then tried:
pip install jupyter_server
But I then get a dependency error:
Installing collected packages: websocket-client
Attempting uninstall: websocket-client
Found existing installation: websocket-client 0.57.0
Uninstalling websocket-client-0.57.0:
Successfully uninstalled websocket-client-0.57.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
nvidia-tao 5.5.1 requires websocket-client==0.57.0, but you have websocket-client 1.8.0 which is incompatible.
Successfully installed websocket-client-1.8.0
So I then downgrade to websocket-client 0.57.0, but thsi message comes up:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
jupyter-server 2.15.0 requires websocket-client>=1.7, but you have websocket-client 0.57.0 which is incompatible.
I then installed jupyter-server==2.4.0 and no warning popped up. However when I went to start the jupyter notebook I got the same issue I was having before where there was no module named ‘jupyter_server’
So I exited my conda environment to pip install jupyter_server as I had done before. However, this time I got this message:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
jupyterlab-server 2.27.3 requires requests>=2.31, but you have requests 2.25.1 which is incompatible.
So I then installed requests ==2.31. I was then able to run the jupyter notebook again.
I am wondering why this seemed to happen… perhaps when I ran:
!pip3 install nvidia-tao
in the jupyter notebook…
But once I got back to the training step, it looked like it was downloading for a while but then the tab running my FireFox crashed. I could see this in the output of the cell. Any idea why this popped up?
Traceback (most recent call last):
File "/home/porter/miniconda3/envs/launcher/bin/tao", line 8, in <module>
sys.exit(main())
File "/home/porter/miniconda3/envs/launcher/lib/python3.10/site-packages/nvidia_tao_cli/entrypoint/tao_launcher.py", line 134, in main
instance.launch_command(
File "/home/porter/miniconda3/envs/launcher/lib/python3.10/site-packages/nvidia_tao_cli/components/instance_handler/local_instance.py", line 382, in launch_command
docker_handler.run_container(command)
File "/home/porter/miniconda3/envs/launcher/lib/python3.10/site-packages/nvidia_tao_cli/components/docker_handler/docker_handler.py", line 325, in run_container
self.pull()
File "/home/porter/miniconda3/envs/launcher/lib/python3.10/site-packages/nvidia_tao_cli/components/docker_handler/docker_handler.py", line 187, in pull
docker_pull_progress(line, progress)
File "/home/porter/miniconda3/envs/launcher/lib/python3.10/site-packages/nvidia_tao_cli/components/docker_handler/docker_handler.py", line 66, in docker_pull_progress
TASKS[idx] = progress.add_task(f"{idx}", total=line['progressDetail']['total'])
KeyError: 'total'