Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
zydczqcnydx opened this issue Aug 2, 2023 · 7 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@zydczqcnydx
Copy link

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

@Mayankm96
Copy link
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?

@zydczqcnydx
Copy link
Author

zydczqcnydx commented Aug 2, 2023

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 "

@zydczqcnydx
Copy link
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.

@Mayankm96
Copy link
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.

@Mayankm96 Mayankm96 added bug Something isn't working enhancement New feature or request labels Aug 2, 2023
@zydczqcnydx
Copy link
Author

zydczqcnydx commented Aug 2, 2023

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  

Mayankm96 added a commit that referenced this issue Aug 8, 2023
# Description

Previously, the visualization markers would get rendered in the camera
images. However, this is often undesirable since the markers are only
used for debug visualizations. This behavior turns these off by default.

## Type of change

- New feature (non-breaking change which adds functionality)
- This change requires a documentation update

## Checklist

- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./orbit.sh --format`
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
@Mayankm96 Mayankm96 changed the title [ ModuleNotFoundError: No module named 'omni.isaac'] [Question] ModuleNotFoundError: No module named 'omni.isaac' when using ZSH Aug 12, 2023
@Mayankm96 Mayankm96 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 Aug 12, 2023
Mayankm96 added a commit that referenced this issue Dec 22, 2023
# Description

Previously, the visualization markers would get rendered in the camera
images. However, this is often undesirable since the markers are only
used for debug visualizations. This behavior turns these off by default.

## Type of change

- New feature (non-breaking change which adds functionality)
- This change requires a documentation update

## Checklist

- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./orbit.sh --format`
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
@Mayankm96 Mayankm96 self-assigned this Feb 10, 2024
@amirhnourian
Copy link

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'

@mattmazzola
Copy link
Contributor

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
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants