Python Forum
I try to import Vpython and I get a "ZeroDivisionError"
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I try to import Vpython and I get a "ZeroDivisionError"
#14
(Jul-25-2023, 08:28 AM)Gribouillis Wrote: You could also try this
import atexit
import vpython
atexit.unregister(vpython.Exit)

I doesn't work. Huh

Error:
D:\pythonProject\OpenCVLearning\venv\Scripts\python.exe D:\pythonProject\vpython\main.py Traceback (most recent call last): File "D:\pythonProject\vpython\main.py", line 3, in <module> atexit.unregister(vpython.Exit) ^^^^^^^^^^^^ AttributeError: module 'vpython' has no attribute 'Exit' exit Exception ignored in atexit callback: <function Exit at 0x0000026DC110B420> Traceback (most recent call last): File "D:\pythonProject\OpenCVLearning\venv\Lib\site-packages\vpython\vpython.py", line 22, in Exit a = 1.0/zero ~~~^~~~~ ZeroDivisionError: float division by zero Process finished with exit code 1
   
Reply


Messages In This Thread
RE: I try to import Vpython and I get a "ZeroDivisionError" - by Jon2222 - Jul-25-2023, 11:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  ZeroDivisionError laurawoods 1 313 Apr-11-2024, 03:27 AM
Last Post: deanhystad
  Overcoming ZeroDivisionError: division by zero Error dgrunwal 8 5,208 Jun-12-2020, 01:52 PM
Last Post: dgrunwal
  ZeroDivisionError CIVILmath 2 2,581 Jan-17-2019, 02:38 AM
Last Post: CIVILmath
  Vpython Delay in plotting points SohaibAJ 0 2,111 Jul-30-2018, 08:44 PM
Last Post: SohaibAJ
  Anaconda / Spyder / VPython mwatson87 3 104,050 May-24-2018, 01:51 PM
Last Post: snippsat
  VPython - Trying to make orbit simulation totalnoob 2 5,701 Sep-13-2017, 03:59 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020