Cannot run help inside python session started with python.bat

Steps to reproduce:
Install Isaac Sim 2022.1.1 under Windows
Enter the isaac sim root directory
run python.bat
enter ‘help(“sys”)’

Result:

C:\Users\BrunoVetter\AppData\Local\ov\pkg\isaac_sim-2022.1.1>python.bat
Python 3.7.13 (default, Mar 28 2022, 15:21:59) [MSC v.1912 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.

help(“sys”)
‘more’ is not recognized as an internal or external command,
operable program or batch file.

The reason for this is the length of the Windows path:

import os
len(os.environ[“PATH”])
9680

Windows will cause lots of trouble if we try to use environment variables longer than 8191.

Why is the path so long? Look at /mnt/c/Users/BrunoVetter/AppData/Local/ov/pkg/isaac_sim-2022.1.1/site/sitecustomize.py

All extensions’ bin folders are included into the path.

This breaks stuff I want to use in the python session, beginning with help() or using pydoc.

In my opinion this is a bug. Any suggestions for workarounds welcome.

Bruno

Thanks @bruno.vetter. I can repro this. I’ve open OM-72624 to track this issue.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

This has been improved in Isaac 2022.2 - length of the path is smaller now and the above error should not occure anymore.
We are also working on decreasing the PYTHONPATH for a future release