Release - PicasaWeb - Picasa Web Albums Image Plugin Addon

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
kricker Offline
Team-XBMC QA Specialist
Posts: 3,449
Joined: Apr 2004
Reputation: 20
Location: Knoxville, TN
Post: #16
Here is my log. This is from yet another computer where I was unable to get it to work. I am using Dharma beta 3 on Windows. I've tried using my username with and without the "@gmail.com".

Read this before using these builds.
XBMC win32 SVN builds
Changelog
(This post was last modified: 2010-10-24 18:45 by kricker.)
find quote
ruuk Online
Skilled Python Coder
Posts: 1,452
Joined: Aug 2005
Reputation: 180
Location: Bremerton, WA USA
Post: #17
kricker Wrote:Here is my log. This is from yet another computer where I was unable to get it to work. I am using Dharma beta 3 on Windows. I've tried using my username with and without the "@gmail.com".

Thanks for the log Smile

Your windows version would be helpful and if anyone else could let me know if they have this working (or not) on windows that would be nice Smile

The error has nothing to do with your email or password. The log shows that it is an SSL error. It happens in google's api (not directly in my code) and more specifically in the python SSL module.
I've done some searching and it appears this error sometimes occurs when using a proxy. Are you?

I'm looking for a workaround for your case. But it would be helpful to know anything about your OS and network setup.

[Image: sig.jpg]
find quote
ruuk Online
Skilled Python Coder
Posts: 1,452
Joined: Aug 2005
Reputation: 180
Location: Bremerton, WA USA
Post: #18
ghostelement Wrote:Thanks again! I really do appreciate it! I can't quite figure out how to set the default view for all folders though....

Not sure what you mean. Do you want to be able to set the default for the whole plugin?

[Image: sig.jpg]
find quote
ghostelement Offline
Fan
Posts: 444
Joined: Sep 2010
Reputation: 3
Location: Portland, Oregon
Post: #19
ruuk Wrote:Not sure what you mean. Do you want to be able to set the default for the whole plugin?

Yes, I want all picasa photos and folders to show up as thumbnails.

[Image: tgdb-buttonlogosmall.png]
thegamesdb.net - An open video games database.
scottbrant.net - Blog
find quote
kricker Offline
Team-XBMC QA Specialist
Posts: 3,449
Joined: Apr 2004
Reputation: 20
Location: Knoxville, TN
Post: #20
ruuk Wrote:I'm looking for a workaround for your case. But it would be helpful to know anything about your OS and network setup.
The OS is as stated in the log. That PC is Windows 7 x64. My HTPC is Windows 7 32 bit. I have a basic cable Internet setup. No proxy is used.

Read this before using these builds.
XBMC win32 SVN builds
Changelog
find quote
ruuk Online
Skilled Python Coder
Posts: 1,452
Joined: Aug 2005
Reputation: 180
Location: Bremerton, WA USA
Post: #21
I installed XBMC on my vista laptop and got the SSL error as well (both with Dharma beta 1 and beta 3)

I'm going to try a few things, and if I can't get them to work, I'll see if I can at least get it to work for public photos. For instance, at least in my testing, I was still able to search Picasa and get results without error.

The script does not have this problem at all in Linux, so perhaps this should be reported as a bug for windows builds.

I'll update on my progress as I find anything out.

[Image: sig.jpg]
find quote
kricker Offline
Team-XBMC QA Specialist
Posts: 3,449
Joined: Apr 2004
Reputation: 20
Location: Knoxville, TN
Post: #22
Thanks for taking the time to look into it.

Read this before using these builds.
XBMC win32 SVN builds
Changelog
find quote
Toruki Offline
Junior Member
Posts: 1
Joined: Jan 2009
Reputation: 0
Post: #23
I get the same symptoms as Kricker. I'm running Windows Vista 32 with Dharma 3. I love that you're building this plugin for us all. And I run in portable mode if that helps.

The relevant part of the log is here:

Code:
15:27:38 T:2756 M:981213184  NOTICE: -->Python Interpreter Initialized<--
15:27:38 T:2756 M:980803584  NOTICE: None
15:27:38 T:2756 M:980803584  NOTICE: None
15:27:38 T:2756 M:980803584  NOTICE: None
15:27:38 T:2756 M:980803584  NOTICE: default
15:27:39 T:2324 M:981737472   ERROR: XFILE::CFile::Delete - Error deleting file C:\Program Files\XBMC\portable_data\userdata\Thumbnails\b\b8f94a70.png
15:27:39 T:2324 M:981737472   ERROR: XFILE::CFile::Delete - Error deleting file special://masterprofile/Thumbnails/b/b8f94a70.png
15:27:41 T:1244 M:981688320  NOTICE: -->Python Interpreter Initialized<--
15:27:41 T:1244 M:981499904  NOTICE: {'url': 'default', 'mode': '1'}
15:27:41 T:1244 M:981499904  NOTICE: 1
15:27:41 T:1244 M:981499904  NOTICE: default
15:27:41 T:1244 M:981499904  NOTICE: None
15:27:41 T:1244 M:981499904  NOTICE: default
15:27:46 T:1244 M:980430848  NOTICE: FACEBOOKPHOTOS: LOGIN 1
15:28:01 T:1244 M:972165120   ERROR: Error Type: socket.sslerror
15:28:01 T:1244 M:972165120   ERROR: Error Contents: (8, 'EOF occurred in violation of protocol')
15:28:01 T:1244 M:972017664   ERROR: Traceback (most recent call last):
                                              File "C:\Program Files\XBMC\portable_data\addons\plugin.image.picasa\default.py", line 344, in ?
                                                picasaPhotosSession()
                                              File "C:\Program Files\XBMC\portable_data\addons\plugin.image.picasa\default.py", line 41, in __init__
                                                self.getParamString('user','default',no_unquote=True))
                                              File "C:\Program Files\XBMC\portable_data\addons\plugin.image.picasa\default.py", line 138, in go
                                                if not self.login(): return False #only login if we have to
                                              File "C:\Program Files\XBMC\portable_data\addons\plugin.image.picasa\default.py", line 69, in login
                                                self.api().ProgrammaticLogin()
                                              File "C:\Program Files\XBMC\portable_data\addons\plugin.image.picasa\gdata\service.py", line 771, in ProgrammaticLogin
                                                headers={'Content-Type':'application/x-www-form-urlencoded'})
                                              File "C:\Program Files\XBMC\portable_data\addons\plugin.image.picasa\atom\http.py", line 163, in request
                                                connection.endheaders()
                                              File "special://xbmc/system/python/Lib\httplib.py", line 798, in endheaders
                                                self._send_output()
                                              File "special://xbmc/system/python/Lib\httplib.py", line 679, in _send_output
                                                self.send(msg)
                                              File "special://xbmc/system/python/Lib\httplib.py", line 646, in send
                                                self.connect()
                                              File "special://xbmc/system/python/Lib\httplib.py", line 1073, in connect
                                                ssl = socket.ssl(sock, self.key_file, self.cert_file)
                                              File "special://xbmc/system/python/Lib\socket.py", line 74, in ssl
                                                return _realssl(sock, keyfile, certfile)
                                            sslerror: (8, 'EOF occurred in violation of protocol')
15:28:01 T:1664 M:971882496   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.image.picasa/?url=default&mode=1
15:28:01 T:1664 M:971882496   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.image.picasa/?url=default&mode=1) failed
15:28:02 T:2924 M:971739136  NOTICE: -->Python Interpreter Initialized<--
15:28:02 T:2924 M:971542528  NOTICE: None
15:28:02 T:2924 M:971542528  NOTICE: None
(This post was last modified: 2010-10-25 21:34 by Toruki.)
find quote
ruuk Online
Skilled Python Coder
Posts: 1,452
Joined: Aug 2005
Reputation: 180
Location: Bremerton, WA USA
Post: #24
Added 'Use Login' setting to enable/disable logins (Allows just browsing public photos and works around the Windows SSL bug)

'Use Login' will be disabled by default, but you still need to set you user email if you want to browse your stuff (if you don't only 'Search Picasa' will be available)
As stated if you leave logins disabled it will only show public photos.

If some windows users can confirm this working for them I will submit it to the repo.

Get the zip here:

http://code.google.com/p/picasaphotos-xb...loads/list

[Image: sig.jpg]
find quote
kricker Offline
Team-XBMC QA Specialist
Posts: 3,449
Joined: Apr 2004
Reputation: 20
Location: Knoxville, TN
Post: #25
Woot! Now I can at least see my public albums! I can get by with this until the ssl stuff is worked out. A BIG thanks for being quick with the change.

Now for a request Wink Is it possible to do a search people in my pictures? Then I can run a slideshow of the results of that person?

Read this before using these builds.
XBMC win32 SVN builds
Changelog
(This post was last modified: 2010-10-25 22:47 by kricker.)
find quote
ruuk Online
Skilled Python Coder
Posts: 1,452
Joined: Aug 2005
Reputation: 180
Location: Bremerton, WA USA
Post: #26
kricker Wrote:Now for a request Wink Is it possible to do a search people in my pictures? Then I can run a slideshow of the results of that person?

If you mean find all photos with somebody in them, then no. I tried to find a way to access the 'People' aspect of Picasa, but it is not part of the api and I even tried to find some undocumented method but no go.

I pretty much put in everything that is possible with the picasa api except showing recent photos, which I will probably add eventually.

[Image: sig.jpg]
find quote
kricker Offline
Team-XBMC QA Specialist
Posts: 3,449
Joined: Apr 2004
Reputation: 20
Location: Knoxville, TN
Post: #27
I was having some issues with the people tags today and did some reading. It turns out they are in the middle of reworking some backend stuff and issues with name tags will be resolved when the backend stuff is completed. My guess is when that us done it will be added to the API. I could swear it was in the old Picasas plugin.

Thanks again for the windows workaround.

Read this before using these builds.
XBMC win32 SVN builds
Changelog
find quote
lewis Offline
Junior Member
Posts: 20
Joined: Apr 2009
Reputation: 0
Post: #28
Wondering if you can help, I read the thread and turned off the use login. Most of my pictures are private so hoping the authentication issue on windows is fixed soon, however even with use login I still get an error and cant browse the albums i made public

Log section is (pastebin was down)

Code:
16:41:25 T:5228 M:1388916736   DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.image.picasa/)
16:41:25 T:5228 M:1388916736   DEBUG:   ParentPath = [addons://sources/image/]
16:41:25 T:5320 M:1388859392   DEBUG: XFILE::CPluginDirectory::StartScript - calling plugin Picasa('plugin://plugin.image.picasa/','0','')
16:41:25 T:5320 M:1388859392    INFO: initializing python engine.
16:41:25 T:5320 M:1388859392   DEBUG: Win32DllLoader::Load(special://xbmcbin/system/python/python24.dll)
16:41:25 T:5228 M:1388126208   DEBUG: ------ Window Init (DialogBusy.xml) ------
16:41:25 T:5228 M:1388126208   DEBUG: Alloc resources: 0.02ms (0.01 ms skin load)
16:41:26 T:5320 M:1387966464   DEBUG:   msg: 'import site' failed; use -v for traceback
16:41:26 T:5320 M:1387966464   DEBUG: new python thread created. id=4
16:41:26 T:5320 M:1387962368   DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult - waiting on the Picasa plugin...
16:41:26 T:3760 M:1387958272   DEBUG: thread start, auto delete: 0
16:41:26 T:3760 M:1387954176   DEBUG: Python thread: start processing
16:41:26 T:3760 M:1389318144   DEBUG:   msg: 'import site' failed; use -v for traceback
16:41:26 T:3760 M:1389318144  NOTICE: -->Python Interpreter Initialized<--
16:41:26 T:3760 M:1389318144   DEBUG: XBPyThread::Process - The source file to load is C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.image.picasa\default.py
16:41:26 T:3760 M:1389318144   DEBUG: XBPyThread::Process - Setting the Python path to C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.image.picasa;C:\Progra~1\XBMC\addons\script.module.pil\l​ib;C:\Progra~1\XBMC\addons\script.module.pysqlite\lib;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:\Progra~1\XBMC
16:41:26 T:3760 M:1389318144   DEBUG: XBPyThread::Process - Entering source directory C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.image.picasa
16:41:27 T:3760 M:1387462656   DEBUG: LoadLibraryExA called with flags:
                                             - LOAD_WITH_ALTERED_SEARCH_PATH
16:41:27 T:3760 M:1387470848   DEBUG: Win32DllLoader::Load(special://xbmc/system/python\DLLs\_socket.pyd)
16:41:27 T:3760 M:1387413504   DEBUG: LoadLibraryExA called with flags:
                                             - LOAD_WITH_ALTERED_SEARCH_PATH
16:41:27 T:3760 M:1387413504   DEBUG: Win32DllLoader::Load(special://xbmc/system/python\DLLs\_ssl.pyd)
16:41:27 T:3760 M:1386663936  NOTICE: None
16:41:27 T:3760 M:1386663936  NOTICE: None
16:41:27 T:3760 M:1386663936  NOTICE: None
16:41:27 T:3760 M:1386663936  NOTICE: lewis.curley
16:41:27 T:5320 M:1386606592   DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult- plugin returned successfully
16:41:27 T:3760 M:1386606592    INFO: Scriptresult: Success
16:41:27 T:5228 M:1386606592   DEBUG: Saving fileitems [plugin://plugin.image.picasa/]
16:41:27 T:5228 M:1386606592   DEBUG:   -- items: 5, sort method: 0, ascending: false
16:41:27 T:5612 M:1386414080   DEBUG: thread start, auto delete: 0
16:41:27 T:4172 M:1386405888   DEBUG: Previous line repeats 1 times.
16:41:27 T:4172 M:1386405888   DEBUG: Thread 4172 terminating
16:41:27 T:5612 M:1378516992   DEBUG: Thread 5612 terminating
16:41:28 T:3760 M:1377607680    INFO: Python script stopped
16:41:28 T:3760 M:1377607680   DEBUG: Thread 3760 terminating
16:41:28 T:5228 M:1378320384   DEBUG: python thread 4 destructed
16:41:28 T:5228 M:1378320384   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
16:41:30 T:5228 M:1377292288   DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.image.picasa/?url=lewis.curley&mode=1)
16:41:30 T:5228 M:1377292288   DEBUG:   ParentPath = [plugin://plugin.image.picasa/]
16:41:30 T:5320 M:1377247232   DEBUG: XFILE::CPluginDirectory::StartScript - calling plugin Picasa('plugin://plugin.image.picasa/','0','?url=lewis.curley&mode=1')
16:41:30 T:5320 M:1377247232    INFO: initializing python engine.
16:41:30 T:5320 M:1377247232   DEBUG: new python thread created. id=5
16:41:30 T:5320 M:1377243136   DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult - waiting on the Picasa plugin...
16:41:30 T:3700 M:1377239040   DEBUG: thread start, auto delete: 0
16:41:30 T:3700 M:1377234944   DEBUG: Python thread: start processing
16:41:31 T:5228 M:1377124352   DEBUG: ------ Window Init (DialogBusy.xml) ------
16:41:31 T:5228 M:1377124352   DEBUG: Alloc resources: 0.01ms (0.01 ms skin load)
16:41:31 T:3700 M:1377013760   DEBUG:   msg: 'import site' failed; use -v for traceback
16:41:31 T:3700 M:1377013760  NOTICE: -->Python Interpreter Initialized<--
16:41:31 T:3700 M:1377013760   DEBUG: XBPyThread::Process - The source file to load is C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.image.picasa\default.py
16:41:31 T:3700 M:1377013760   DEBUG: XBPyThread::Process - Setting the Python path to C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.image.picasa;C:\Progra~1\XBMC\addons\script.module.pil\l​ib;C:\Progra~1\XBMC\addons\script.module.pysqlite\lib;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:\Progra~1\XBMC
16:41:31 T:3700 M:1377013760   DEBUG: XBPyThread::Process - Entering source directory C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.image.picasa
16:41:31 T:3700 M:1377603584  NOTICE: {'url': 'lewis.curley', 'mode': '1'}

Please help would complete my setup to be able to view picasa albums from xbmc
find quote
ruuk Online
Skilled Python Coder
Posts: 1,452
Joined: Aug 2005
Reputation: 180
Location: Bremerton, WA USA
Post: #29
lewis Wrote:Wondering if you can help, I read the thread and turned off the use login. Most of my pictures are private so hoping the authentication issue on windows is fixed soon, however even with use login I still get an error and cant browse the albums i made public

Please help would complete my setup to be able to view picasa albums from xbmc

The bit of log you posted seems to be missing the error Smile

[Image: sig.jpg]
find quote
lewis Offline
Junior Member
Posts: 20
Joined: Apr 2009
Reputation: 0
Post: #30
apologies, is this the error your looking for?

Code:
NOTICE: -->Python Interpreter Initialized<--
16:41:31 T:3700 M:1377013760   DEBUG: XBPyThread::Process - The source file to load is C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.image.picasa\default.py
16:41:31 T:3700 M:1377013760   DEBUG: XBPyThread::Process - Setting the Python path to C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.image.picasa;C:\Progra~1\XBMC\addons\script.module.pil\l​ib;C:\Progra~1\XBMC\addons\script.module.pysqlite\lib;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:\Progra~1\XBMC
16:41:31 T:3700 M:1377013760   DEBUG: XBPyThread::Process - Entering source directory C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.image.picasa
16:41:31 T:3700 M:1377603584  NOTICE: {'url': 'lewis.curley', 'mode': '1'}
16:41:31 T:3700 M:1377632256  NOTICE: 1
16:41:31 T:3700 M:1377632256  NOTICE: lewis.curley
16:41:31 T:3700 M:1377632256  NOTICE: None
16:41:31 T:3700 M:1377632256  NOTICE: lewis.curley
16:41:32 T:5320 M:1377882112    INFO: Loading skin file: DialogProgress.xml
16:41:32 T:5320 M:1377878016   DEBUG: Load DialogProgress.xml: 4.96ms
16:41:32 T:5320 M:1377878016   DEBUG: ------ Window Init (DialogProgress.xml) ------
16:41:32 T:5320 M:1377873920   DEBUG: Alloc resources: 0.31ms (0.01 ms skin load)
16:41:32 T:5228 M:1377738752   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
16:41:33 T:3700 M:1377185792    INFO: -->Python script returned the following error<--
16:41:33 T:3700 M:1377185792   ERROR: Error Type: exceptions.ImportError
16:41:33 T:3700 M:1377185792   ERROR: Error Contents: No module named elementtree
16:41:33 T:3700 M:1377144832   ERROR: Traceback (most recent call last):
                                              File "C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.image.picasa\default.py", line 350, in ?
                                                picasaPhotosSession()
                                              File "C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.image.picasa\default.py", line 46, in __init__
                                                self.getParamString('user',self.user,no_unquote=True))
                                              File "C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.image.picasa\default.py", line 145, in go
                                                success = self.process(mode,url,name,user,terms)
                                              File "C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.image.picasa\default.py", line 152, in process
                                                self.ALBUMS(user=url)
                                              File "C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.image.picasa\default.py", line 247, in ALBUMS
                                                albums = self.api().GetFeed('/data/feed/api/user/%s?kind=album&thumbsize=256c' % (user))
                                              File "C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.image.picasa\default.py", line 67, in api
                                                return self.setApi()
                                              File "C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.image.picasa\default.py", line 52, in setApi
                                                import gdata.photos.service
                                              File "C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.image.picasa\gdata\__init__.py", line 27, in ?
                                                import atom
                                              File "C:\Documents and Settings\Administrator\Application Data\XBMC\addons\plugin.image.picasa\atom\__init__.py", line 56, in ?
                                                from elementtree import ElementTree
                                            ImportError: No module named elementtree
16:41:33 T:3700 M:1377144832    INFO: -->End of Python script error report<--
16:41:33 T:5228 M:1377136640   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
16:41:33 T:5228 M:1377136640   DEBUG: Alloc resources: 0.01ms (0.01 ms skin load)
16:41:33 T:3700 M:1377120256    INFO: Python script stopped
16:41:33 T:3700 M:1377120256   DEBUG: Thread 3700 terminating
16:41:33 T:5228 M:1377345536   DEBUG: python thread 5 destructed
find quote
Post Reply