Disabling dopeWars generates errors - NameError: name 'dwPlayerTracker' is not defined #43

Closed
opened 2026-10-05 01:17:28 +02:00 by adam · 2 comments
Owner

Good evening,

I tried changing dopeWars = False in config.ini

I get this when interacting with the bot with text that is not command, the actual commands still work. The problem goes away when I switch it back to dopeWars = True

ERROR:root:Unexpected error in deferred execution <class 'NameError'>
Traceback (most recent call last):
File "/home/john/mesh/meshing-around/venv/lib/python3.12/site-packages/meshtastic/util.py", line 309, in _run
o()
File "/home/john/mesh/meshing-around/venv/lib/python3.12/site-packages/meshtastic/mesh_interface.py", line 1542, in
lambda: pub.sendMessage(topic, packet=asDict, interface=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/john/mesh/meshing-around/venv/lib/python3.12/site-packages/pubsub/core/publisher.py", line 216, in sendMessage
topicObj.publish(**msgData)
File "/home/john/mesh/meshing-around/venv/lib/python3.12/site-packages/pubsub/core/topicobj.py", line 452, in publish
self.__sendMessage(msgData, topicObj, msgDataSubset)
File "/home/john/mesh/meshing-around/venv/lib/python3.12/site-packages/pubsub/core/topicobj.py", line 482, in __sendMessage
listener(data, self, allData)
File "/home/john/mesh/meshing-around/venv/lib/python3.12/site-packages/pubsub/core/listener.py", line 237, in call
cb(**kwargs)
File "/home/john/mesh/meshing-around/mesh_bot.py", line 1164, in onReceive
playingGame = checkPlayingGame(message_from_id, message_string, rxNode, channel_number)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/john/mesh/meshing-around/mesh_bot.py", line 986, in checkPlayingGame
(dwPlayerTracker, "DopeWars", handleDopeWars),
^^^^^^^^^^^^^^^
NameError: name 'dwPlayerTracker' is not defined

Good evening, I tried changing dopeWars = False in config.ini I get this when interacting with the bot with text that is not command, the actual commands still work. The problem goes away when I switch it back to dopeWars = True ERROR:root:Unexpected error in deferred execution <class 'NameError'> Traceback (most recent call last): File "/home/john/mesh/meshing-around/venv/lib/python3.12/site-packages/meshtastic/util.py", line 309, in _run o() File "/home/john/mesh/meshing-around/venv/lib/python3.12/site-packages/meshtastic/mesh_interface.py", line 1542, in <lambda> lambda: pub.sendMessage(topic, packet=asDict, interface=self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/john/mesh/meshing-around/venv/lib/python3.12/site-packages/pubsub/core/publisher.py", line 216, in sendMessage topicObj.publish(**msgData) File "/home/john/mesh/meshing-around/venv/lib/python3.12/site-packages/pubsub/core/topicobj.py", line 452, in publish self.__sendMessage(msgData, topicObj, msgDataSubset) File "/home/john/mesh/meshing-around/venv/lib/python3.12/site-packages/pubsub/core/topicobj.py", line 482, in __sendMessage listener(data, self, allData) File "/home/john/mesh/meshing-around/venv/lib/python3.12/site-packages/pubsub/core/listener.py", line 237, in __call__ cb(**kwargs) File "/home/john/mesh/meshing-around/mesh_bot.py", line 1164, in onReceive playingGame = checkPlayingGame(message_from_id, message_string, rxNode, channel_number) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/john/mesh/meshing-around/mesh_bot.py", line 986, in checkPlayingGame (dwPlayerTracker, "DopeWars", handleDopeWars), ^^^^^^^^^^^^^^^ NameError: name 'dwPlayerTracker' is not defined <!-- github-sync-id:2831632279 -->
adam closed this issue 2026-10-05 01:17:29 +02:00
Author
Owner

Thanks 👀

Thanks 👀 <!-- github-comment-id:2635498091 -->
Author
Owner

Should be resolved now

Should be resolved now <!-- github-comment-id:2635573178 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/meshing-around#43