XBMC Community Forum
[RELEASE] Picasa Desktop - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Picture Add-ons (/forumdisplay.php?fid=150)
+---- Thread: [RELEASE] Picasa Desktop (/showthread.php?tid=86977)

Pages: 1 2 3 4


- datom - 2011-05-04 13:32

for the path separator i use the python os.. function (for future unix support) . so it should be work.
ok send me the changes and i add these to the addon. thanks for your help Smile

one more think,
if you run xbmc in wine, so xbmc should be identify the sys as "win" an the platform tag "win" should be work right? its a little bit weird


- gpulido - 2011-05-04 15:53

You are using the os separation function in the path concat but not in the substitution of the paths in the filename inside the .pal file
(the section
for filenode in dom.getElementsByTagName("filename"):
in the album_metadata(self, album_id): function)

I have two xbmc instances:
-one running over ubuntu in the same system that the picasa
- Second running in a htpc in the living room, is a live-stand alone instalation (linux based).
The picasa app, runs under wine in the ubuntu installation.
My photos are stored in a NAS. The NAS units are mounted in both systems under /media/Volume1 and /media/Volume2 (the same for both system.

I have to check it well because Picasa generates strange paths under wine.

I was thinking on using some kind of path conversion defined by the user as a properties to translate between local path to picasa and local paths to xbmc for the cases where the photos are stored in a network location like a NAS


- gbia - 2011-06-27 16:40

Hi, this addon sounds very interesting to me, but I don't manage to make it work. I have Dharma 10.1 running on Win7 SP1 and Picasa 3.8. If I run the addon I get the message "Script failed". I have then set the addon path to the "Picasa2album" folder (where I have the folder with the long name with the .pal files inside), and I still get the same error.
Any idea on what's the reason?
Thanks in advance!

The XBMC log reports this:

16:34:07 T:5036 M:1088606208 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.image.picasa-desktop/)
16:34:07 T:5036 M:1088606208 DEBUG: ParentPath = [addons://sources/image/]
16:34:07 T:5540 M:1088606208 DEBUG: XFILE::CPluginDirectory::StartScript - calling plugin Picasa Desktop('plugin://plugin.image.picasa-desktop/','0','')
16:34:07 T:5540 M:1088606208 INFO: initializing python engine.
16:34:07 T:5540 M:1088606208 DEBUG: Win32DllLoader::Load(special://xbmcbin/system/python/python24.dll)
16:34:07 T:5540 M:1087569920 DEBUG: msg: 'import site' failed; use -v for traceback
16:34:07 T:5540 M:1087553536 DEBUG: new python thread created. id=1
16:34:07 T:5540 M:1087549440 DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult - waiting on the Picasa Desktop plugin...
16:34:07 T:604 M:1087537152 DEBUG: thread start, auto delete: 0
16:34:07 T:604 M:1087533056 DEBUG: Python thread: start processing
16:34:07 T:604 M:1087365120 DEBUG: msg: 'import site' failed; use -v for traceback
16:34:07 T:604 M:1087348736 NOTICE: -->Python Interpreter Initialized<--
16:34:07 T:604 M:1087348736 DEBUG: XBPyThread::Process - The source file to load is C:\Users\giorgio\AppData\Roaming\XBMC\addons\plugin.image.picasa-desktop\default.py
16:34:07 T:604 M:1087348736 DEBUG: XBPyThread::Process - Setting the Python path to C:\Users\giorgio\AppData\Roaming\XBMC\addons\plugin.image.picasa-desktop;C:\Users\giorgio\AppData\Roaming\XBMC\addons\script.module.dialogaddonsc​an\lib;C:\Users\giorgio\AppData\Roaming\XBMC\addons\script.module.simplejson\lib​;C:\Users\giorgio\AppData\Roaming\XBMC\addons\script.module.beautifulsoup\lib;C:​\Program Files\XBMC\addons\script.module.pil\lib;C:\Program Files\XBMC\addons\script.module.pysqlite\lib;special://xbmc/system/python/DLLs;special://xbmc/system/python/Lib;special://xbmcbin/system/python/python24.zip;special://xbmc/system/python\DLLs;special://xbmc/system/python\lib;special://xbmc/system/python\lib\plat-win;special://xbmc/system/python\lib\lib-tk;C:\Program Files\XBMC
16:34:07 T:604 M:1087348736 DEBUG: XBPyThread::Process - Entering source directory C:\Users\giorgio\AppData\Roaming\XBMC\addons\plugin.image.picasa-desktop
16:34:07 T:604 M:1086791680 DEBUG: LoadLibraryExA called with flags:
- LOAD_WITH_ALTERED_SEARCH_PATH
16:34:07 T:604 M:1086791680 DEBUG: Win32DllLoader::Load(special://xbmc/system/python/DLLs\_socket.pyd)
16:34:07 T:604 M:1086734336 DEBUG: LoadLibraryExA called with flags:
- LOAD_WITH_ALTERED_SEARCH_PATH
16:34:07 T:604 M:1086734336 DEBUG: Win32DllLoader::Load(special://xbmc/system/python/DLLs\_ssl.pyd)
16:34:07 T:604 M:1085526016 INFO: -->Python script returned the following error<--
16:34:07 T:604 M:1085526016 ERROR: Error Type: exceptions.TypeError
16:34:07 T:604 M:1085526016 ERROR: Error Contents: not all arguments converted during string formatting
16:34:07 T:604 M:1085501440 ERROR: Traceback (most recent call last):
File "C:\Users\giorgio\AppData\Roaming\XBMC\addons\plugin.image.picasa-desktop\default.py", line 129, in ?
picasaDesktop()
File "C:\Users\giorgio\AppData\Roaming\XBMC\addons\plugin.image.picasa-desktop\default.py", line 23, in __init__
self.db_path = self.getSetting('db_path_local') % (os.getenv('USERPROFILE'))
TypeError: not all arguments converted during string formatting
16:34:07 T:604 M:1085501440 INFO: -->End of Python script error report<--
16:34:07 T:604 M:1085399040 INFO: Python script stopped
16:34:07 T:604 M:1085399040 DEBUG: Thread 604 terminating
16:34:07 T:5540 M:1085427712 DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult - plugin exited prematurely - terminating
16:34:07 T:5036 M:1085427712 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.image.picasa-desktop/
16:34:07 T:5036 M:1085427712 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.image.picasa-desktop/) failed


- datom - 2011-07-04 10:46

hi gbia,
im back from my holidays and i try the next days to find your problem


- gbia - 2011-07-04 14:53

Thanks a lot!
Giorgio


- datom - 2011-07-06 12:36

i think the problem is in your settings. if you use an absolut path with "local" setting runs in to that error

in your case you have to set the path to:
C:\Users\giorgio\AppData\Local\
the folder "Google/Picasa2Albums" adds the addon self

i uploaded a new version with an updated settings dialog. so its easier to understand to how the config works


- gbia - 2011-07-06 15:30

I have changed the path as you suggest but I get the same error.
I have also re-downloadad from http://www.da-tom.com/xbmc/plugin.image.picasa-desktop.zip, but it is still the same version and same dialog box.
Sorry...


- datom - 2011-07-06 15:47

oh sorry, i uploaded the file in the wrong directory
now it should be work


- gbia - 2011-07-08 06:45

I have downloaded the new version but still no success, whatever path I inset...


- datom - 2011-07-11 20:38

please post the new debug log and your settings so i can traceback the error