[mythtv-users] HDhomewrun

Hika van den Hoven hikavdh at gmail.com
Thu Apr 13 23:52:05 UTC 2023


Hoi Daryl,

Friday, April 14, 2023, 1:37:29 AM, you wrote:

> Hoi Daryl,

> Friday, April 14, 2023, 1:20:22 AM, you wrote:

>> sometimes they are available - sometimes not. When I run the check
>> script from the terminal I see this:
>> aryl at trieli:/usr/local/bin$ sudo ./hdhomerun_check.py 
>> [sudo] password for daryl: 
>> Traceback (most recent call last):
>>   File "/usr/local/bin/./hdhomerun_check.py", line 64, in <module>
>>     main()
>>   File "/usr/local/bin/./hdhomerun_check.py", line 31, in main
>>     logging.basicConfig(filename='/tmp/hdhr_discovery.log',
>>   File "/usr/lib/python3.10/logging/__init__.py", line 2040, in basicConfig
>>     h = FileHandler(filename, mode,
>>   File "/usr/lib/python3.10/logging/__init__.py", line 1169, in __init__
>>     StreamHandler.__init__(self, self._open())
>>   File "/usr/lib/python3.10/logging/__init__.py", line 1201, in _open
>>     return open_func(self.baseFilename, self.mode,
>> PermissionError: [Errno 13] Permission denied: '/tmp/hdhr_discovery.log'
>> daryl at trieli:/usr/local/bin$



>> How do I correct this?     TIA  Daryl

> My guess is that you have run this script as different users. It looks
> like a bug in the script that does not anticipate this.
> It can not write to the file: '/tmp/hdhr_discovery.log', so remove it,
> if needed with sudo and try the script again.

> If this indeed is the problem, the script should set world permissions
> to the file to rw.

If the script reuses the file you could fix it by manually setting the
word permissions on that file to rw. If it deletes and recreates the
file the script needs fixing.


Tot mails,
  Hika                            mailto:hikavdh at gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens



More information about the mythtv-users mailing list