[mythtv-users] find_orphans.py broken on 32 bit x86?

Tom Dexter digitalaudiorock at gmail.com
Wed Oct 31 18:56:13 UTC 2018


In a previous email about removing orphaned recordings with missing
files, I described an error I was getting attempting to use the option
"1. Delete orphaned recording entries". I just set up a test by
creating a recording and moving it's video file and verified that I
get this error every time I attempt to use that option:

Please select from the following
 1. Delete orphaned recording entries
 2. Delete orphaned snapshots
 3. Refresh list
> 1
The following recordings will be deleted
  mythback: The Talk
       1021_20181031184000.ts

           Count:           1
Are you sure you want to continue?
> yes
Traceback (most recent call last):
  File "./find_orphans.py", line 230, in <module>
    main()
  File "./find_orphans.py", line 214, in main
    opt[1](opt[2])
  File "./find_orphans.py", line 129, in delete_recs
    rec.delete(True, True)
  File "/usr/lib/python2.7/site-packages/MythTV/dataheap.py", line
375, in delete
    return self.getProgram().delete(force, rerecord)
  File "/usr/lib/python2.7/site-packages/MythTV/dataheap.py", line
387, in getProgram
    return Program.fromRecorded(self)
  File "/usr/lib/python2.7/site-packages/MythTV/mythproto.py", line
946, in fromRecorded
    return be.getRecording(rec.chanid, rec.starttime)
  File "/usr/lib/python2.7/site-packages/MythTV/mythproto.py", line
647, in getRecording
    return Program(res[1:], db=self.db)
  File "/usr/lib/python2.7/site-packages/MythTV/mythproto.py", line
875, in __init__
    DictData.__init__(self, raw)
  File "/usr/lib/python2.7/site-packages/MythTV/altdict.py", line 148,
in __init__
    data = self._process(data)
  File "/usr/lib/python2.7/site-packages/MythTV/altdict.py", line 164,
in _process
    data[i] = self._trans[self._field_type[i]](v)
  File "/usr/lib/python2.7/site-packages/MythTV/altdict.py", line 104,
in <lambda>
    lambda x: datetime.fromtimestamp(x, datetime.UTCTZ())\
  File "/usr/lib/python2.7/site-packages/MythTV/utility/dt.py", line
304, in fromtimestamp
    obj = super(datetime, cls).fromtimestamp(float(timestamp), tz)
ValueError: timestamp out of range for platform time_t

I'm pretty sure that the limit for that time_t may be 2147483647 on
x86 and 67768036191676795 on 64 bit systems(?). Has anyone here ever
used that option on a 32 bit system?

Thanks!
Tom


More information about the mythtv-users mailing list