-
Notifications
You must be signed in to change notification settings - Fork 64
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
RuntimeError: can't register atexit after shutdown #204
Comments
Never having seen this bug, what platform are you using? What is the "simple" program that triggers the error? |
Windows 10 version 20H2, on either Firefox or Edge.
|
bump I'm still able to manipulate the view, however widgets and buttons don't work. |
I happen to be running VPython 7.6.3 with Python 3.9.7, so I will update to 3.10 to see if I can reproduce the error. Thanks for the info. |
I was able to find another install on the same PC with 3.7 and didn't have any issues with it. That was using a different set of modules though so I'm not sure if it is soley 3.10 that is the issue. Also seems odd that the previous poster had the same issue with 3.9 in 2020 but you said it works fine on 3.9 now. |
John Coady posted the following to the VPython forum, which looks relevant: The fix is to install an older version of autobahn package and txaio. The steps to fix are to uninstall autobahn and txaio
or
Then install autobahn version 21.11.1
and this will install txaio version 22.2.1 These were the versions of autobahn and txaio that existed when vpython 7.6.3 came out. Vpython should probably create a new release to fix this problem or to use older versions of autobahn and txaio as dependencies. John |
I tried that, but it unfortunately it didn't fix it. I did add this based on another comment:
and that seems to have fixed it. Will that cause any other issues? |
I have no idea why that loop was relevant, but should you ever wish to run in jupyter notebook or jupyter lab or Web VPython I think the display will freeze (I know for sure it will freeze in Web VPython). Instead of "pass" use "rate(100)" or similar statement. It happens that of all the various instantiations of VPython, only the "no-notebook" version uses threads, which means that displays can be updated (associated with mousing, for example). |
When running a simple vpython script, as I move the mouse across the screen I get a continual stream of these errors:
This seems to be the same issue as mentioned in #133 however that was a few years ago. I'm unable to downgrade to an older version of python though, is it still something that hasn't been fixed?
I'm running Python 3.10.0 and VPython 7.6.3
The text was updated successfully, but these errors were encountered: