Hi Marcelo,
I will copy Jakob's answer to someone who had a similar problem a few days ago. Maybe it will help you
J
“The _socket gets removed in either of two cases:
- after calling traci.close()
- after receiving a FatalTraCIError "connection closed by SUMO" which can happen if the input data to sumo is faulty or sumo has crashed
If it happens to be the latter with the latest sumo release (1.7.0), please try to boil down your code to a simple test case and provide the necessary files for reproducing the crash.”
Regards,
Giuliana
From: sumo-user-bounces@xxxxxxxxxxx [mailto:sumo-user-bounces@xxxxxxxxxxx]
On Behalf Of Marcelo Andrade Rodrigues D Almeida
Sent: Samstag, 19. September 2020 21:10
To: Sumo project User discussions
Subject: [sumo-user] 'Extended retrieval messages' info subscription
How can I subscribe to retrieve 'Extended retrieval messages' information (e.g. vehicle leader and secureGap)
Everytime I include these I receive the following error message
#"VAR_LEADER",
#"VAR_SECURE_GAP",
"Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/share/sumo/tools/traci/domain.py", line 208, in subscribe
self._connection._subscribe(self._subscribeID, begin, end, objectID, varIDs)
File "/usr/share/sumo/tools/traci/connection.py", line 231, in _subscribe
result = self._sendCmd(cmdID, (begin, end), objID, format, *args)
File "/usr/share/sumo/tools/traci/connection.py", line 178, in _sendCmd
return self._sendExact()
File "/usr/share/sumo/tools/traci/connection.py", line 83, in _sendExact
self._socket.send(length + self._string)
AttributeError: 'Connection' object has no attribute '_socket'
|