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

Genesis "hello world" code not functioning #226

Open
arjunsshah opened this issue Dec 22, 2024 · 2 comments
Open

Genesis "hello world" code not functioning #226

arjunsshah opened this issue Dec 22, 2024 · 2 comments

Comments

@arjunsshah
Copy link

After running the hello world code, I am receiving this error. I've checked everything is installed correctly in the right location.


AttributeError Traceback (most recent call last)
Cell In[28], line 2
1 import genesis as gs
----> 2 gs.init(backend=gs.cpu)
4 scene = gs.Scene(show_viewer=True)
5 plane = scene.add_entity(gs.morphs.Plane())

AttributeError: module 'genesis' has no attribute 'init'

@zhouxian
Copy link
Collaborator

how did you install genesis?

@zswang666
Copy link
Collaborator

You can check

ls $CONDA_PREFIX/genesis/lib/python3.10/site-packages | grep genesis # remember to change the python version accordingly

There shouldn't be things like $CONDA_PREFIX/genesis/lib/python3.10/site-packages/genesis. If so, delete it.
Another check is

import genesis as gs
print(gs.__path__) # check if this is as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants