# Cannot install omni library in python

**URL:** <https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501>\
**Category:** Isaac Sim\
**Tags:** isaac-sim-v4-2-0, python\
**Created:** [October 20, 2024, 6:10pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501 "2024-10-20T18:10:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![doganibrahim.2001](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@doganibrahim.2001](https://forums.developer.nvidia.com/u/doganibrahim.2001)\
**Post date:** [October 20, 2024, 6:10pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501/1 "2024-10-20T18:10:00Z")

</div>

vs code python interpreter : AppData/Local/ov/pkg/isaac-sim-4.2.0/kit/python/python.exe  
When I run the code I get this error: ModuleNotFoundError: No module named ‘omni’.  
Later, when I look at the modules in the python in Isaac sim from the command line, omni is not visible. How can I fix this? Because it seems that omni, which should come with the installation of Isaac sim, did not come.

---

<div class="post-metadata">

**Author:** ![toni.nv](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/toni.nv/32/294707_2.png) [@toni.nv](https://forums.developer.nvidia.com/u/toni.nv)\
**Post date:** [October 21, 2024, 3:49pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501/2 "2024-10-21T15:49:19Z")

</div>

Hi @doganibrahim.2001

What code are you trying to run?

---

<div class="post-metadata">

**Author:** ![doganibrahim.2001](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@doganibrahim.2001](https://forums.developer.nvidia.com/u/doganibrahim.2001)\
**Post date:** [October 21, 2024, 4:02pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501/3 "2024-10-21T16:02:48Z")

</div>

```auto
from omni.isaac.python_app import OmniKitHelper # error this line
import numpy as np
from PIL import Image
import random
import time

# Isaac Sim'i başlatmak için yardımcı sınıf
kit = OmniKitHelper()
kit.initialize()

# Kameraların yollarını tanımla
camera_paths = [
    '/World/Camera',
    '/World/Camera_01',
    '/World/Camera_02',
    '/World/Camera_03'
]

# Farklı simülasyon senaryoları için kaç tekrar yapılacak
num_scenarios = 5

# Çöplerin pozisyonlarını rastgele ayarlamak için fonksiyon
def randomize_trash_positions(trash_objects):
    stage = omni.usd.get_context().get_stage()
    for trash in trash_objects:
        obj_prim = stage.GetPrimAtPath(trash)
        random_pos = [random.uniform(-5, 5), random.uniform(-5, 5), 0] # Zemin üzerinde rastgele yerleştir
        obj_prim.GetAttribute("xformOp:translate").Set(random_pos)

# Kamera açılarını rastgele ayarlamak için fonksiyon
def randomize_camera_angle(camera_path):
    stage = omni.usd.get_context().get_stage()
    camera_prim = stage.GetPrimAtPath(camera_path)
    random_rotation = [random.uniform(-45, 45), random.uniform(-45, 45), random.uniform(0, 360)] # Kameraya rastgele açı ver
    camera_prim.GetAttribute("xformOp:rotateXYZ").Set(random_rotation)

trash_paths = [
    '/World/Trash_1',
    '/World/Trash_2',
    '/World/Trash_3'
]

for scenario in range(num_scenarios):
    print(f"Senaryo {scenario + 1}: Başlatılıyor...")

    # Çöplerin pozisyonlarını rastgele ayarla
    randomize_trash_positions(trash_paths)

    for i, camera_path in enumerate(camera_paths):
        # Kameranın açısını rastgele ayarla
        randomize_camera_angle(camera_path)

        # Kamerayı al
        camera = kit.get_camera(camera_path)

        # Kameradan görüntüyü yakala
        image_data = camera.get_image()
        np_image = np.array(image_data) # Görüntüyü numpy array'e çevir

        # Görüntüyü kaydet
        img = Image.fromarray(np_image) # Numpy array'den image objesi oluştur
        img.save(f'scenario_{scenario + 1}_camera_{i + 1}.png') # Görüntüyü bir PNG dosyası olarak kaydet

        print(f"Senaryo {scenario + 1}, Kamera {i + 1}: Görüntü alındı ve kaydedildi.")

    
    time.sleep(2)

kit.shutdown() 

```

---

<div class="post-metadata">

**Author:** ![toni.nv](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/toni.nv/32/294707_2.png) [@toni.nv](https://forums.developer.nvidia.com/u/toni.nv)\
**Post date:** [October 21, 2024, 4:06pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501/4 "2024-10-21T16:06:46Z")

</div>

Hi @doganibrahim.2001

> [@doganibrahim.2001](#):
>
> ```auto
> from omni.isaac.python_app import OmniKitHelper # error this line
> 
> ```

I see, please, for standalone workflow use [SimulationApp](https://docs.omniverse.nvidia.com/isaacsim/latest/manual_standalone_python.html#simulationapp) instead

```python
from isaacsim import SimulationApp

simulation_app = SimulationApp({"headless": False})
### Perform any omniverse imports here after the helper loads ###

```

---

<div class="post-metadata">

**Author:** ![doganibrahim.2001](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@doganibrahim.2001](https://forums.developer.nvidia.com/u/doganibrahim.2001)\
**Post date:** [October 21, 2024, 4:09pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501/5 "2024-10-21T16:09:11Z")

</div>

from isaacsim import SimulationApp

simulation\_app = SimulationApp({“headless”: False})

### Perform any omniverse imports here after the helper loads ### Where do I write this code?

---

<div class="post-metadata">

**Author:** ![toni.nv](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/toni.nv/32/294707_2.png) [@toni.nv](https://forums.developer.nvidia.com/u/toni.nv)\
**Post date:** [October 21, 2024, 4:11pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501/6 "2024-10-21T16:11:59Z")

</div>

Hi @doganibrahim.2001

Place it at the beginning of your code

> [@doganibrahim.2001](#):
>
> ```auto
> from omni.isaac.python_app import OmniKitHelper # error this line
> import numpy as np
> from PIL import Image
> import random
> import time
> 
> # Isaac Sim'i başlatmak için yardımcı sınıf
> kit = OmniKitHelper()
> kit.initialize()
> 
> ```

```auto
from isaacsim import SimulationApp

simulation_app = SimulationApp({"headless": False})

import numpy as np
from PIL import Image
import random
import time

```

---

<div class="post-metadata">

**Author:** ![doganibrahim.2001](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@doganibrahim.2001](https://forums.developer.nvidia.com/u/doganibrahim.2001)\
**Post date:** [October 21, 2024, 4:15pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501/7 "2024-10-21T16:15:57Z")

</div>

I got the same error. Could this error be due to the libomp140.x86\_64.dll that I transferred to system32? Because I saw an article saying it is not suitable for vs code. in case if you dont want to download visual studio. The text is as follows: [https://www.dllme.com/dll/files/libomp140\_x86\_64?sort=upload&arch=0x8664](https://www.dllme.com/dll/files/libomp140_x86_64?sort=upload&arch=0x8664) you can just download this dll and place it in windows/system32 directory. it works as well too

---

<div class="post-metadata">

**Author:** ![toni.nv](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/toni.nv/32/294707_2.png) [@toni.nv](https://forums.developer.nvidia.com/u/toni.nv)\
**Post date:** [October 21, 2024, 4:20pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501/8 "2024-10-21T16:20:16Z")

</div>

Hi @doganibrahim.2001

After using `SimulationApp` what is the error?  
Could you please share code and terminal output?

---

<div class="post-metadata">

**Author:** ![doganibrahim.2001](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@doganibrahim.2001](https://forums.developer.nvidia.com/u/doganibrahim.2001)\
**Post date:** [October 21, 2024, 4:21pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501/9 "2024-10-21T16:21:00Z")

</div>

Could not find platform independent libraries   
Traceback (most recent call last):  
File “c:\Users\dogan\Desktop\ap\import omni.py”, line 1, in   
from isaacsim import SimulationApp  
ModuleNotFoundError: No module named ‘isaacsim’

---

<div class="post-metadata">

**Author:** ![toni.nv](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/toni.nv/32/294707_2.png) [@toni.nv](https://forums.developer.nvidia.com/u/toni.nv)\
**Post date:** [October 21, 2024, 4:21pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501/10 "2024-10-21T16:21:58Z")

</div>

Hi @doganibrahim.2001

How are you executing the code?  
Please, share command

---

<div class="post-metadata">

**Author:** ![doganibrahim.2001](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@doganibrahim.2001](https://forums.developer.nvidia.com/u/doganibrahim.2001)\
**Post date:** [October 21, 2024, 4:26pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501/11 "2024-10-21T16:26:22Z")

</div>

I did not use the command line. I am running the code directly in vscode. I got this output from powershell. I am using the virtual environment in Isaac sim as the Python interpreter. appdata/…/kit/python/python.exe.

---

<div class="post-metadata">

**Author:** ![toni.nv](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/toni.nv/32/294707_2.png) [@toni.nv](https://forums.developer.nvidia.com/u/toni.nv)\
**Post date:** [October 21, 2024, 4:27pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501/12 "2024-10-21T16:27:05Z")

</div>

Hi @doganibrahim.2001

Please, try running it in a terminal, not from VS Code directly  
Btw, use `AppData/Local/ov/pkg/isaac-sim-4.2.0/python.bat` and not `...kit/python/python.exe` since the .bat script performs some environment settings

See [Python Environment — Omniverse IsaacSim latest documentation](https://docs.omniverse.nvidia.com/isaacsim/latest/manual_standalone_python.html?#details-how-python-sh-works)

---

<div class="post-metadata">

**Author:** ![doganibrahim.2001](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@doganibrahim.2001](https://forums.developer.nvidia.com/u/doganibrahim.2001)\
**Post date:** [October 21, 2024, 4:35pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501/14 "2024-10-21T16:35:49Z")

</div>

Python 3.10.14 (main, Apr 12 2024, 14:18:47) [MSC v.1912 64 bit (AMD64)] on win32  
Type “help”, “copyright”, “credits” or “license” for more information.

> > > from isaacsim import SimulationApp  
> > > Traceback (most recent call last):  
> > > File “”, line 1, in   
> > > ModuleNotFoundError: No module named ‘isaacsim’
> > > 
> > > simulation\_app = SimulationApp({“headless”: False})  
> > > Traceback (most recent call last):  
> > > File “”, line 1, in   
> > > NameError: name ‘SimulationApp’ is not defined  
> > > from omni.isaac.python\_app import OmniKitHelper  
> > > Traceback (most recent call last):  
> > > File “”, line 1, in   
> > > ModuleNotFoundError: No module named ‘omni’  
> > > import numpy as np  
> > > Traceback (most recent call last):  
> > > File “”, line 1, in   
> > > ModuleNotFoundError: No module named ‘numpy’  
> > > from PIL import Image  
> > > Traceback (most recent call last):  
> > > File “”, line 1, in   
> > > ModuleNotFoundError: No module named ‘PIL’  
> > > import random  
> > > import time
> > > 
> > > # Isaac Sim’i başlatmak için yardımcı sınıf
> > > 
> > > kit = OmniKitHelper()  
> > > Traceback (most recent call last):  
> > > File “”, line 1, in   
> > > NameError: name ‘OmniKitHelper’ is not defined  
> > > kit.initialize()  
> > > Traceback (most recent call last):  
> > > File “”, line 1, in   
> > > NameError: name ‘kit’ is not defined
> > > 
> > > # Kameraların yollarını tanımla
> > > 
> > > camera\_paths = [  
> > > … ‘/World/Camera’,  
> > > … ‘/World/Camera\_01’,  
> > > … ‘/World/Camera\_02’,  
> > > … ‘/World/Camera\_03’  
> > > … ]
> > > 
> > > # Farklı simülasyon senaryoları için kaç tekrar yapılacak
> > > 
> > > num\_scenarios = 5
> > > 
> > > # Çöplerin pozisyonlarını rastgele ayarlamak için fonksiyon
> > > 
> > > def randomize\_trash\_positions(trash\_objects):  
> > > … stage = omni.usd.get\_context().get\_stage()  
> > > … for trash in trash\_objects:  
> > > … obj\_prim = stage.GetPrimAtPath(trash)  
> > > … random\_pos = [random.uniform(-5, 5), random.uniform(-5, 5), 0] # Zemin üzerinde rastgele yerleştir  
> > > … obj\_prim.GetAttribute(“xformOp:translate”).Set(random\_pos)  
> > > …
> > > 
> > > # Kamera açılarını rastgele ayarlamak için fonksiyon
> > > 
> > > def randomize\_camera\_angle(camera\_path):  
> > > … stage = omni.usd.get\_context().get\_stage()  
> > > … camera\_prim = stage.GetPrimAtPath(camera\_path)  
> > > … random\_rotation = [random.uniform(-45, 45), random.uniform(-45, 45), random.uniform(0, 360)] # Kameraya rastgele açı ver  
> > > … camera\_prim.GetAttribute(“xformOp:rotateXYZ”).Set(random\_rotation)  
> > > …  
> > > trash\_paths = [  
> > > … ‘/World/Trash\_1’,  
> > > … ‘/World/Trash\_2’,  
> > > … ‘/World/Trash\_3’  
> > > … ]
> > > 
> > > for scenario in range(num\_scenarios):  
> > > … print(f"Senaryo {scenario + 1}: Başlatılıyor…")  
> > > …  
> > > Senaryo 1: Başlatılıyor…  
> > > Senaryo 2: Başlatılıyor…  
> > > Senaryo 3: Başlatılıyor…  
> > > Senaryo 4: Başlatılıyor…  
> > > Senaryo 5: Başlatılıyor…  
> > > # Çöplerin pozisyonlarını rastgele ayarla  
> > > randomize\_trash\_positions(trash\_paths)  
> > > File “”, line 1  
> > > randomize\_trash\_positions(trash\_paths)  
> > > IndentationError: unexpected indent
> > > 
> > > ```
> > > for i, camera_path in enumerate(camera_paths):
> > > 
> > > ```

File “”, line 1  
for i, camera\_path in enumerate(camera\_paths):  
IndentationError: unexpected indent

> > > ```
> > > # Kameranın açısını rastgele ayarla
> > > randomize_camera_angle(camera_path)
> > > 
> > > ```

File “”, line 1  
randomize\_camera\_angle(camera\_path)  
IndentationError: unexpected indent

> > > ```
> > > # Kamerayı al
> > > camera = kit.get_camera(camera_path)
> > > 
> > > ```

File “”, line 1  
camera = kit.get\_camera(camera\_path)  
IndentationError: unexpected indent

> > > ```
> > > # Kameradan görüntüyü yakala
> > > image_data = camera.get_image()
> > > 
> > > ```

File “”, line 1  
image\_data = camera.get\_image()  
IndentationError: unexpected indent

> > > ```
> > > np_image = np.array(image_data) # Görüntüyü numpy array'e çevir
> > > 
> > > ```

File “”, line 1  
np\_image = np.array(image\_data) # Görüntüyü numpy array’e çevir  
IndentationError: unexpected indent

> > > ```
> > > # Görüntüyü kaydet
> > > img = Image.fromarray(np_image) # Numpy array'den image objesi oluştur
> > > 
> > > ```

File “”, line 1  
img = Image.fromarray(np\_image) # Numpy array’den image objesi oluştur  
IndentationError: unexpected indent

> > > ```
> > > img.save(f'scenario_{scenario + 1}_camera_{i + 1}.png') # Görüntüyü bir PNG dosyası olarak kaydet
> > > 
> > > ```

File “”, line 1  
img.save(f’scenario\_{scenario + 1}_camera_{i + 1}.png’) # Görüntüyü bir PNG dosyası olarak kaydet  
IndentationError: unexpected indent

> > > ```
> > > print(f"Senaryo {scenario + 1}, Kamera {i + 1}: Görüntü alındı ve kaydedildi.")
> > > 
> > > ```

File “”, line 1  
print(f"Senaryo {scenario + 1}, Kamera {i + 1}: Görüntü alındı ve kaydedildi.")  
IndentationError: unexpected indent

> > > ```
> > > time.sleep(2)
> > > 
> > > ```

File “”, line 1  
time.sleep(2)  
IndentationError: unexpected indent

> > > kit.shutdown()  
> > > Traceback (most recent call last):  
> > > File “”, line 1, in   
> > > NameError: name ‘kit’ is not defined

---

<div class="post-metadata">

**Author:** ![toni.nv](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/toni.nv/32/294707_2.png) [@toni.nv](https://forums.developer.nvidia.com/u/toni.nv)\
**Post date:** [October 21, 2024, 4:38pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501/15 "2024-10-21T16:38:12Z")

</div>

Hi @doganibrahim.2001

Have you followed my edited respone:

> [@toni.nv](#):
>
> Btw, use `AppData/Local/ov/pkg/isaac-sim-4.2.0/python.bat` and not `...kit/python/python.exe` since the .bat script performs some environment settings
> 
> See [Python Environment — Omniverse IsaacSim latest documentation](https://docs.omniverse.nvidia.com/isaacsim/latest/manual_standalone_python.html?#details-how-python-sh-works)

---

<div class="post-metadata">

**Author:** ![doganibrahim.2001](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@doganibrahim.2001](https://forums.developer.nvidia.com/u/doganibrahim.2001)\
**Post date:** [October 21, 2024, 4:47pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501/16 "2024-10-21T16:47:12Z")

</div>

When I did what you said, Isaac opened the sim directly but I get the same error. I wonder if I got the same error because I didn’t give the path of the simulation I made. Because I saved a file and actually wrote this code to that file.

---

<div class="post-metadata">

**Author:** ![toni.nv](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/toni.nv/32/294707_2.png) [@toni.nv](https://forums.developer.nvidia.com/u/toni.nv)\
**Post date:** [October 21, 2024, 4:49pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501/17 "2024-10-21T16:49:09Z")

</div>

Hi @doganibrahim.2001

Please (for this and the next possible responses), share command, errors, and any other useful information apart from the problem description

---

<div class="post-metadata">

**Author:** ![doganibrahim.2001](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@doganibrahim.2001](https://forums.developer.nvidia.com/u/doganibrahim.2001)\
**Post date:** [October 21, 2024, 4:53pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501/18 "2024-10-21T16:53:02Z")

</div>

When I run the code in python.bat, I get the following errors: [10.953s] app ready  
[12.957s] Simulation App Startup Complete

> > > from omni.isaac.python\_app import OmniKitHelper  
> > > Traceback (most recent call last):  
> > > File “”, line 1, in   
> > > ModuleNotFoundError: No module named ‘omni.isaac.python\_app’  
> > > import numpy as np  
> > > from PIL import Image  
> > > import random  
> > > import time
> > > 
> > > # Helper class to initialize Isaac Sim
> > > 
> > > kit = OmniKitHelper()  
> > > Traceback (most recent call last):  
> > > File “”, line 1, in   
> > > NameError: name ‘OmniKitHelper’ is not defined  
> > > kit.initialize()  
> > > Traceback (most recent call last):  
> > > File “”, line 1, in   
> > > NameError: name ‘kit’ is not defined
> > > 
> > > # Define camera paths
> > > 
> > > camera\_paths = [  
> > > … ‘/World/Camera’,  
> > > … ‘/World/Camera\_01’,  
> > > … ‘/World/Camera\_02’,  
> > > … ‘/World/Camera\_03’  
> > > … ]
> > > 
> > > # How many iterations will be done for different simulation scenarios
> > > 
> > > num\_scenarios = 5
> > > 
> > > # Function to randomize trash positions
> > > 
> > > def randomize\_trash\_positions(trash\_objects):  
> > > … stage = omni.usd.get\_context().get\_stage()  
> > > … for trash in trash\_objects:  
> > > … obj\_prim = stage.GetPrimAtPath(trash)  
> > > … random\_pos = [random.uniform(-5, 5), random.uniform(-5, 5), 0] # Place randomly on the ground  
> > > … obj\_prim.GetAttribute(“xformOp:translate”).Set(random\_pos)  
> > > …
> > > 
> > > # Function to set random camera angles
> > > 
> > > def randomize\_camera\_angle(camera\_path):  
> > > … stage = omni.usd.get\_context().get\_stage()  
> > > … camera\_prim = stage.GetPrimAtPath(camera\_path)  
> > > … random\_rotation = [random.uniform(-45, 45), random.uniform(-45, 45), random.uniform(0, 360)] # Set random angle to camera  
> > > … camera\_prim.GetAttribute(“xformOp:rotateXYZ”).Set(random\_rotation)  
> > > …  
> > > trash\_paths = [  
> > > … ‘/World/Trash\_1’,  
> > > … ‘/World/Trash\_2’,  
> > > … ‘/World/Trash\_3’  
> > > … ]
> > > 
> > > for scenario in range(num\_scenarios):  
> > > … print(f"Scenario {scenario + 1}: Starting…")  
> > > …  
> > > Scenario 1: Starting…  
> > > Scenario 2: Starting…  
> > > Scenario 3: Starting…  
> > > Scenario 4: Starting…  
> > > Scenario 5: Starting…
> > > 
> > > # Randomize trash positions
> > > 
> > > randomize\_trash\_positions(trash\_paths)  
> > > File “”, line 1  
> > > randomize\_trash\_positions(trash\_paths)  
> > > IndentationError: unexpected indent
> > > 
> > > for i, camera\_path in enumerate(camera\_paths):  
> > > File “”, line 1  
> > > for i, camera\_path in enumerate(camera\_paths):  
> > > IndentationError: unexpected indent
> > > 
> > > # Randomize the camera angle
> > > 
> > > randomize\_camera\_angle(camera\_path)  
> > > File “”, line 1  
> > > randomize\_camera\_angle(camera\_path)  
> > > IndentationError: unexpected indent
> > > 
> > > # Get the camera
> > > 
> > > camera = kit.get\_camera(camera\_path)  
> > > File “”, line 1  
> > > camera = kit.get\_camera(camera\_path)  
> > > IndentationError: unexpected indent
> > > 
> > > # Capture the image from the camera
> > > 
> > > image\_data = camera.get\_image()  
> > > File “”, line 1  
> > > image\_data = camera.get\_image()  
> > > IndentationError: unexpected indent  
> > > np\_image = np.array(image\_data) # Convert the image to numpy array  
> > > File “”, line 1  
> > > np\_image = np.array(image\_data) # Convert image to numpy array  
> > > IndentationError: unexpected indent
> > > 
> > > # Save image
> > > 
> > > img = Image.fromarray(np\_image) # Create image object from numpy array  
> > > File “”, line 1  
> > > img = Image.fromarray(np\_image) # Create image object from numpy array  
> > > IndentationError: unexpected indent  
> > > img.save(f’scenario\_{scenario + 1}_camera_{i + 1}.png’) # Save image as a PNG file  
> > > File “”, line 1  
> > > img.save(f’scenario\_{scenario + 1}_camera_{i + 1}.png’) # Save image as a PNG file save  
> > > IndentationError: unexpected indent
> > > 
> > > print(f"Scenario {scenario + 1}, Camera {i + 1}: Image captured and saved.“)  
> > > File “”, line 1  
> > > print(f"Scenario {scenario + 1}, Camera {i + 1}: Image captured and saved.”)  
> > > IndentationError: unexpected indent
> > > 
> > > time.sleep(2)  
> > > File “”, line 1  
> > > time.sleep(2)  
> > > IndentationError: unexpected indent
> > > 
> > > kit.shutdown()  
> > > Traceback (most recent call last):  
> > > File “”, line 1, in   
> > > NameError: name ‘kit’ is not defined

---

<div class="post-metadata">

**Author:** ![toni.nv](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/toni.nv/32/294707_2.png) [@toni.nv](https://forums.developer.nvidia.com/u/toni.nv)\
**Post date:** [October 21, 2024, 5:05pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501/19 "2024-10-21T17:05:56Z")

</div>

Hi @doganibrahim.2001

Fresh restart!

To run Isaac Sim standalone workflow, save the code you are writing to a script first (e.g.: `my_script.py`)  
and run it (in a terminal) using `PATH_TO_APPDATA/Local/ov/pkg/isaac-sim-4.2.0/python.bat my_script.py`

> **Note:** Don’t use/import `OmniKitHelper`, instead use [SimulationApp](https://docs.omniverse.nvidia.com/isaacsim/latest/manual_standalone_python.html#simulationapp) by putting it at the very beginning of your script

* * *

**my\_script.py**

```python
from isaacsim import SimulationApp
simulation_app = SimulationApp({"headless": False})

# all your code after this point

```

* * *

Please refer to Isaac Sim standalone examples script for “examples” (`PATH_TO_APPDATA/Local/ov/pkg/isaac-sim-4.2.0/standalone_examples` folder)

---

<div class="post-metadata">

**Author:** ![doganibrahim.2001](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@doganibrahim.2001](https://forums.developer.nvidia.com/u/doganibrahim.2001)\
**Post date:** [October 21, 2024, 5:23pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501/20 "2024-10-21T17:23:16Z")

</div>

I did what you said, python isaac sim opened, then after typing the following in cmd it closed immediately: File “C:\Users\dogan\Desktop\ap\myproject1.py”, line 15, in   
kit = OmniKitHelper()  
NameError: name ‘OmniKitHelper’ is not defined  
2024-10-21 17:21:51 [12,794ms] [Warning] [omni.graph.core.plugin] Could not find category ‘Replicator:Annotators’ for removal  
2024-10-21 17:21:51 [12,794ms] [Warning] [omni.graph.core.plugin] Could not find category ‘Replicator:Annotators’ for removal  
2024-10-21 17:21:51 [12,794ms] [Warning] [omni.graph.core.plugin] Could not find category ‘Replicator:Annotators’ for removal  
2024-10-21 17:21:51 [12,794ms] [Warning] [omni.graph.core.plugin] Could not find category ‘Replicator:Annotators’ for removal  
2024-10-21 17:21:51 [12,794ms] [Warning] [omni.graph.core.plugin] Could not find category ‘Replicator:Annotators’ for removal  
2024-10-21 17:21:51 [12,795ms] [Warning] [omni.graph.core.plugin] Could not find category ‘Replicator:Annotators’ for removal  
2024-10-21 17:21:51 [12,795ms] [Warning] [omni.graph.core.plugin] Could not find category ‘Replicator:Annotators’ for removal  
2024-10-21 17:21:51 [12,795ms] [Warning] [omni.graph.core.plugin] Could not find category ‘Replicator:Annotators’ for removal  
2024-10-21 17:21:51 [12,795ms] [Warning] [omni.graph.core.plugin] Could not find category ‘Replicator:Annotators’ for removal  
2024-10-21 17:21:51 [12,795ms] [Warning] [omni.graph.core.plugin] Could not find category ‘Replicator:Annotators’ for removal  
2024-10-21 17:21:51 [12,796ms] [Warning] [omni.graph.core.plugin] Could not find category ‘Replicator:Annotators’ for removal  
2024-10-21 17:21:51 [12,796ms] [Warning] [omni.graph.core.plugin] Could not find category ‘Replicator:Annotators’ for removal  
2024-10-21 17:21:51 [12,796ms] [Warning] [omni.graph.core.plugin] Could not find category ‘Replicator:Core’ for removal  
2024-10-21 17:21:51 [12,875ms] [Warning] [carb] Recursive unloadAllPlugins() detected!

---

<div class="post-metadata">

**Author:** ![toni.nv](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/toni.nv/32/294707_2.png) [@toni.nv](https://forums.developer.nvidia.com/u/toni.nv)\
**Post date:** [October 21, 2024, 5:25pm UTC](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501/21 "2024-10-21T17:25:58Z")

</div>

Hi @doganibrahim.2001

> [@toni.nv](#):
>
> NameError: name ‘OmniKitHelper’ is not defined

As I commented before, please remove any use of `OmniKitHelper` from code

[Next page](https://forums.developer.nvidia.com/t/cannot-install-omni-library-in-python/310501.md?page=2)
