2012-12-29, 12:03
(2012-12-29, 08:41)redux25 Wrote: YouTube plugin stopped working completely. Receive script failed error attempting anything.
Tried to select search, sent several links from chrome add-on etcetra.
xbmc.log in two parts as is too large for pastebin.
Part 1 http://pastebin.ca/2297550
Part 2 http://pastebin.ca/2297554
You Tube plugin installed from repo's
Pertinent part seems to be:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22:10:11 T:2962910016 NOTICE: [YouTube-3.3.0] __init__ : 'Done'
22:10:11 T:2962910016 INFO: -->Python script returned the following error<--
22:10:11 T:2962910016 ERROR: Error Type: <type 'exceptions.ValueError'>
22:10:11 T:2962910016 ERROR: Error Contents: invalid literal for float(): 11.0 Git:Unknow
22:10:11 T:2962910016 ERROR: Traceback (most recent call last):
File "/home/xbmc/.xbmc/addons/plugin.video.youtube/default.py", line 107, in <module>
params = common.getParameters(sys.argv[2])
File "/home/xbmc/.xbmc/addons/script.module.parsedom/lib/CommonFunctions.py", line 110, in getParameters
if getXBMCVersion() >= 12.0:
File "/home/xbmc/.xbmc/addons/script.module.parsedom/lib/CommonFunctions.py", line 102, in getXBMCVersion
version = float(version)
ValueError: invalid literal for float(): 11.0 Git:Unknow
22:10:11 T:2962910016 INFO: -->End of Python script error report<--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Hopefully devs can figure out what's up.
Hey, everyone! I ran into the same issue today with my Ubuntu 12.04-running HTPC and Ubuntu's latest stock version of XBMC. Below is a step-by-step walkthrough of how I fixed it. This assumes you're running Ubuntu; other OSes (or perhaps even distributions of GNU/Linux) might have the same files in different locations. See the end of this post for what to do on Windows. Advanced users may want to go directly to the code diff near the end of the post. This fix assumes you have parsedom 1.5. If you've rolled back to parsedom 1.4 you need to restore 1.5 first.
And now for the step-by-step instructions:
- Fire up the terminal as the user you run XBMC as (in my case that user's name is "media") or use SSH to get a console on your HTPC.
- Input the following command to back up the file we'll need to edit:
Code:cp ~/.xbmc/addons/script.module.parsedom/lib/CommonFunctions.py ~/.xbmc/addons/script.module.parsedom/lib/CommonFunctions.py.old
- Open the file CommonFunctions.py with "nano", a text editor for the terminal. Ubuntu users should already have nano installed.
Code:nano -wc ~/.xbmc/addons/script.module.parsedom/lib/CommonFunctions.py
- Use the arrow keys to go down to line 102. You'll be able to see the line number at the bottom of your terminal. Line 102 should look like this:
only with four spaces in front of it that this forum doesn't seem to show.Code:version = float(version)
- Now, edit it to look exactly like below, except for aforementioned four spaces in front:
Code:version = float(version.split()[0])
- Press Ctrl+X to quit nano and then "Y" to save the changes.
- That's it. Try using the YouTube plug-in again, though you might have to restart XBMC first.
Code:
nano -wc ~/.xbmc/addons/script.module.parsedom/lib/CommonFunctions.py
Code:
gedit ~/.xbmc/addons/script.module.parsedom/lib/CommonFunctions.py
Code:
pluma ~/.xbmc/addons/script.module.parsedom/lib/CommonFunctions.py
Now, for those of you who are more technically inclined here is the diff:
Code:
$ diff /home/media/.xbmc/addons/script.module.parsedom/lib/CommonFunctions.py.old /home/media/.xbmc/addons/script.module.parsedom/lib/CommonFunctions.py
102c102
< version = float(version)
---
> version = float(version.split()[0])
Update for Windows users:
I haven't tried it myself but on Windows 7 and Vista you should be able to apply this fix by opening the file C:\Users\<YourUserName>\AppData\Roaming\XBMC\addons\script.module.parsedom\lib\CommonFunction​s.py with your text editor of choice. Once you've done that proceed to execute steps 4 and 5 from the step-by-step instructions above. On Windows XP look for XBMC's folder under C:\Documents and Settings\<YourUserName>\Application Data.