Hi Kevin,
thanks for getting back to me! The diagnose script gave the following output (no matter if firewall and virus protection enabled):
--- start of script output on console ---
Initiating diagnostics
[......Python] : namespace(name='cpython', cache_tag='cpython-312', version=sys.version_info(major=3, minor=12, micro=1, releaselevel='final', serial=0), hexversion=51118576)
[.........(t)] : sys.thread_info(name='nt', lock=None, version=None)
[.........(p)] : win32
[........(mp)] : [<_distutils_hack.DistutilsMetaFinder object at 0x0000018735A9E090>, <_virtualenv._Finder object at 0x0000018735A9DB80>, <class '_frozen_importlib.BuiltinImporter'>, <class '_frozen_importlib.FrozenImporter'>, <class '_frozen_importlib_external.PathFinder'>]
# checking imports -> verified ok
# checking thespian internal system imports -> verified ok
# checking existing running actors was skipped - please install psutils python package to support this
# checking hostname -> verified ok
# checking fqdn -> verified ok
# checking addr info proto=UDP desc=default usage=0 -> verified ok
# checking addr info proto=UDP desc=default usage=passive -> verified ok
# checking addr info addr=P340 proto=UDP desc=hostname usage=0 -> verified ok
# checking addr info addr=P340 proto=UDP desc=hostname usage=passive -> verified ok
# checking addr info addr=P340.fritz.box proto=UDP desc=fqdn usage=0 -> verified ok
# checking addr info addr=P340.fritz.box proto=UDP desc=fqdn usage=passive -> verified ok
# checking addr info proto=TCP desc=default usage=0 -> verified ok
# checking addr info proto=TCP desc=default usage=passive -> verified ok
# checking addr info addr=P340 proto=TCP desc=hostname usage=0 -> verified ok
# checking addr info addr=P340 proto=TCP desc=hostname usage=passive -> verified ok
# checking addr info addr=P340.fritz.box proto=TCP desc=fqdn usage=0 -> verified ok
# checking addr info addr=P340.fritz.box proto=TCP desc=fqdn usage=passive -> verified ok
# checking IP addresses ... Got 10 IP addresses
None
172.31.192.1
192.168.178.77
127.0.0.1
localhost
192.168.178.27
172.29.176.1
172.25.16.1
0.0.0.0
# checking IP addresses -> verified ok
# checking AdminPort available base=multiprocUDPBase port=1029 -> verified ok
# checking AdminPort available base=multiprocTCPBase port=1900 -> verified ok
# checking socket communications proto=UDP port=1029 -> verified ok
# checking socket communications proto=TCP port=1900 ... Exception in thread TCPclient:
Traceback (most recent call last):
File "C:\Python312\Lib\threading.py", line 1073, in _bootstrap_inner
self.run()
File "C:\Users\wfunk\source\repos\Thespian\thespian\diagnose.py", line 343, in run
self.test_socket(af, proto)
File "C:\Users\wfunk\source\repos\Thespian\thespian\diagnose.py", line 393, in test_socket
r = s.recv(1024)
^^^^^^^^^^^^
ConnectionResetError: [WinError 10054] Eine vorhandene Verbindung wurde vom Remotehost geschlossen
[......server] : did not register successful completion
[......client] : did not register successful completion
# checking socket communications proto=TCP port=1900 has FAILED
-> verified ok
# checking simple actors base=simpleSystemBase ... [Unexpected output] : b'Hello, world!\r\nGoodbye\r\n'
# checking simple actors base=simpleSystemBase has FAILED
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\wfunk\source\repos\Thespian\thespian\diagnose.py", line 439, in <module>
d.check_simple_actors(True, 'simpleSystemBase')
File "C:\Users\wfunk\source\repos\Thespian\thespian\diagnose.py", line 99, in wrap
rval = op(self, *args, **kw)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wfunk\source\repos\Thespian\thespian\diagnose.py", line 330, in check_simple_actors
assert o == exp_o
AssertionError
--- End of script output ---
I should note that everything is fine when running on the same machine under WSL with Ubuntu 22.04 (and on my dedicated Ubuntu 22.04 machine anyway).
Regards,
Wolfgang
P.S.: In line 29 of your script I had to change SetconsoleMode to SetConsoleMode (uppercase C) for running on Windows.