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"
#2
(Jul-23-2023, 02:10 PM)Jon2222 Wrote: There is a 1.0/zero, it desn't make any sense. I think it is a very confusing behaviour.
Commit 5051943 so there they add it,maybe not the best way to solve this.
But it should have no impact on import of vpython library.
Quick test.
(dl_env) G:\div_code\dl_env
λ python
Python 3.10.5 (tags/v3.10.5:f377153, Jun  6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import vpython
>>>
>>> vpython.version
['7.6.4', 'jupyter']
>>> vpython.box()
<vpython.vpython.box object at 0x000001C70A3BB610>
>>> vpython.cylinder()
<vpython.vpython.cylinder object at 0x000001C721AC3640>
>>>
likes this post
Reply


Messages In This Thread
RE: I try to import Vpython and I get a "ZeroDivisionError" - by snippsat - Jul-23-2023, 07:24 PM

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,026 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