XBMC Community Forum
mythicalLibrarian - a tool to build Movie and TV Show library from MythTV recordings - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (/forumdisplay.php?fid=116)
+--- Thread: mythicalLibrarian - a tool to build Movie and TV Show library from MythTV recordings (/showthread.php?tid=65644)



upgrade to 924 failed - GregoryK - 2011-02-17 00:34

Hi Adam:

Just tried to upgrade to svn (924) and got a database connection error that I haven't seen before. (mythicalLibrarian has been working fine, but in the grand tradition of fixing what isn't broken, I decided to upgrade since it had been a while since I had...)

Here's what was output during --upgrade:
Code:
Performing MythTV Python Bindings database test
/usr/bin/python2.6
Python2.6 installed
Establishing database connection
Failed: attempting to use system default configuration
Connected to: arbormyth
Db Identified as: sql://mythconverg@localhost:3306/
Diagnostics passed.
Diagnostics failed.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named MythDB.MythTV
/usr/local/bin/mythicalLibrarian: line 1783: test: too many arguments
Establishing database connection
Failed: attempting to use system default configuration
Connected to: arbormyth
Db Identified as: sql://mythconverg@localhost:3306/
Diagnostics passed.
Diagnostics failed.
there was a problem connecting to the database, check MythDatabase package
MythTV Database Test ***FAILED***

...as I said, nothing has changed on my setup, I'm running MythTV 0.24-fixes on 10.04.2. I can successfully login to mysql from the commandline using the user mythtv and the password that was given to mythicalLibrarian in setup.

Anything else I can check on my end?

/Greg


- outleradam - 2011-02-17 04:58

Please test SVN version again. I just committed a change which should exit after Diagnostics Passed.

I can't test. I crashed Mythtv last week while working on getting Ubuntu running on my Android phone. I will be getting MythTV working this weekend. I'm not putting you off, you know how long it takes to reinstall XBMC and Mythtv, then reconfigure everything. It's more of a weekend job then a weekday job.

Here is my other SVN project so far, i call it AndBuntu: https://code.google.com/p/andbuntu/source/browse/trunk/uboot


Let met know if that fix works or not please.


- GregoryK - 2011-02-17 05:33

Adam:

Nope, got the same (or very similar) failure message when trying to upgrade to svn 925:

Code:
Performing MythTV Python Bindings database test
/usr/bin/python2.6
Python2.6 installed
Establishing database connection
Failed: attempting to use system default configuration
Connected to: arbormyth
Db Identified as: sql://mythconverg@localhost:3306/
Diagnostics passed.
Diagnostics failed.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named MythDB.MythTV
/usr/local/bin/mythicalLibrarian: line 1783: test: too many arguments
Establishing database connection
Failed: attempting to use system default configuration
Connected to: arbormyth
Db Identified as: sql://mythconverg@localhost:3306/
Diagnostics passed.
Diagnostics failed.
there was a problem connecting to the database, check MythDatabase package
MythTV Database Test ***FAILED***

/Greg


- outleradam - 2011-02-17 23:45

Same error... That means it did not update the script.. I just remembered that mythicalSetup no longer wastes bandwidth to update the finalized MythDataGrabber.

You can
Code:
sudo rm -f /usr/bin/MythDataGrabber
mythicalLibrarian --update

Sorry... The beta was not a seemless upgrade with MythDataGrabber.


- GregoryK - 2011-02-18 02:18

Adam:

Nope, same result even after doing the 'sudo rm -f /usr/bin/MythDataGrabber' ...

Is there a separate download for MythDataGrabber that I should manually put in /usr/bin?

/Greg


- carmenm - 2011-02-18 15:49

Hi,

I used therenamer under windows to rename movies and tvshows.
Now i am swithcing to Linux. So i am looking for an alternative.
Can i use mythicalLibrarian without mythTV?
I mean can i use mythicalLibrarian to rename/move file downloaded with jdownloader for example?

Thanks


- outleradam - 2011-02-18 22:53

GregoryK, I will be setting up things on my media center this week and hopefully I can recreate your problem so I can fix it on my end. For now, try this..
http://mythicallibrarian.googlecode.com/svn/trunk/pythonBindings/MythDataGrabber
Replace that, then
Code:
chmod 755 /usr/bin/MythDataGrabber
then run
Code:
MythDataGrabber Path_to_MythTv/File.mpg
to test if it's working.

Carmenm: Yes, mythicalLibrarian was designed to support other programs. However, It has not been built in yet except for command line Episode naming. You can run
Code:
mythicalLibrarian /path_to/file.ext "Title"  "Subtitle"
and mythicalLibrarian will name the show with season and episode information in the standard format.

If you want full functionality, you will need guide data to work with. The key elements used are Title, Subtitle, OriginalAirDate and Program/ShowID. These values are enough to make level 4 confidence possible. Level 4 is currently only available for MythTV. Level 0 is available from command line. The scale goes to -6 and is adjusted based upon the number of correct data matches.

If you can find some valid guide data somewhere in jdownloader and it is reproducable, I can make a new database interperater for it in a couple of hours.


- GregoryK - 2011-02-18 23:48

Adam:

No joy. I did replace MythDataGrabber with the version you linked to, and it tested fine as you suggested ... it pulled the data from the database and displayed it as output from the commandline.

But ... I got the same error when running --update to try to update to svn 925.

Because the current-installed version of mythicalLibrarian is still working for me, and because I am heading on vacation, don't rush to fix the problem on my account. Hope you get your system back up and running, though.

Thanks for your support!

/Greg


- outleradam - 2011-02-19 00:32

GregoryK. thank you. it's simply a diagnostics issue and will not affect the core components. Does mythicalLibrarian still run just fine?


- GregoryK - 2011-02-19 00:45

outleradam Wrote:Does mythicalLibrarian still run just fine?

Yes, its running fine. Thanks again!

/Greg


- soulnothing - 2011-02-20 09:18

I could use some help I have been putzing with this on and off for a week looking at prior posts and getting nowhere. This issue seems to be last raised on pg. 60 and 61. I tried alot of the commands listed for ubuntite to try, and not all of them worked 100%, some couldn't find the proper field. Everything seems to be order in mysql, though no errors popping up. I'm running 0.24 on Ubuntu 10.10. EPG data is from mc2xml. I've tried all the different build options upon updating, tried a few different mythdatagrabbers program and that didn't seem to help. So yeah not sure where to go from here.

Pastebin seems down right now, and I have an sql program open here is an excerpt of a single recorded show.
Code:
chanid    starttime    endtime    title    subtitle    description    category    hostname    bookmark    editing    cutlist    autoexpire    commflagged    recgroup    recordid    seriesid    programid    lastmodified    filesize    stars    previouslyshown    originalairdate    preserve    findid    deletepending    transcoder    timestretch    recpriority    basename    progstart    progend    playgroup    profile    duplicate    transcoded    watched    storagegroup    bookmarkupdate
1078    2011-02-11 21:00:00    2011-02-11 22:00:00    Fringe    Immortality    A terrorist ``over there'' arms himself with an insect that enjoys human flesh; alternate Olivia is reunited with her boyfriend; despite remaining determined to save his world, Walternate discovers there are lines he won't cross.    drama    AUTUMN    0    0    0    1    1    Default    4    81331413    EP010591030061    2011-02-11 22:10:54    2573935344    0    0    0000-00-00    0    0    0    0    1    90    1078_20110211210000.mpg    2011-02-11 21:00:00    2011-02-11 22:00:00    Default    High Quality    1    0    0    Default    0000-00-00 00:00:00
Code:
Establishing database connection
Traceback (most recent call last):
  File "/usr/local/bin/MythDataGrabber", line 204, in <module>
    rec = db.searchRecorded(basename=options['filename']).next()
  File "/usr/lib/python2.6/dist-packages/MythTV/MythFunc.py", line 60, in __call__
    % (self.__name__, key))
TypeError: searchRecorded got an unexpected keyword arguemnt 'basename'

Thanks Soul


- outleradam - 2011-02-20 15:22

The error states that SearchRecorded got an unexpected keyword. That means it's probly a wrong version. Try MythTV 0.23..

use this pastebin instead http://paste.ubuntu.com/

What version of MythTV are you running?


- soulnothing - 2011-02-20 22:21

I'm running
myth 0.24
ubuntu 10.10

To downgrade I would need to either hand compile or downgrade the whole os. So there are compatibility issues with 0.24 as well. I thought I saw that earlier in the thread but I though they had been resolved.


- outleradam - 2011-02-21 00:09

Well, I'm setting up mythtv again as we speak... I destroyed it last week by accidentally deleting my /etc/passwd and my /etc/group files. I thought I was working with my phone... I'll get it working shortly.


- outleradam - 2011-02-21 00:09

You said you compiled by hand. You may need to install mythtv python bindings.