[RELEASE] iPhoto Plugin Addon for XBMC

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
jingai Offline
Skilled Skinner
Posts: 871
Joined: Mar 2010
Reputation: 6
Post: #31
NewFolk Wrote:Hello, will your script work with win7 if I copy iPhoto library?

It should, but it should also work if you just share out the iPhoto Library from your Mac.

Disclaimer: I don't actually have any real Windows machines to test with, so if this is not working, please post your debug log here so I can have a look.

-j
find quote
NewFolk Offline
Junior Member
Posts: 31
Joined: Jan 2011
Reputation: 0
Post: #32
Debug it is log file of xbmc ? If yes it is the same to Pavla log.

How I share it ? I see only my local disk when I'm looking for iPhoto library path. While I see Mac in explorer.
(This post was last modified: 2011-05-15 17:14 by NewFolk.)
find quote
jingai Offline
Skilled Skinner
Posts: 871
Joined: Mar 2010
Reputation: 6
Post: #33
NewFolk Wrote:Debug it is log file of xbmc ? If yes it is the same to Pavla log.

If you're using Dharma and version 1.4.5 of the iPhoto plugin, it shouldn't be the same as Pavla's log -- there is no instance of that line in 1.4.5.

Are you sure you updated the iPhoto plugin to 1.4.5? And are you sure the error you're receiving is still the same? If you post your debug log, I can look.

Quote:How I share it ? I see only my local disk when I'm looking for iPhoto library path. While I see Mac in explorer.

Map the share from the Mac in Windows. You should then be able to get to it from the plugin settings in XBMC.

-j
find quote
NewFolk Offline
Junior Member
Posts: 31
Joined: Jan 2011
Reputation: 0
Post: #34
Code:
13:23:09 T:1588 M:2802503680  NOTICE: -->Python Interpreter Initialized<--
13:23:09 T:1588 M:2802503680   ERROR: Error Type: exceptions.SyntaxError
13:23:09 T:1588 M:2802503680   ERROR: Error Contents: ('invalid syntax', ('C:\\Users\\Media\\AppData\\Roaming\\XBMC\\addons\\jingai-plugin.image.iphoto-0f739ed\\addon.py', 77, 13, "    with open(filename, 'rb') as f:\n"))
13:23:09 T:1588 M:2802483200   ERROR:   File "C:\Users\Media\AppData\Roaming\XBMC\addons\jingai-plugin.image.iphoto-0f739ed\addon.py", line 77
                                                with open(filename, 'rb') as f:
                                                        ^
                                            SyntaxError: invalid syntax
13:23:09 T:208 M:2802454528   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.image.iphoto/
13:23:09 T:208 M:2802454528   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.image.iphoto/) failed
13:23:17 T:4680 M:2799026176  NOTICE: -->Python Interpreter Initialized<--

my log.
find quote
jingai Offline
Skilled Skinner
Posts: 871
Joined: Mar 2010
Reputation: 6
Post: #35
NewFolk Wrote:
Code:
13:23:09 T:1588 M:2802503680   ERROR: Error Contents: ('invalid syntax', ('C:\\Users\\Media\\AppData\\Roaming\\XBMC\\addons\\jingai-plugin.image.iphoto-0f739ed\\addon.py', 77, 13, "    with open(filename, 'rb') as f:\n"))

That line does not exist in version 1.4.5. However, the plugin appears to be installed in "plugin.image.iphoto-0739ed". 0739ed is the last commit in the master branch of my plugin, which is for eden-pre.

Are you checking out the code from my repository by hand or something? If so, and you're really using dharma, you're checking out the wrong branch. It's probably best to just delete the plugin and let XBMC handle the updates, unless you're making local changes or something.

-j
find quote
azeroth Offline
Junior Member
Posts: 6
Joined: Apr 2011
Reputation: 0
Post: #36
So it seems that the iphoto almost works in windows. When I point it to the iphoto library folder (it only sees it if its in movies btw) it does scan and pull back all my albums. When i try to select any of the albums it does nothing. Any ideas? Thanks!
find quote
jingai Offline
Skilled Skinner
Posts: 871
Joined: Mar 2010
Reputation: 6
Post: #37
azeroth Wrote:So it seems that the iphoto almost works in windows. When I point it to the iphoto library folder (it only sees it if its in movies btw)

If you use smb:// style path to your iPhoto Library, then yes, it does need to be in Movies. I know it's odd, but it's a limitation in XBMC.

If you mount the share in Windows, you don't need to do that, though.

Quote:it does scan and pull back all my albums. When i try to select any of the albums it does nothing. Any ideas? Thanks!

I'd need to see your debug log. I do know that it does actually work under Windows -- I just tested v1.4.5 of the plugin on a Windows 7 box running XBMC 10.1 and it worked fine.

Also, are you using stable XBMC or a nightly?

-j
find quote
azeroth Offline
Junior Member
Posts: 6
Joined: Apr 2011
Reputation: 0
Post: #38
Thanks for the quick reply!

I'm using the official 10.1 release. My system is running Win 7 ultimate x64.

There are a lot of warnings/errors when i press the addin, i'll try to list unique ones without the repeats.

13:28:46 T:4576 M:2580582400 NOTICE: as 'smb://SERVER/raid/Pictures/iPhoto Library/'
13:28:50 T:3320 M:2576015360 NOTICE: -->Python Interpreter Initialized<--
13:28:51 T:3320 M:2576842752 NOTICE: {'action': 'albums'}
13:28:51 T:3320 M:2576838656 NOTICE: 'albumid'
13:28:51 T:5496 M:2576556032 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(plugin) in plugin://plugin.image.iphoto/?action=albums&albumid=2518
13:28:51 T:5496 M:2576556032 WARNING: Previous line repeats 1 times.
13:28:51 T:5496 M:2576556032 WARNING: WARNING: File is larger than 32bit stat can


3:28:51 T:4616 M:2576556032 ERROR: CPicture::CacheImage Unable to create new image special://masterprofile/Thumbnails/7/7e1291cc from image plugin://plugin.image.iphoto/?action=albums&albumid=2524
13:28:51 T:5496 M:2576556032 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(plugin) in plugin://plugin.image.iphoto/?action=albums&albumid=4149
13:28:51 T:5496 M:2576556032 WARNING: Previous line repeats 1 times.
13:28:51 T:5496 M:2576556032 WARNING: WARNING: File is larger than 32bit stat can handle, file size will be reported as 0 bytes
13:28:51 T:5496 M:2576556032 WARNING: XFILE::CFileFactory::CreateLoader - Unsupported protocol(plugin) in plugin://plugin.image.iphoto/?action=albums&albumid=4149
13:28:51 T:5496 M:2576556032 ERROR: CPicture::CacheImage Unable to create new image special://masterprofile/Thumbnails/a/a9afd965 from image plugin://plugin.image.iphoto/?action=albums&albumid=4149


Did I possibly install incorrectly? All I did was install from within xbmc, all settings at default with the source pointing at the smb share.


Do I need a certain version of iPhoto for the xml and files to formated to work with your plugin?
(This post was last modified: 2011-06-09 20:39 by azeroth.)
find quote
jingai Offline
Skilled Skinner
Posts: 871
Joined: Mar 2010
Reputation: 6
Post: #39
I've verified that the plugin works with at least the iPhoto from iLife '09 and '11. Not sure about earlier versions.

When you select an album/event/etc, do you at least see placeholders for the images that are supposed to be there? Or does XBMC say the addon failed?

What I'd really need to see is the debug log (complete) after clicking Update Library from within the plugin, and then after selecting an album.

-j
find quote
azeroth Offline
Junior Member
Posts: 6
Joined: Apr 2011
Reputation: 0
Post: #40
I don't see any place holders or even an error. When I click on an album nothing happens...

Here are the 2 debug logs

Album (a single click on an album):
http://pastebin.com/SAupJ7T5

Update Library:
http://pastebin.com/w3GnLYA6

I'll try to figure out what iPhoto I'm running and possibly upgrade. I have a newer mac around here that maybe I can test with.

Thanks!
find quote
Post Reply