2023-02-12, 01:06 PM
Tried to isolate the # sections. I went threw them all. I have all uncommented but these 3 and the notable comments. These are the errors for each and the number and command they correspond to when the pipe window was exited
sudo python3 opendct.py "START" "DCT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 1" 1110 | ffplay -i pipe: -v panic
126
#print ('listening')
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
127
#print("Connection from: " + str(address))
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe
136
#print(data)
[Errno 32] Broken pipe
Traceback (most recent call last):
File "/var/opt/nextpvr/scripts/opendct.py", line 136, in media_server
print(data)
BrokenPipeError: [Errno 32] Broken pipe
=====================================================
this command seems to work to keep it in python. But when I control-c to stop it I get this error
sudo bash opendct.sh 1110 "DCT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 1" > file
Traceback (most recent call last):
File "/var/opt/nextpvr/scripts/opendct.py", line 221, in <module>
main(sys.argv)
File "/var/opt/nextpvr/scripts/opendct.py", line 58, in main
mediaServerThread.join()
File "/usr/lib/python3.10/threading.py", line 1096, in join
self._wait_for_tstate_lock()
File "/usr/lib/python3.10/threading.py", line 1116, in _wait_for_tstate_lock
if lock.acquire(block, timeout):
KeyboardInterrupt
sudo python3 opendct.py "START" "DCT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 1" 1110 | ffplay -i pipe: -v panic
126
#print ('listening')
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
127
#print("Connection from: " + str(address))
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe
136
#print(data)
[Errno 32] Broken pipe
Traceback (most recent call last):
File "/var/opt/nextpvr/scripts/opendct.py", line 136, in media_server
print(data)
BrokenPipeError: [Errno 32] Broken pipe
=====================================================
this command seems to work to keep it in python. But when I control-c to stop it I get this error
sudo bash opendct.sh 1110 "DCT-Ceton InfiniTV PCIe (00-80-84-b9) Tuner 1" > file
Traceback (most recent call last):
File "/var/opt/nextpvr/scripts/opendct.py", line 221, in <module>
main(sys.argv)
File "/var/opt/nextpvr/scripts/opendct.py", line 58, in main
mediaServerThread.join()
File "/usr/lib/python3.10/threading.py", line 1096, in join
self._wait_for_tstate_lock()
File "/usr/lib/python3.10/threading.py", line 1116, in _wait_for_tstate_lock
if lock.acquire(block, timeout):
KeyboardInterrupt