Encountered an issue in virtualenv (vpython 7.6.4)

29 views
Skip to first unread message

jiap...@gmail.com

unread,
Mar 15, 2024, 10:08:01 PMMar 15
to VPython-users
When I run the vpython code in the terminal using virtualenv, here is the problem I encounter when I press ctrl + c to exit.

(venv) % python3 code.py   

exit

Error in atexit._run_exitfuncs:

Traceback (most recent call last):

  File "/Users/venv/lib/python3.9/site-packages/vpython/vpython.py", line 22, in Exit

    a = 1.0/zero

ZeroDivisionError: float division by zero

The animation runs smoothly. The issue only arises when exiting the program.

Reply all
Reply to author
Forward
0 new messages