Linux HOW-TO playback Blu-ray Disc in XBMC for Linux with MakeMKV (Plugin Addon)

  Thread Rating:
  • 10 Votes - 4.3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
magnetism Offline
Senior Member
Posts: 135
Joined: Dec 2008
Reputation: 0
Post: #391
fiveisalive Wrote:Tried the 1.1 version on Linux with 1.7.0 on Dharma 10.1, got the following:

Code:
6:36:18 T:139820424746752 M:3163836416   ERROR: Error Type: exceptions.TypeError
16:36:18 T:139820424746752 M:3163836416   ERROR: Error Contents: NamedTemporaryFile() got an unexpected keyword argument 'delete'
16:36:18 T:139820424746752 M:3163836416   ERROR: Traceback (most recent call last):
                                              File "/home/myth/.xbmc/addons/plugin.makemkvbluray/default.py", line 196, in ?
                                                mydisplay.handleListing()
                                              File "/home/myth/.xbmc/addons/plugin.makemkvbluray/default.py", line 88, in handleListing
                                                self.CATEGORIES()
                                              File "/home/myth/.xbmc/addons/plugin.makemkvbluray/default.py", line 153, in CATEGORIES
                                                disclist = self.makemkv.discList()
                                              File "/home/myth/.xbmc/addons/plugin.makemkvbluray/resources/lib/makemkv.py", line 13, in discList
                                                tmpf = tempfile.NamedTemporaryFile(delete=True)
                                            TypeError: NamedTemporaryFile() got an unexpected keyword argument 'delete'
16:

Looking at http://docs.python.org/library/tempfile.html it appears that the "delete" parameter was added in Python 2.6, but by default Dharma/10.1 builds against a bundled version of Python 2.4.

Yes, this new version will work with eden only. Sorry.
find quote
fiveisalive Offline
Fan
Posts: 345
Joined: Jul 2009
Reputation: 0
Location: United States
Post: #392
magnetism Wrote:Yes, this new version will work with eden only. Sorry.

Can't you create compatibility code? If it's only that one change that's needed, I can easily create a patch and post it on github that will use a fallback method to create the tempfile.
find quote
magnetism Offline
Senior Member
Posts: 135
Joined: Dec 2008
Reputation: 0
Post: #393
fiveisalive Wrote:Can't you create compatibility code? If it's only that one change that's needed, I can easily create a patch and post it on github that will use a fallback method to create the tempfile.

Well, no. Or rather I could, but:

- Eden is close, since we're in beta 1 now
- I don't have a 10.1 release to test it against
- I don't have time

so I don't want to.

Patches welcome though, so feel free to shoot me a pull request.
find quote
Mudislander Offline
Skilled Skinner
Posts: 1,155
Joined: Jun 2009
Reputation: 20
Post: #394
Really chauffed yoy're working on this again Big Grin

Quick test on my Win7 laptop I get a script failed message with the following error in log
Code:
17:47:39 T:5076  NOTICE: -->Python Interpreter Initialized<--
17:47:39 T:5076   ERROR: Error Type: <type 'exceptions.ImportError'>
17:47:39 T:5076   ERROR: Error Contents: No module named settings
17:47:39 T:5076   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Bruce\AppData\Roaming\XBMC\addons\plugin.makemkvbluray\default.py", line 20, in <module>
                                                import settings, file, mkvparser, brlog, makemkv
                                            ImportError: No module named settings
17:47:39 T:4168   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.makemkvbluray
17:47:39 T:4168   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.makemkvbluray) failed
17:47:40 T:3968  NOTICE: -->Python Interpreter Initialized<--

As soon as I can prize wife off the TV I'll try it on my main linux machine.
Just an observation but I notice you've dropped the ".video." from the plugin name, I'm just checking so as to get my menu shortcut correct.

Noli illegitimi carborundum
find quote
magnetism Offline
Senior Member
Posts: 135
Joined: Dec 2008
Reputation: 0
Post: #395
Mudislander Wrote:Really chauffed yoy're working on this again Big Grin

Quick test on my Win7 laptop I get a script failed message with the following error in log
Code:
17:47:39 T:5076  NOTICE: -->Python Interpreter Initialized<--
17:47:39 T:5076   ERROR: Error Type: <type 'exceptions.ImportError'>
17:47:39 T:5076   ERROR: Error Contents: No module named settings
17:47:39 T:5076   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Bruce\AppData\Roaming\XBMC\addons\plugin.makemkvbluray\default.py", line 20, in <module>
                                                import settings, file, mkvparser, brlog, makemkv
                                            ImportError: No module named settings
17:47:39 T:4168   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.makemkvbluray
17:47:39 T:4168   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.makemkvbluray) failed
17:47:40 T:3968  NOTICE: -->Python Interpreter Initialized<--

As soon as I can prize wife off the TV I'll try it on my main linux machine.
Just an observation but I notice you've dropped the ".video." from the plugin name, I'm just checking so as to get my menu shortcut correct.

Hmm, strange. I don't have that problem. Settings is from my own plugin, so that should work. Unless
Code:
os.path.join( xbmcaddon.Addon().getAddonInfo('path'), "resources" )
doesn't work on windows as it should..

You're on eden-pre?
find quote
magnetism Offline
Senior Member
Posts: 135
Joined: Dec 2008
Reputation: 0
Post: #396
Oh, and regarding the .video. thing. I never had it locally .... So I guess I changed it a long time ago here.. It might make more sense to include it actually since it is a video plugin.
Something to ponder Wink
find quote
Mudislander Offline
Skilled Skinner
Posts: 1,155
Joined: Jun 2009
Reputation: 20
Post: #397
Quote:You're on eden-pre?

Yep Eden Beta 1 - compiled 24th Dec

Noli illegitimi carborundum
find quote
magnetism Offline
Senior Member
Posts: 135
Joined: Dec 2008
Reputation: 0
Post: #398
Mudislander Wrote:Yep Eden Beta 1 - compiled 24th Dec

Right, I've made a small change, since the path calculation wasn't using my plugin ID. I've pushed it to github, so if you've got access you can get a new version now. Otherwise you'll have to wait a while.
find quote
Mudislander Offline
Skilled Skinner
Posts: 1,155
Joined: Jun 2009
Reputation: 20
Post: #399
Thanks, I'll get it shortly.

Noli illegitimi carborundum
find quote
LastCoder Offline
Fan
Posts: 345
Joined: Dec 2011
Reputation: 0
Post: #400
Hi,

very cool addon .. helps me increasing WAF for my HTPC Laugh

Unfortunately

- the latest addon version (plugin.makemkvbluray-1.1) raises script error (XBMC PVR Eden Beta Build 4. Jan 2012),

- the one from the #1 post here starts without error, the first minutes the drive is reading and working, something happens - but doesn't stream (nothing happens, XBMC freezes)

MakeMKV itself works, dumping and even streaming, tested with MPlayer ..

If you need log-info, plz tell where to find, I'll post it ..

So long

LastCoder

Ubuntu 12.04 LTS Server, LXDE, XBMC Frodo, Skin "Aeon Nox 4", TVHeadEnd TV Backend
ASUS P8H61-M LE/USB3, Celeron G530 w. iGPU Intel HD, 4 GB DDR3 RAM
16 GB CnMemory 300x CF, 1 TB Samsung 2,5" HDD
iHOS104 BluRay Drive, TT DVBS2-1600
Silverstone GD05B Case, Sony PS3 BD Remote control, Logitech Cordless Mediaboard Pro for PS3
find quote
Post Reply