Hi all - I'm fairly new to Vpython (using Spyder) but have picked up most of the basics. I just started experimenting with extrusions of 2D shapes to make 3D objects. I'm getting the right results in the graphics window, but not without getting an error response. The script is as basic as possible. I could just ignore it, but I'm wondering what's going on or if anyone else has had this problems.
SCRIPT:
from vpython import shapes,extrusion, vector
circle = shapes.circle()
circle_path = [vector(0,0,0),vector(1,0,0)]
extrusion(path = circle_path,shape = circle)
ERROR:
Task exception was never retrieved
future: <Task finished name='Task-14563' coro=<WSserver.onMessage() done, defined at /Users/tedsheridan/opt/anaconda3/lib/python3.9/site-packages/vpython/no_notebook.py:181> exception=TypeError("unsupported operand type(s) for *: 'float' and 'vpython.cyvector.vector'")>
Traceback (most recent call last):
File "/Users/tedsheridan/opt/anaconda3/lib/python3.9/site-packages/vpython/no_notebook.py", line 214, in onMessage
await loop.run_in_executor(None, GW.handle_msg, msg)
File "/Users/tedsheridan/opt/anaconda3/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/tedsheridan/opt/anaconda3/lib/python3.9/site-packages/vpython/vpython.py", line 415, in handle_msg
cvs.handle_event(evt)
File "/Users/tedsheridan/opt/anaconda3/lib/python3.9/site-packages/vpython/vpython.py", line 3262, in handle_event
obj._axis.value = obj._size._x*norm(obj._axis)
TypeError: unsupported operand type(s) for *: 'float' and 'vpython.cyvector.vector'