Hi there,
Im gettig a weird error in vpython. I have r a progrem where i can create a closet, for some values it gives the below error.
The program works by first running main.py and when thats finished running main2.py.
The error can be reproduced by using the following values:
width 400
height 200
depth 80
width 40
height 3
langth 400
height 10
It's attatched below. Any idea what could cause this ?
I'm running vpython-7.6.4 on chromeOS with the following linux container:
lsb_release -a
hostnamectl
PRETTY_NAME="Debian GNU/Linux bookworm/sid"
NAME="Debian GNU/Linux"
ID=debian
HOME_URL="
https://www.debian.org/"
SUPPORT_URL="
https://www.debian.org/support"
BUG_REPORT_URL="
https://bugs.debian.org/"
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux bookworm/sid
Release: 11-updates
Codename: n/a
Static hostname: penguin
Icon name: computer-container
Chassis: container
Virtualization: lxc
Operating System: Debian GNU/Linux bookworm/sid
Kernel: Linux 5.10.114-16024-gbdf1547bd4f4
Architecture: x86-64
Error:
future: <Task finished name='Task-125' coro=<WSserver.onMessage() done, defined at /home/windhoos/.local/lib/python3.10/site-packages/vpython/no_notebook.py:181> exception=TypeError('Object of type int64 is not JSON serializable')>
Traceback (most recent call last):
File "/home/windhoos/.local/lib/python3.10/site-packages/vpython/no_notebook.py", line 203, in onMessage
jdata = json.dumps(objdata, separators=(',', ':')).encode('utf_8')
File "/usr/lib/python3.10/json/__init__.py", line 238, in dumps
**kw).encode(obj)
File "/usr/lib/python3.10/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python3.10/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/usr/lib/python3.10/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type int64 is not JSON serializable