tmdb3.py crashed with TMDBRequestInvalid in handle_status(): Invalid id - The pre-requisite id is invalid or not found.

Bug #1236657 reported by vbcoen
154
This bug affects 31 people
Affects Status Importance Assigned to Milestone
mythtv (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

PC auto starts at fixed time each time at 18:25.

When into PC via TV amd this error was displayed with front end showing.

This happens every day. I am on the 0.27 pach updates etc and system is current.

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: mythtv-common 2:0.27.0+fixes.20131006.77db957-0ubuntu0mythbuntu2 [origin: LP-PPA-mythbuntu-0.27]
ProcVersionSignature: Ubuntu 3.2.0-54.82-generic-pae 3.2.50
Uname: Linux 3.2.0-54-generic-pae i686
NonfreeKernelModules: nvidia
.var.log.mythtv.mythavtest.log:

.var.log.mythtv.mythccextractor.log:

.var.log.mythtv.mythjobqueue.log:

.var.log.mythtv.mythlcdserver.log:

.var.log.mythtv.mythmediaserver.log:

.var.log.mythtv.mythshutdown.log:

.var.log.mythtv.mythtranscode.log:

.var.log.mythtv.mythutil.log:

.var.log.mythtv.mythwelcome.log:

ApportVersion: 2.0.1-0ubuntu17.5
Architecture: i386
CrashCounter: 1
CrashDB: mythbuntu
Date: Mon Oct 7 04:24:48 2013
ExecutablePath: /usr/share/mythtv/metadata/Movie/tmdb3.py
InstallationMedia: Mythbuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100427.1)
Installed_mythtv_dbg: 2:0.27.0+fixes.20131006.77db957-0ubuntu0mythbuntu2
InterpreterPath: /usr/bin/python2.7
MarkForUpload: True
ProcCmdline: python /usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a GB -D 266092
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
 LANG=en_GB.utf8
PythonArgs: ['/usr/share/mythtv/metadata/Movie/tmdb3.py', '-l', 'en', '-a', 'GB', '-D', '266092']
SourcePackage: mythtv
Title: tmdb3.py crashed with TMDBRequestInvalid in handle_status(): Invalid id - The pre-requisite id is invalid or not found.
UpgradeStatus: Upgraded to precise on 2012-10-25 (347 days ago)
UserGroups: audio cdrom dialout video

Revision history for this message
vbcoen (vbcoen) wrote :
information type: Private → Public
Revision history for this message
Stefan Pappalardo (sjuk) wrote :

I can confirm the issue. Perhaps it has something to do with an ID which only exists on IMDB but not on TMDB?!? Has got someone an Idea how to reproduce the crash. So that someone can have a look at the tmdb3.py script.

Revision history for this message
Alistair Grant (akgrant0710) wrote :

The following will reproduce the crash. From memory this was Nine News in Melbourne (Australia):

$ /usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a US -D 99151

Cheers,
Alistair

Revision history for this message
Stefan Pappalardo (sjuk) wrote :

Thank you. The same issue on my box.

$ /usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a US -D 99151
Traceback (most recent call last):
  File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 278, in <module> main()
  File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 272, in main buildSingle(args[0], opts)
  File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 50, in buildSingle if getattr(movie, j):
  File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/util.py", line 143, in __get__ self.poller.__get__(inst, owner)()
  File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/util.py", line 67, in __call__ if not self.apply(req.readJSON(), False):
  File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/cache.py", line 111, in __call__ data = self.func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/request.py", line 119, in readJSON handle_status(data, url)
  File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/request.py", line 158, in handle_status raise status
MythTV.tmdb3.tmdb_exceptions.TMDBRequestInvalid: Invalid id - The pre-requisite id is invalid or not found.

In my opinion tmdb3.py has to expect that a search can fail.
Perhaps there is something wrong with the handle of failed searches?!?

Revision history for this message
vbcoen (vbcoen) wrote : Re: [Bug 1236657] Re: tmdb3.py crashed with TMDBRequestInvalid in handle_status(): Invalid id - The pre-requisite id is invalid or not found.

In my system I have to use both as not all stations are available on in-Air.

Vince

On 22/12/13 09:38, Stefan Pappalardo wrote:
> I can confirm the issue. Perhaps it has something to do with an ID which
> only exists on IMDB but not on TMDB?!? Has got someone an Idea how to
> reproduce the crash. So that someone can have a look at the tmdb3.py
> script.
>

Revision history for this message
Stefan Pappalardo (sjuk) wrote :

I have to do nothing. Mythtv gets the metadata by it's own. There is no choice for IMDB or TMDB in mythtv 0.26.

Vince wrote:
> In my system I have to use both as not all stations are available on in-Air.
>
> Vince

Revision history for this message
Stefan Pappalardo (sjuk) wrote :

The Issue is still there with mythtv 0.27 on ubuntu 12.04...
$ /usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a US -D 99151
Traceback (most recent call last):
  File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 303, in <module>
    main()
  File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 297, in main
    buildSingle(args[0], opts)
  File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 52, in buildSingle
    if getattr(movie, j):
  File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/util.py", line 153, in __get__
    self.poller.__get__(inst, owner)()
  File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/util.py", line 70, in __call__
    if not self.apply(req.readJSON(), False):
  File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/cache.py", line 118, in __call__
    data = self.func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/request.py", line 128, in readJSON
    handle_status(data, url)
  File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/request.py", line 167, in handle_status
    raise status
MythTV.tmdb3.tmdb_exceptions.TMDBRequestInvalid: Invalid id - The pre-requisite id is invalid or not found.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Revision history for this message
Stefan Pappalardo (sjuk) wrote :

package added

affects: mythbuntu → mythtv (Ubuntu)
Changed in mythtv (Ubuntu):
status: New → Confirmed
tags: removed: need-duplicate-check
Changed in mythtv (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mythtv (Ubuntu):
status: New → Confirmed
Revision history for this message
brik (brian-peppel) wrote :

https://bugs.launchpad.net/mythbuntu/+bug/1306707 is same. Hopefully this additional info will help the developers.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.