Error when debugging BasciWriter.py in Vscode

When debugging the BasicWriter.py (the first script in the replicator’s getting start scripts) in Vscode, an error occured when importing omni.relicator.core:

The replicator.core lives in the extcache dir, so I add all the paths under extcache to PATHONPATH, but another errors occurs:

Can you provide more details here? What kit app are you using? Walk me through the process you’re doing step by step to repro this. Are you getting these errors in the script editor?

Can you provide a log also? Thanks!

Version of IsaacSim: 4.5.0
os: Ubuntu20.04
Using Omniverse.replicator

When debug as standalone app, it’s OK. The problems happened when debugging as attached to the IsaacSim engine. Basically I followed the tutorials:

  1. Start up the engine.
  2. Attach the debugger in VScode to IsaacSim
  3. debugging
    But the error happened even before start the asyncio event loop, when importing omni.replicator.core as shown before:

    If I revert the modification of the ./setup_python_env.sh, it’s like:

Are you able to provide a log? Its going to be difficult to find out what’s going on here without the insights a log will give.