Skip to content

[Question] No module named 'omni.isaac' when using zshell instead of bash #103

Closed

Description

@zydczqcnydx

ModuleNotFoundError: No module named 'omni.isaac'

Why is this error reported when there is an omni library in my conda environmen.I followed the official document configuration

Activity

  1. Mayankm96 commented on Aug 2, 2023

    @Mayankm96
    Contributor

    I am unable to reproduce this error. Can you please provide more details on what exactly you're trying to run and what steps you followed for the setup?

  2. zydczqcnydx commented on Aug 2, 2023

    @zydczqcnydx
    Author

    I found a solution to this problem, but he looks very stupid.I find that when I run this command
    "conda activate orbit"
    It reminded me that " ~/Orbit/_isaac_sim/setup_conda_env.sh:.:20: no such file or directory: ~/Orbit/setup_python_env.sh "
    So, when I activate my conda env , I run this command "cd ~/Orbit/_isaac_sim && conda activate orbit"
    This problem wouldn't have arisen.
    I can run this command correctly " python -c "import omni.isaac "

  3. zydczqcnydx commented on Aug 2, 2023

    @zydczqcnydx
    Author

    I also found out that the path in 'setup_conda. sh' needs to be modified because the shell I am using is zsh. Thinks.

  4. Mayankm96 commented on Aug 2, 2023

    @Mayankm96
    Contributor

    Maybe some commands aren't being checked properly for zsh terminal in the orbit.sh script. I will have to take a closer look at this for zsh and find a solution.

    If you find a fix in the meantime, would be great to learn about it.

  5. added
    bug
    enhancement
    on Aug 2, 2023
  6. zydczqcnydx commented on Aug 2, 2023

    @zydczqcnydx
    Author

    I have made the necessary modifications to the zsh adaptation code for setup_conda_env.sh and setup_python_env. sh. You can use zsh to run the existing code as follows:

    setup_conda_env. sh
    #!/bin/zsh  
    SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)  
    MY_DIR=$(realpath -s "$SCRIPT_DIR")  
      
    export CARB_APP_PATH=$SCRIPT_DIR/kit  
    export EXP_PATH=$MY_DIR/apps  
    export ISAAC_PATH=$MY_DIR  
    source $ISAAC_PATH/setup_python_env.sh  
    
    setup_python_env. sh
    #!/bin/zsh  
    SCRIPT_DIR=$(dirname "${(%):-%x}")  
    export PYTHONPATH=$PYTHONPATH:$SCRIPT_DIR/../../../$PYTHONPATH:$SCRIPT_DIR/exts/omni.isaac.kit:$SCRIPT_DIR/exts/omni.isaac.gym:$SCRIPT_DIR/kit/kernel/py:$SCRIPT_DIR/kit/plugins/bindings-python:$SCRIPT_DIR/kit/extscore/omni.kit.pip_archive/pip_prebundle:$SCRIPT_DIR/exts/omni.isaac.core_archive/pip_prebundle:$SCRIPT_DIR/exts/omni.isaac.ml_archive/pip_prebundle:$SCRIPT_DIR/extscache/omni.pip.torch-1_13_1-0.1.4+104.2.lx64/torch-1-13-1  
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SCRIPT_DIR/../../../$LD_LIBRARY_PATH:$SCRIPT_DIR/.:$SCRIPT_DIR/exts/omni.usd.schema.isaac/bin:$SCRIPT_DIR/exts/omni.isaac.motion_planning/bin:$SCRIPT_DIR/kit:$SCRIPT_DIR/kit/kernel/plugins:$SCRIPT_DIR/kit/libs/iray:$SCRIPT_DIR/kit/plugins:$SCRIPT_DIR/kit/plugins/bindings-python:$SCRIPT_DIR/kit/plugins/carb_gfx:$SCRIPT_DIR/kit/plugins/rtx:$SCRIPT_DIR/kit/plugins/gpu.foundation:$SCRIPT_DIR/kit/extensions/extensions-bundled/bin  
    
  7. changed the title [-][ ModuleNotFoundError: No module named 'omni.isaac'][/-] [+][Question] ModuleNotFoundError: No module named 'omni.isaac' when using ZSH[/+] on Aug 12, 2023
  8. changed the title [-][Question] ModuleNotFoundError: No module named 'omni.isaac' when using ZSH[/-] [+][Question] No module named 'omni.isaac' when using zshell instead of bash[/+] on Aug 12, 2023
  9. self-assigned this
    on Feb 10, 2024
  10. amirhnourian commented on Feb 15, 2024

    @amirhnourian

    Hello I am currently using shell and also encountering this error what should I do?:
    Documents/GitHub/orbit/source/standalone/tutorials/00_sim/create_empty.py", line 20, in
    from omni.isaac.orbit.app import AppLauncher
    ModuleNotFoundError: No module named 'omni.isaac.orbit'

  11. mattmazzola commented on May 10, 2024

    @mattmazzola

    Based on the comments

    the necessary modifications to the zsh adaptation code

    using shell and also encountering this error

    I also ran into this on with more explanation but maybe only a partial solution : #407

    Although the comment above may be more complete: #103 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions