Ring doesn't recognize radius parameter

9 views
Skip to first unread message

HWGNY

unread,
Mar 12, 2026, 12:37:52 PM (11 days ago) Mar 12
to VPython-users
Two problems with the ring function.

FIRST: In Vpython, the ring object doesn't recognize the radius parameter.  The program below should create concentric rings, but all are the same size (radius = 1).

from vpyton import ring, vec
for i in range(1,5):
    ring(radius = i, axis=vec(0,0,1)) 

I am using Spyder with installed python 
In Glowscript, ring works properly.

SECOND:  I updated vpython 
(pip install --upgrade vpyton).  
I now get the following error:
 File C:\Program Files\Python311\Lib\site-packages\vpython\vpython.py:1280 in __init__
    super(ring, self).setup(args)

TypeError: super(type, obj): obj must be an instance or subtype of type

Harlan

HWGNY

unread,
Mar 12, 2026, 3:00:55 PM (10 days ago) Mar 12
to VPython-users
Never mind, it has sorted itself out. 
Reply all
Reply to author
Forward
0 new messages