Posts: 2,293
Joined: Aug 2005
Reputation:
202
ruuk
Team-Kodi Member
Posts: 2,293
As I'm moving to update the Addon to Eden, I was thinking of making this an App rather than plug-in.
Anyone have any thoughts on that?
Any reason I should keep the plug-in format?
Thanks.
Posts: 3
Joined: Jan 2012
Reputation:
0
Hi I tried to run under Eden but I keep getting the following. I get no chance to enter in any auth code etc.
13:32:30 T:2800753552 DEBUG: StartScript - calling plugin flickr('plugin://plugin.image.flickr/','0','')
13:32:30 T:2800753552 INFO: initializing python engine.
13:32:30 T:2800753552 DEBUG: new python thread created. id=16
13:32:30 T:2696838032 DEBUG: Thread XBPyThread start, auto delete: 0
13:32:30 T:2696838032 DEBUG: Python thread: start processing
13:32:30 T:2696838032 NOTICE: -->Python Interpreter Initialized<--
13:32:30 T:2696838032 DEBUG: Process - The source file to load is /root/.xbmc/addons/plugin.image.flickr/default.py
13:32:30 T:2696838032 DEBUG: Process - Setting the Python path to /root/.xbmc/addons/plugin.image.flickr:/root/.xbmc/addons/script.module.simplejson/lib:/root/.xbmc/addons/script.module.beautifulsoup/lib:/usr/local/share/xbmc/addons/script.module.pil/lib:/root/.xbmc/addons/script.common.plugin.cache/lib:/root/.xbmc/addons/script.module.simple.downloader/lib:/root/.xbmc/addons/script.module.parsedom/lib:/root/.xbmc/addons/script.web.viewer/lib:/root/.xbmc/addons/script.module.elementtree/lib:/usr/local/share/xbmc/addons/script.module.pysqlite/lib:/usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg:/usr/local/lib/python2.6/site-packages/pip-1.0-py2.6.egg:/usr/local/lib/python26.zip:/usr/local/lib/python2.6:/usr/local/lib/python2.6/plat-linux2:/usr/local/lib/python2.6/lib-tk:/usr/local/lib/python2.6/lib-old:/usr/local/lib/python2.6/lib-dynload:/usr/local/lib/python2.6/site-packages:
13:32:30 T:2696838032 DEBUG: Process - Entering source directory /root/.xbmc/addons/plugin.image.flickr
13:32:30 T:2800753552 DEBUG: WaitOnScriptResult - waiting on the flickr plugin...
13:32:30 T:2696838032 DEBUG: Instantiating addon using automatically obtained id of "plugin.image.flickr" dependent on version 1.0 of the xbmc.python api
13:32:30 T:2696838032 NOTICE: Mode: None
13:32:30 T:2696838032 NOTICE: URL: None
13:32:30 T:2696838032 NOTICE: Name: None
13:32:30 T:2696838032 NOTICE: Page: 1
13:32:30 T:2696838032 NOTICE: [Errno -2] Name or service not known
13:32:30 T:2696838032 INFO: -->Python script returned the following error<--
13:32:30 T:2696838032 ERROR: Error Type: <class 'urllib2.URLError'>
13:32:30 T:2696838032 ERROR: Error Contents: <urlopen error [Errno -2] Name or service not known>
13:32:30 T:2696838032 ERROR: Traceback (most recent call last):
File "/root/.xbmc/addons/plugin.image.flickr/default.py", line 683, in <module>
doPlugin()
File "/root/.xbmc/addons/plugin.image.flickr/default.py", line 599, in doPlugin
if not fsession.authenticate():
File "/root/.xbmc/addons/plugin.image.flickr/default.py", line 227, in authenticate
(token, frob) = self.flickr.get_token_part_one(perms='read',auth_callback=self.doTokenDialog)
File "/root/.xbmc/addons/plugin.image.flickr/flickrapi/__init__.py", line 749, in get_token_part_one
rsp = self.auth_getFrob(auth_token=None, format='xmlnode')
File "/root/.xbmc/addons/plugin.image.flickr/flickrapi/__init__.py", line 349, in handler
parse_format=args['format'], **args)
File "/root/.xbmc/addons/plugin.image.flickr/flickrapi/__init__.py", line 427, in __wrap_in_parser
data = wrapped_method(*args, **kwargs)
File "/root/.xbmc/addons/plugin.image.flickr/flickrapi/__init__.py", line 402, in __flickr_call
flicksocket = urllib2.urlopen(url, post_data)
File "/usr/local/lib/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/local/lib/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/local/lib/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/usr/local/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/local/lib/python2.6/urllib2.py", line 1181, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/local/lib/python2.6/urllib2.py", line 1156, in do_open
raise URLError(err)
URLError: <urlopen error [Errno -2] Name or service not known>
13:32:30 T:2696838032 INFO: -->End of Python script error report<--
13:32:30 T:2696838032 INFO: Python script stopped
13:32:30 T:2696838032 DEBUG: Thread XBPyThread 2696838032 terminating
13:32:30 T:2800753552 DEBUG: WaitOnScriptResult - plugin exited prematurely - terminating
13:32:30 T:3041801968 ERROR: GetDirectory - Error getting plugin://plugin.image.flickr
13:32:30 T:3041801968 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.image.flickr) failed
13:32:30 T:3041801968 DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/image/)
13:32:30 T:3041801968 DEBUG: ParentPath = []
13:32:30 T:2938604432 DEBUG: Thread Background Loader start, auto delete: 0
13:32:30 T:2938604432 DEBUG: Thread Background Loader 2938604432 terminating
13:32:30 T:2738801552 DEBUG: Thread Background Loader start, auto delete: 0
13:32:30 T:2738801552 DEBUG: Thread Background Loader 2738801552 terminating
13:32:30 T:3041801968 DEBUG: waiting for python thread 16 to stop
13:32:30 T:3041801968 DEBUG: python thread 16 destructed
Posts: 3
Joined: Jan 2012
Reputation:
0
I try and click the plugin, and all I get is a script error in the lower right of the screen. I can get into the add-on settings ok, but the script will not run from the photo add-ons.
I looked at the changes for the plugin on the google repository and I did not see anything change except the version numbers. Unless I was looking in the wrong place.
Posts: 2,293
Joined: Aug 2005
Reputation:
202
ruuk
Team-Kodi Member
Posts: 2,293
Version 0.9.92 should now be on Eden.
Minor changes to be Eden compatible and some improvement in error handling.
Posts: 3
Joined: Jan 2012
Reputation:
0
OK, got it working.
I was messing around with my python install, and I hosed it. I just dd a reinstall and it works with both versions. Thank for the help, great to see my pictures now!
Posts: 1
Joined: Jun 2012
Reputation:
0
I am not able to get the Flickr code, the link you provide, seems to direct to a "dead" web