Omniverse from PDG

   122   0   1
User Avatar
Member
5 posts
Joined: Oct. 2017
Offline
Hi everyone!
I'm trying to run a Python script on headless Isaac Sim. The script runs perfectly with vanilla Python but returns an error when run with PDG.

For example, this code:
import subprocess

file_path = r"C:\Users\Andrey\Desktop\temp\Render_standalone.py"
script_path = r"C:\Users\Andrey\AppData\Local\ov\pkg\isaac-sim-2023.1.1\python.bat"

subprocess.run([script_path, file_path], shell=True)
runs as expected in VSCode, but in PDG, it returns an error like:
ImportError: DLL load failed while importing _ctypes: The specified module could not be found.
I believe it has something to do with the environment, but I can't figure out what exactly. Any ideas on what could be causing this?
Edited by hantritor - Oct. 29, 2024 14:11:58
  • Quick Links