From 803e12bf1e60660972c7fed7d3e638ce36745899 Mon Sep 17 00:00:00 2001 From: Raphael-AugustoG Date: Tue, 21 May 2024 09:02:37 -0300 Subject: [PATCH 1/4] chore(update-version): Try to change the protobuff version to work with NeonFc in python version 3.12.1. --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 154300f..dd28d8d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -protobuf==3.6.1 \ No newline at end of file +protobuf>=3.19.3, <=3.20.1 \ No newline at end of file From d01434dcc5212332d1cd05b8d688d4048469918d Mon Sep 17 00:00:00 2001 From: Raphael-AugustoG Date: Thu, 6 Jun 2024 11:47:31 -0300 Subject: [PATCH 2/4] chore(update-version): Resolve issue with thread Referee not closing in NeonFC. --- pyVSSSReferee/RefereeComm.py | 4 +++- setup.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyVSSSReferee/RefereeComm.py b/pyVSSSReferee/RefereeComm.py index ee58907..0db98d9 100644 --- a/pyVSSSReferee/RefereeComm.py +++ b/pyVSSSReferee/RefereeComm.py @@ -49,6 +49,8 @@ def __init__(self, config_file = None): self._color = None self._quadrant = None self._foul = None + + self.kill_recieved = False def get_last_foul(self): """Returns last foul information. @@ -68,7 +70,7 @@ def run(self): print("Starting referee...") self.referee_sock = self._create_socket() print("Referee completed!") - while True: + while not self.kill_recieved: c = vssref_command_pb2.VSSRef_Command() data = self.referee_sock.recv(1024) c.ParseFromString(data) diff --git a/setup.py b/setup.py index ac44f19..ecd78f8 100644 --- a/setup.py +++ b/setup.py @@ -10,5 +10,5 @@ author="Project-Neon", author_email="projectneon@gmail.com", license="GNU", - install_requires=['protobuf==3.6.1'], + #install_requires=['protobuf==3.6.1'], ) From f119baa1f5123a97acb759357f4eea60be85f447 Mon Sep 17 00:00:00 2001 From: Raphael-AugustoG <137107778+Raphael-AugustoG@users.noreply.github.com> Date: Thu, 13 Jun 2024 15:23:07 -0300 Subject: [PATCH 3/4] Change protobuf version in requirements.txt --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index dd28d8d..3d88f68 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -protobuf>=3.19.3, <=3.20.1 \ No newline at end of file +protobuf == 3.20.3 From 2101ed9728807ff34252f4484e598e4f1a70db1a Mon Sep 17 00:00:00 2001 From: Raphael-AugustoG <137107778+Raphael-AugustoG@users.noreply.github.com> Date: Thu, 13 Jun 2024 15:23:50 -0300 Subject: [PATCH 4/4] Change requirement of protobuf to 3.20.3 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ecd78f8..29c2b17 100644 --- a/setup.py +++ b/setup.py @@ -10,5 +10,5 @@ author="Project-Neon", author_email="projectneon@gmail.com", license="GNU", - #install_requires=['protobuf==3.6.1'], + install_requires=['protobuf==3.20.3'], )