I’m trying to run Jupyter inside the Isaac Sim docker container, but when jupyter_notebook.sh tries to install from pip, it gives a networking error:
SCRIPT_DIR = /isaac-sim
Performing setup...
Looking in indexes: https://urm.nvidia.com/artifactory/api/pypi/ct-omniverse-mirror-pypi/simple
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb5c76b4d50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /artifactory/api/pypi/ct-omniverse-mirror-pypi/simple/jupyter/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb5c78c03d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /artifactory/api/pypi/ct-omniverse-mirror-pypi/simple/jupyter/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb5c78c0710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /artifactory/api/pypi/ct-omniverse-mirror-pypi/simple/jupyter/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb5c78c0a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /artifactory/api/pypi/ct-omniverse-mirror-pypi/simple/jupyter/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb5c78c0b50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /artifactory/api/pypi/ct-omniverse-mirror-pypi/simple/jupyter/
ERROR: Could not find a version that satisfies the requirement jupyter (from versions: none)
ERROR: No matching distribution found for jupyter
WARNING: You are using pip version 21.2.1+nv1; however, version 22.2.1 is available.
You should consider upgrading via the '/isaac-sim/kit/python/bin/python3 -m pip install --upgrade pip' command.
A similar error shows up when I try apt update or anything else that tries to connect to the internet. From this it looked like it could be a DNS issue, but I manually specified the DNS server with --dns=1.1.1.1 and the only change was it took longer for each retry. I got the same result on multiple servers in different environments, ruling out any weird network configuration on the host.
SCRIPT_DIR = /isaac-sim
Performing setup...
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fea62a6d610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/jupyter/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fea62a6da10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/jupyter/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fea62a6dd50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/jupyter/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fea62a820d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/jupyter/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fea62a82410>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/jupyter/
ERROR: Could not find a version that satisfies the requirement jupyter (from versions: none)
ERROR: No matching distribution found for jupyter
WARNING: You are using pip version 21.2.1+nv1; however, version 22.2.1 is available.
You should consider upgrading via the '/isaac-sim/kit/python/bin/python3 -m pip install --upgrade pip' command.
I also tried resetting the apt sources to the Ubuntu defaults, and still got DNS errors when running apt update, so it seems like the error isn’t specific to just Nvidia’s repos.
Ok, now that I’ve got Jupyter running and Isaac Sim running within it, I’m unable to connect to it using the streaming client. I’m running this inside a notebook:
from omni.isaac.kit import SimulationApp
kit = SimulationApp({"headless": True})
from omni.isaac.core.utils.extensions import enable_extension
enable_extension("omni.kit.livestream.native")
while kit._app.is_running() and not kit.is_exiting():
kit.update()
kit.close()
When I connect from the streaming client, it just shows a entirely gray window. It’s clearly connecting to something, otherwise it would time out, but none of the GUI is visible.
Try running ./python.sh standalone_examples/api/omni.isaac.kit/livestream.py from the container. You should get a window when streaming from the OV Streaming Client.
I’ve been able to connect to it with that example and with code I’ve written myself, it’s just Jupyter specifically where it doesn’t work. When I run the code from my previous post as a python file, the stream loads and I can see the GUI and an empty environment. The same code in Jupyter does not work.
Sorry, this was a bug. This will be fixed in Isaac Sim 2022.1.1 container. Try replacing this file. jupyter_notebook.sh (1.7 KB)
or try running the vulkan_check.sh script in the container before running the Jupyter Notebook.
Here’s the output of the console inside the notebook, and the log from Isaac Sim itself. There’s no obvious errors from what I can see, everything looks the same as when running that code outside of Jupyter (which does work).
Rebooting didn’t help, and there’s no other instances of Isaac Sim.
I have figured something out, though. When I’m at the gray screen, pressing F11 makes the entire screen black (as expected with an empty environment). The synthetic data sensors button shows up then, but clicking it does nothing. I added a cube in with python, and it shows up: