-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
Steps to reproduce:
(use Chrome/Firefox as the default browser)
(in Win10 cmdline)
D:\code\py>python
Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import vpython
>>> vpython.__version__
'7.5.1'
>>> vpython.sphere()
<vpython.vpython.sphere object at 0x000001FB85AD1A90>
>>>
Now a browser is opened and the sphere is shown correctly. Zoom in the object sufficiently (probably with other operations, with touch screen), the following will then repeatedly shown:
Task exception was never retrieved
future: <Task finished coro=<WSserver.onMessage() done, defined at C:\Users\xyy82\AppData\Roaming\Python\Python36\site-packages\vpython\no_notebook.py:154> exception=TypeError('must be real number, not NoneType',)>
Traceback (most recent call last):
File "C:\Users\xyy82\AppData\Roaming\Python\Python36\site-packages\vpython\no_notebook.py", line 187, in onMessage
await loop.run_in_executor(None, GW.handle_msg, msg)
File "C:\Program Files\Python36\lib\concurrent\futures\thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Users\xyy82\AppData\Roaming\Python\Python36\site-packages\vpython\vpython.py", line 393, in handle_msg
cvs.handle_event(evt)
File "C:\Users\xyy82\AppData\Roaming\Python\Python36\site-packages\vpython\vpython.py", line 3159, in handle_event
evt['pos'] = list_to_vec(pos)
File "C:\Users\xyy82\AppData\Roaming\Python\Python36\site-packages\vpython\vpython.py", line 177, in list_to_vec
return vector(L[0], L[1], L[2])
File "vpython/cyvector.pyx", line 29, in vpython.cyvector.vector.__init__
TypeError: must be real number, not NoneType
Metadata
Metadata
Assignees
Labels
No labels