-
Notifications
You must be signed in to change notification settings - Fork 4
Description
After integrating the Rpyc server we got the following error:
Traceback (most recent call last):
File "/Users/felipecampos/Berkeley/research/swarm/sim/6-tisch-swarm-sim/6tisch-simulator/bin/../SimEngine/SimLog.py", line 199, in log
json_string = json.dumps(content, sort_keys=True)
File "/Users/felipecampos/anaconda3/envs/agent-sim/lib/python3.8/json/init.py", line 234, in dumps
return cls(
File "/Users/felipecampos/anaconda3/envs/agent-sim/lib/python3.8/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/Users/felipecampos/anaconda3/envs/agent-sim/lib/python3.8/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/Users/felipecampos/anaconda3/envs/agent-sim/lib/python3.8/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.class.name} '
TypeError: Object of type float64 is not JSON serializable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "runSim.py", line 387, in
main(sys.argv[1:])
File "runSim.py", line 280, in main
runSimCombinations({
File "runSim.py", line 187, in runSimCombinations
simengine.join()
File "/Users/felipecampos/Berkeley/research/swarm/sim/6-tisch-swarm-sim/6tisch-simulator/bin/../SimEngine/SimEngine.py", line 228, in join
raise self.exc
File "/Users/felipecampos/Berkeley/research/swarm/sim/6-tisch-swarm-sim/6tisch-simulator/bin/../SimEngine/SimEngine.py", line 160, in run
cb()
File "/Users/felipecampos/Berkeley/research/swarm/sim/6-tisch-swarm-sim/6tisch-simulator/bin/../SimEngine/Mote/app.py", line 322, in _broadcast_location
self._send_packet(
File "/Users/felipecampos/Berkeley/research/swarm/sim/6-tisch-swarm-sim/6tisch-simulator/bin/../SimEngine/Mote/app.py", line 372, in _send_packet
self.log(
File "/Users/felipecampos/Berkeley/research/swarm/sim/6-tisch-swarm-sim/6tisch-simulator/bin/../SimEngine/SimLog.py", line 210, in log
output += [traceback.format_exc(err)]
File "/Users/felipecampos/anaconda3/envs/agent-sim/lib/python3.8/traceback.py", line 167, in format_exc
return "".join(format_exception(*sys.exc_info(), limit=limit, chain=chain))
File "/Users/felipecampos/anaconda3/envs/agent-sim/lib/python3.8/traceback.py", line 120, in format_exception
return list(TracebackException(
File "/Users/felipecampos/anaconda3/envs/agent-sim/lib/python3.8/traceback.py", line 509, in init
self.stack = StackSummary.extract(
File "/Users/felipecampos/anaconda3/envs/agent-sim/lib/python3.8/traceback.py", line 340, in extract
if limit >= 0:
TypeError: '>=' not supported between instances of 'TypeError' and 'int'
this was patched by type casting the returned numbers from the Rpyc server to floats but warrants a more significant investigation.