Could not connect to CoolTerm
Posted: Tue Nov 07, 2023 7:02 pm
Hello,
I'm trying to communicate with a device using CoolTerm through a python script but I keep receiving the following error:
x@y CoolTerm % /Users/x/anaconda3/bin/python /Users/x/Documents/CoolTerm/Scripting/Python/Examples/Test_Thermode.py
ERROR: Could not connect to CoolTerm
Traceback (most recent call last):
File "/Users/x/Documents/CoolTerm/Scripting/Python/Examples/Test_Thermode.py", line 5, in <module>
count = s.WindowCount()
^^^^^^^^^^^^^^^
File "/Users/x/Documents/CoolTerm/Scripting/Python/Examples/CoolTerm.py", line 217, in WindowCount
return self.GetWindowCount()
^^^^^^^^^^^^^^^^^^^^^
File "/Users/x/Documents/CoolTerm/Scripting/Python/Examples/CoolTerm.py", line 210, in GetWindowCount
Response = self._SendPacket(Packet)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/x/Documents/CoolTerm/Scripting/Python/Examples/CoolTerm.py", line 122, in _SendPacket
self.skt.sendall(Packet)
BrokenPipeError: [Errno 32] Broken pipe
I saw the other post where you recommended to enable remote socket control in the preferences, but that did not solve my problem. I'm using macOS ventura 13.0.1, python 3.11.5, CoolTerm v2.0.1.3.4.1150
Thanks !
I'm trying to communicate with a device using CoolTerm through a python script but I keep receiving the following error:
x@y CoolTerm % /Users/x/anaconda3/bin/python /Users/x/Documents/CoolTerm/Scripting/Python/Examples/Test_Thermode.py
ERROR: Could not connect to CoolTerm
Traceback (most recent call last):
File "/Users/x/Documents/CoolTerm/Scripting/Python/Examples/Test_Thermode.py", line 5, in <module>
count = s.WindowCount()
^^^^^^^^^^^^^^^
File "/Users/x/Documents/CoolTerm/Scripting/Python/Examples/CoolTerm.py", line 217, in WindowCount
return self.GetWindowCount()
^^^^^^^^^^^^^^^^^^^^^
File "/Users/x/Documents/CoolTerm/Scripting/Python/Examples/CoolTerm.py", line 210, in GetWindowCount
Response = self._SendPacket(Packet)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/x/Documents/CoolTerm/Scripting/Python/Examples/CoolTerm.py", line 122, in _SendPacket
self.skt.sendall(Packet)
BrokenPipeError: [Errno 32] Broken pipe
I saw the other post where you recommended to enable remote socket control in the preferences, but that did not solve my problem. I'm using macOS ventura 13.0.1, python 3.11.5, CoolTerm v2.0.1.3.4.1150
Thanks !