I may also be seeing the error reported by F. Chung, and I get it every time a program exits after importing vpython.
My environment is MacOS Monterrey and Pycharm with Python 3.10, and I've not tried this in other environments.
A trival program consisting of only this import statement will cause the error:
import vpython as vp
and I see the error whenever my vpython programs exit - whether due runtime errors, normally ending a program (either running out of statements or using the python exit command) or by closing the vpython browser window.
It appears that the import of vpython starts its execution engine which seems to only be able stop by causing this divide by zero exception.
I believe I've traced the problem to the Exit() function in vpython.py:
def Exit():
zero = 0.
print('exit')
a = 1.0/zero
import atexit
atexit.register(Exit)
It's possible that this is intentional (but somewhat cryptic) in order to ensure the shut down the entire runtime architecture of vpython.
For me, this is only a minor annoyance, but it doesn't seem likely to be the intended functionality of Exit()!
Don