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

Frozen runpy #25

Closed
Matthew-Mao-gAIns opened this issue Sep 10, 2024 · 6 comments
Closed

Frozen runpy #25

Matthew-Mao-gAIns opened this issue Sep 10, 2024 · 6 comments

Comments

@Matthew-Mao-gAIns
Copy link

When I try to run python3 -m stretch_mujoco.stretch_mujoco.py, I get:
:128: RuntimeWarning: 'stretch_mujoco.stretch_mujoco' found in sys.modules after import of package 'stretch_mujoco', but prior to execution of 'stretch_mujoco.stretch_mujoco'; this may result in unpredictable behaviour

@snoato
Copy link

snoato commented Sep 10, 2024

I get a similar error on macOS:

<frozen runpy>:128: RuntimeWarning: 'stretch_mujoco.stretch_mujoco' found in sys.modules after import of package 'stretch_mujoco', but prior to execution of 'stretch_mujoco.stretch_mujoco'; this may result in unpredictable behaviour
2024-09-10 10:21:00.849 Python[36941:4079039] *** Assertion failure in -[NSMenu _setMenuName:], NSMenu.m:777
2024-09-10 10:21:00.850 Python[36941:4079039] *** Assertion failure in -[NSMenu _setMenuName:], NSMenu.m:777```

@tjvitchutripop
Copy link

I'm having the same issue on macOS as well (however, I get the RuntimeWarning but I don't get the Assertion Failure; it just freezes after the RuntimeWarning). After doing a bit of debugging, I think it has something to do with the threading in the start() function. Not sure what's causing the issue though.

@hello-binit
Copy link
Contributor

Hey @tjvitchutripop and others, thanks for reporting this. @hello-atharva is going to see if he can reproduce this issue on his Mac. Can you share your OS version and chip architecture?

@tjvitchutripop
Copy link

@hello-binit I'm using macOS Sequoia on an M3 Pro

@hello-atharva
Copy link

Hi folks!

Could you try running my code that lives in this branch?

@hello-binit
Copy link
Contributor

Closing this since @hello-atharva's fix is merged. Feel free to open a new issue if it persists.

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

5 participants