Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

import vpython produces error: float division by zero

Tags:

python

vpython

I work with Python 3.10.0. I installed vpython using pip, it was installed successfully.

Then when I just use:

from vpython import *

print('hello')

hello is printed, and after that I get the following Error:

exit
Exception ignored in atexit callback: <function Exit at 0x1095d4ee0>
Traceback (most recent call last):
  File "/Users/.../.pyenv/versions/3.10.0/lib/python3.10/site-packages/vpython/vpython.py", line 22, in Exit
    a = 1.0/zero
ZeroDivisionError: float division by zero

What does this mean? What can I do?

like image 570
user2169778 Avatar asked Oct 24 '25 15:10

user2169778


1 Answers

vpython 7.6.4 throws the ZerodivisionError

but installing the version of 7.6.1 will resolve this issue. pip install vpython==7.6.1

like image 148
Explore_passion krishibots Avatar answered Oct 26 '25 05:10

Explore_passion krishibots



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!