Opened 14 years ago

Closed 14 years ago

#8023 closed defect (fixed)

Jamu.py tracebacks after update mythtv

Reported by: phonk@… Owned by: Anduin Withers
Priority: major Milestone: 0.22.1
Component: Plugin - MythVideo Version: 0.22
Severity: medium Keywords: jamu, traceback
Cc: Ticket locked: no

Description

Hello there,

Last week I updated my mythtv installation with the binaries from atrpms.

I am now on version: 0.22-226.fc12

But now jamu.py throws tracebacks:

Traceback (most recent call last):
  File "/usr/share/mythtv/mythvideo/scripts/jamu.py", line 6546, in <module>
    main()
  File "/usr/share/mythtv/mythvideo/scripts/jamu.py", line 6531, in main
    process.processMythTvMetaData()
  File "/usr/share/mythtv/mythvideo/scripts/jamu.py", line 6224, in processMythTvMetaData
    posterdirs = self.config['posters']
KeyError: 'posters'

This happened on 2 PCs ... the other pc got the KeyError?: 'fanart'

Change History (6)

comment:1 Changed 14 years ago by r.d.vaughan@…

Please provide the following information. You may need to use the actual directory path for the location of jamu.py

1) Run in a terminal to get the jamu version number:

./jamu.py -v

If the version number is less that v0.6.0 then please upgrade Jamu from 0.22+fixes and see if you still have the issue.

If you are running Jamu v0.5.9 or higher then:

2) Run in a terminal to get the jamu configuration information:

./jamu.py -MVf

Copy the resulting information and post a pastebin link back to this ticket.

Thanks

comment:2 Changed 14 years ago by robertm

Status: newinfoneeded_new

comment:3 Changed 14 years ago by phonk@…

[root@mythserver ~]# python /usr/share/mythtv/mythvideo/scripts/jamu.py -v


! Warning - The module xml (v41660 or greater) must be installed. Your version is different (v0.8.4) than what Jamu was tested with. Jamu may not work on your installation.
It is recommended that you upgrade.


Title: (JAMU - Just.Another.Metadata.Utility); Version: (v0.6.0); Author: (R.D.Vaughan)

This python script is intended to perform a variety of utility functions on mythvideo metadata
and the associated video files.

The primary movie source for graphics and data is themoviedb.com wiki.
The primary TV Series source for graphics and data is thetvdb.com wiki.
Users of this script are encouraged to populate both themoviedb.com and thetvdb.com with posters,
fan art and banners and meta data. The richer the source the more valuable the script.

[root@mythserver ~]# python /usr/share/mythtv/mythvideo/scripts/jamu.py -v


! Warning - The module xml (v41660 or greater) must be installed. Your version is different (v0.8.4) than what Jamu was tested with. Jamu may not work on your installation.
It is recommended that you upgrade.


Title: (JAMU - Just.Another.Metadata.Utility); Version: (v0.6.0); Author: (R.D.Vaughan)

This python script is intended to perform a variety of utility functions on mythvideo metadata
and the associated video files.

The primary movie source for graphics and data is themoviedb.com wiki.
The primary TV Series source for graphics and data is thetvdb.com wiki.
Users of this script are encouraged to populate both themoviedb.com and thetvdb.com with posters,
fan art and banners and meta data. The richer the source the more valuable the script.

[root@mythserver ~]# python /usr/share/mythtv/mythvideo/scripts/jamu.py -MVf


! Warning - The module xml (v41660 or greater) must be installed. Your version is different (v0.8.4) than what Jamu was tested with. Jamu may not work on your installation.
It is recommended that you upgrade.


There was no default Jamu configuration file found (/root/.mythtv/jamu.conf)


! Info: You have a front end directory path that is a duplicate of this backend's storage group.
Front end directory (/exchange/mythtv/screenshots)
The Front end setting has been ignored.

! Info: You have a front end directory path that is a duplicate of this backend's storage group.
Front end directory (/exchange/mythtv/fanart)
The Front end setting has been ignored.

! Warning: You have a front end video directory path that is a duplicate of this backend's 'Videos' storage group.
Front end directory (/exchange/mythtv/videos)
The Front end setting has been ignored.
This Front end video directory will cause duplicate entires in MythVideo.

! Info: You have a front end directory path that is a duplicate of this backend's storage group.
Front end directory (/exchange/mythtv/banners)
The Front end setting has been ignored.

==========================================================================================
Listed below are the types and base directories Jamu will use for processing.
The list reflects your current configuration for the 'mythserver.localdomain' back end
and whether a directory is a 'SG' (storage group) or not.
Note: All directories are from settings in the MythDB specific to hostname (mythserver.localdomain).
Note: Screenshot directories are not listed as Jamu does not process Screenshots.
------------------------------------------------------------------------------------------
Type: Fan art     - SG-YES - Directory: (/exchange/mythtv/fanart)
Type: Video       - SG-YES - Directory: (/exchange/mythtv/videos)
Type: Cover art   - SG-YES - Directory: (/exchange/mythtv/coverart)
Type: Cover art   - SG-NO  - Directory: (/exchange/mythtv/artwork)
Type: Banners     - SG-YES - Directory: (/exchange/mythtv/banners)
------------------------------------------------------------------------------------------
If a directory you set from a separate Front end is not displayed it means
that the directory is not accessible from this backend OR
you must add the missing directories using the Front end on this Back end.
Front end settings are host machine specific.
==========================================================================================

allgraphicsdir (/root)
bannerdir ([u'/exchange/mythtv/banners'])
config_file (False)
data_flags (None)
debug_enabled (False)
download (False)
dvd ( - On DVD)
ep_include_data ([u'series', u'seasonnumber', u'episodenumber', u'episodename', u'rating', u'overview', u'director', u'writer', u'cast', u'gueststars', u'imdb_id', u'filename', u'epimgflag', u'language', u'runtime', u'firstaired', u'genres', u'lastupdated', u'productioncode', u'id', u'seriesid', u'seasonid', u'absolute_number', u'combined_season', u'combined_episodenumber', u'dvd_season', u'dvd_discid', u'dvd_chapter', u'dvd_episodenumber'])
ep_metadata (%(series)s - S%(seasonnumber)02dE%(episodenumber)02d - %(episodename)s.%(ext)s)
ep_name_massage (False)
episode_name (None)
episode_num (None)
episodeimagedir ([u'/exchange/mythtv/screenshots'])
fanartdir ([u'/exchange/mythtv/fanart'])
fanartresize (False)
ffmpeg (True)
file_move_flag (False)
filename_char_filter (/%)
flags_options (False)
folderart (False)
g_defaultname (True)
g_season (%(series)s - %(seasonnumber)02d-%(seq)s.%(ext)s)
g_series (%(series)s - %(seq)s.%(ext)s)
get_banner (False)
get_ep_image (False)
get_ep_meta (False)
get_fanart (False)
get_poster (False)
hd_dvd ( HD - On DVD)
image_library (<module 'Image' from '/usr/lib/python2.6/site-packages/PIL/Image.pyc'>)
interactive (False)
local_language (en)
localpaths ({'episodeimagedir': [u'/exchange/mythtv/screenshots'], 'fanartdir': [u'/exchange/mythtv/fanart'], 'posterdir': [u'/exchange/mythtv/artwork'], 'mythvideo': [u'/exchange/mythtv/videos'], 'bannerdir': [u'/exchange/mythtv/banners']})
maximum (None)
mb_movies ({})
mb_tv_channels ({})
metadata_exclude_as_update_trigger (['intid', 'season', 'episode', 'showlevel', 'filename', 'coverfile', 'childid', 'browse', 'playcommand', 'trailer', 'host', 'screenshot', 'banner', 'fanart'])
metadatadir (None)
min_poster_size (400)
myth_secondary_sources ({})
mythtvNFS (False)
mythtv_guess (False)
mythtv_inetref (False)
mythtv_verbose (True)
mythtv_watched (False)
mythtvdir (False)
mythtvjanitor (False)
mythtvmeta (True)
mythvideo ([u'/exchange/mythtv/videos'])
name_parse (5 items)
nokeys (False)
overwrite (False)
posterdir ([u'/exchange/mythtv/coverart', u'/exchange/mythtv/artwork'])
posterresize (False)
recursive (True)
ret_filename (False)
season_dir_pattern ([<_sre.SRE_Pattern object at 0xb72eb210>, <_sre.SRE_Pattern object at 0x9697af8>, <_sre.SRE_Pattern object at 0xb730d020>, <_sre.SRE_Pattern object at 0xb72f11d0>])
season_num (None)
series_name (None)
series_name_override (False)
sid (None)
simulation (False)
tmdb_genre_filter (['action film', 'adventure film', 'comedy', 'crime film', 'disaster film', 'documentary film', 'drama film', 'eastern', 'environmental', 'fantasy film', 'historical film', 'horror film', 'musical film', 'mystery', 'mystery film', 'road movie', 'science fiction film', 'sport', 'thriller', 'western', 'film noir', 'cult movie', 'neo-noir', 'guy movie'])
toprated (False)
update (False)
user_config (None)
video_dir (None)
video_file_exts ([u'3gp', u'asf', u'asx', u'avi', u'mkv', u'mov', u'mp4', u'mpg', u'qt', u'rm', u'swf', u'wmv', u'm2ts', u'ts', u'evo', u'img', u'iso', u'vob', u'mpeg', u'video_ts', u'divx', u'ogg', u'ogm', u'flv'])
with_ep_name (%(series)s - S%(seasonnumber)02dE%(episodenumber)02d - %(episodename)s.%(ext)s)
without_ep_name (%(series)s - S%(seasonnumber)02dE%(episodenumber)02d.%(ext)s)

comment:4 in reply to:  2 Changed 14 years ago by anonymous

Replying to robertm: Information posted.

comment:5 Changed 14 years ago by phonk@…

I saw that no jamu.conf was used in the post.

I copied my to /root/.mythtv/jamu.conf

Here the new output:

[root@mythserver ~]# python /usr/share/mythtv/mythvideo/scripts/jamu.py -MVf


! Warning - The module xml (v41660 or greater) must be installed. Your version is different (v0.8.4) than what Jamu was tested with. Jamu may not work on your installation.
It is recommended that you upgrade.


! Info: You have a front end directory path that is a duplicate of this backend's storage group.
Front end directory (/exchange/mythtv/screenshots)
The Front end setting has been ignored.

! Info: You have a front end directory path that is a duplicate of this backend's storage group.
Front end directory (/exchange/mythtv/fanart)
The Front end setting has been ignored.

! Warning: You have a front end video directory path that is a duplicate of this backend's 'Videos' storage group.
Front end directory (/exchange/mythtv/videos)
The Front end setting has been ignored.
This Front end video directory will cause duplicate entires in MythVideo.

! Info: You have a front end directory path that is a duplicate of this backend's storage group.
Front end directory (/exchange/mythtv/banners)
The Front end setting has been ignored.

==========================================================================================
Listed below are the types and base directories Jamu will use for processing.
The list reflects your current configuration for the 'mythserver.localdomain' back end
and whether a directory is a 'SG' (storage group) or not.
Note: All directories are from settings in the MythDB specific to hostname (mythserver.localdomain).
Note: Screenshot directories are not listed as Jamu does not process Screenshots.
------------------------------------------------------------------------------------------
Type: Fan art     - SG-YES - Directory: (/exchange/mythtv/fanart)
Type: Video       - SG-YES - Directory: (/exchange/mythtv/videos)
Type: Cover art   - SG-YES - Directory: (/exchange/mythtv/coverart)
Type: Cover art   - SG-NO  - Directory: (/exchange/mythtv/artwork)
Type: Banners     - SG-YES - Directory: (/exchange/mythtv/banners)
------------------------------------------------------------------------------------------
If a directory you set from a separate Front end is not displayed it means
that the directory is not accessible from this backend OR
you must add the missing directories using the Front end on this Back end.
Front end settings are host machine specific.
==========================================================================================

allgraphicsdir (/tmp)
bannerdir ([u'/exchange/mythtv/banners'])
config_file (jamu-example.conf)
data_flags (PBFEI)
debug_enabled (False)
download (True)
dvd ( - On DVD)
ep_include_data ([u'series', u'seasonnumber', u'episodenumber', u'episodename', u'rating', u'overview', u'director', u'writer', u'cast', u'gueststars', u'imdb_id', u'filename', u'epimgflag', u'language', u'runtime', u'firstaired', u'genres', u'lastupdated', u'productioncode', u'id', u'seriesid', u'seasonid', u'absolute_number', u'combined_season', u'combined_episodenumber', u'dvd_season', u'dvd_discid', u'dvd_chapter', u'dvd_episodenumber'])
ep_metadata (%(series)s - S%(seasonnumber)02dE%(episodenumber)02d - %(episodename)s.%(ext)s)
ep_name_massage ({'24': [['PM', ' PM'], ['AM', ' AM'], ['M-', 'M - ']]})
episode_name (None)
episode_num (None)
episodeimagedir ([u'/exchange/mythtv/screenshots'])
fanartdir ([u'/exchange/mythtv/fanart'])
fanartresize (False)
ffmpeg (True)
file_move_flag (False)
filename_char_filter (/%)
flags_options (False)
folderart (True)
g_defaultname (True)
g_season (%(series)s - %(seasonnumber)02d-%(seq)s.%(ext)s)
g_series (%(series)s - %(seq)s.%(ext)s)
get_banner (True)
get_ep_image (True)
get_ep_meta (True)
get_fanart (True)
get_poster (True)
hd_dvd ( HD - On DVD)
image_library (<module 'Image' from '/usr/lib/python2.6/site-packages/PIL/Image.pyc'>)
interactive (False)
local_language (de)
localpaths ({'episodeimagedir': [u'/exchange/mythtv/screenshots'], 'fanartdir': [u'/exchange/mythtv/fanart'], 'posterdir': [u'/exchange/mythtv/artwork'], 'mythvideo': [u'/exchange/mythtv/videos'], 'bannerdir': [u'/exchange/mythtv/banners']})
maximum (None)
mb_movies ({'hdtrailersnet blog': '(', 'timos hd movie trailers': '-'})
mb_tv_channels ({'epic fu': ['82479', u''], 'nature pbs': ['81157', u''], 'coop': ['85446', u''], 'hd nation': ['104421', u''], 'tekzilla hd': ['80668', u''], 'the totally rad show': ['80140', u''], 'the gigaom show': ['81987', u''], 'ifanboy': ['81988', u''], 'the onion news network': ['85342', u''], 'diggnation': ['79013', u''], 'rofl': ['110121', u''], 'tekzilla daily': ['80668', u''], 'pixelperfect': ['81217', u''], 'internet superstar': ['81447', u''], 'nova vodcast pbs': ['76119', u''], 'social brew': ['81986', u''], 'scam school': ['81733', u''], 'the digg reel': ['81216', u''], 'xlr8r tv': ['82039', u''], 'revision3': ['79935', u'']})
metadata_exclude_as_update_trigger (['intid', 'season', 'episode', 'showlevel', 'filename', 'coverfile', 'childid', 'browse', 'playcommand', 'trailer', 'host', 'screenshot', 'banner', 'fanart'])
metadatadir (/exchange/mythtv/meta)
min_poster_size (200)
myth_secondary_sources ({})
mythtvNFS (False)
mythtv_guess (False)
mythtv_inetref (False)
mythtv_verbose (True)
mythtv_watched (False)
mythtvdir (True)
mythtvjanitor (False)
mythtvmeta (True)
mythvideo ([u'/exchange/mythtv/videos'])
name_parse (5 items)
nokeys (False)
overwrite (False)
posterdir ([u'/exchange/mythtv/coverart', u'/exchange/mythtv/artwork'])
posterresize (False)
recursive (True)
ret_filename (False)
season_dir_pattern ([<_sre.SRE_Pattern object at 0xb7470210>, <_sre.SRE_Pattern object at 0x93d2af8>, <_sre.SRE_Pattern object at 0xb7492020>, <_sre.SRE_Pattern object at 0xb74761d0>])
season_num (None)
series_name (None)
series_name_override ({'life on mars (us)': '82289', 'frontline/world': '80646', 'stargate sg-1': '72449', "the no. 1 ladies' detective agency": '81606', 'merlin (2008)': '83123', 'merlin': '83123', 'the beast': '83805', 'eleventh hour': '83066', 'frontline': '80646', 'the beast (2009)': '83805', 'dracula': '0103874', 'akte-x': '77398', 'defying gravity': '104581', 'eleventh hour (us)': '83066', 'house of saddam': '82624', 'the daily show with jon stewart': '71256', 'life on mars': '82289', 'castle (2009)': '83462', 'moby dick': '0049513', 'u': '0141926', 'the forgotten': '94981', 'murder at': '0119731', 'castle': '83462'})
sid (None)
simulation (False)
tmdb_genre_filter (['action film', 'adventure film', 'comedy', 'crime film', 'disaster film', 'documentary film', 'drama film', 'eastern', 'environmental', 'fantasy film', 'historical film', 'horror film', 'musical film', 'mystery', 'mystery film', 'road movie', 'science fiction film', 'sport', 'thriller', 'western', 'film noir', 'cult movie', 'neo-noir', 'guy movie'])
toprated (False)
update (True)
user_config (None)
video_dir (None)
video_file_exts ([u'3gp', u'asf', u'asx', u'avi', u'mkv', u'mov', u'mp4', u'mpg', u'qt', u'rm', u'swf', u'wmv', u'm2ts', u'ts', u'evo', u'img', u'iso', u'vob', u'mpeg', u'video_ts', u'divx', u'ogg', u'ogm', u'flv'])
with_ep_name (%(series)s - S%(seasonnumber)02dE%(episodenumber)02d - %(episodename)s.%(ext)s)
without_ep_name (%(series)s - S%(seasonnumber)02dE%(episodenumber)02d.%(ext)s)

comment:6 Changed 14 years ago by robertm

Resolution: fixed
Status: infoneeded_newclosed

(In [23469]) Fix #8023. Only applies to -fixes. Fix a Jamu typo.

Note: See TracTickets for help on using tickets.