gottagetit / phoshare

Automatically exported from code.google.com/p/phoshare
Other
0 stars 0 forks source link

Phoshare Can't open my iphoto library #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. select the iphoto library 
2. returned the msg  "did not find any comments in iphoto database
3. export button blacked out

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
phoshare 1.5.0, I am running OSX 10.8.2

Please provide any additional information below.

This is the message I got.

Error: Did not find any comments in the iPhoto database.
iPhoto sometimes writes the database incorrectly. Please restart iPhoto to 
reset.

Traceback (most recent call last):
  File "/Applications/Phoshare-1.5.0.app/Contents/Resources/lib/python2.7/phoshare/phoshare_ui.py", line 902, in export_thread
  File "/Applications/Phoshare-1.5.0.app/Contents/Resources/lib/python2.7/appledata/iphotodata.py", line 856, in get_iphoto_data
ValueError: Did not find any comments in the iPhoto database.
iPhoto sometimes writes the database incorrectly. Please restart iPhoto to 
reset.

Original issue reported on code.google.com by i...@nataliewong.ca on 1 Oct 2012 at 3:47

GoogleCodeExporter commented 8 years ago
Did you add a description to at least one of your image? This is a safety check 
I've added because some versions of iPhoto sometimes shared an entire library 
without writing the descriptions.

Original comment by til...@sporkert.com on 1 Oct 2012 at 3:50

GoogleCodeExporter commented 8 years ago
that solved the problem....wonderful. Thanks!

Original comment by i...@nataliewong.ca on 1 Oct 2012 at 4:03

GoogleCodeExporter commented 8 years ago
Different startup error message for me running iPhoto 1.5.0 on MacOSX 10.7.5 
with iPhoto 9.4 (701.64)

Error: /Users/jwatters/Pictures/iPhoto 
Library/iLifeShared/AlbumData2.xml:2846:22: not well-formed (invalid token)

Traceback (most recent call last):
  File "/Users/jwatters/Downloads/Phoshare-1.5.0.app/Contents/Resources/lib/python2.7/phoshare/phoshare_ui.py", line 902, in export_thread
  File "/Users/jwatters/Downloads/Phoshare-1.5.0.app/Contents/Resources/lib/python2.7/appledata/iphotodata.py", line 838, in get_iphoto_data
  File "/Users/jwatters/Downloads/Phoshare-1.5.0.app/Contents/Resources/lib/python2.7/appledata/applexml.py", line 150, in read_applexml
  File "xml/sax/expatreader.pyc", line 107, in parse
  File "xml/sax/xmlreader.pyc", line 123, in parse
  File "xml/sax/expatreader.pyc", line 211, in feed
  File "xml/sax/handler.pyc", line 38, in fatalError
SAXParseException: /Users/jwatters/Pictures/iPhoto 
Library/iLifeShared/AlbumData2.xml:2846:22: not well-formed (invalid token)

Phoshare 1.4.7 still manages to start, but has the duplicate folder issue.

Reading iPhoto database from /Users/jwatters/Pictures/iPhoto Library...
Version 9.4 library with 2962 images
Done!

Any help appreciated.

Jonathan

Original comment by jonathan...@gmail.com on 2 Oct 2012 at 6:44

GoogleCodeExporter commented 8 years ago
Jonathan,
  this is iPhoto putting some mis-formatted content into a data file. Phoshare 1.4.7 doesn't read this particular file, so it starts up fine.
  I have seen this a few times before, usually because of some odd non-visible character getting into an event description. If you are OK with opening a XML file and poking around, open the AlbumData2.xml file (path shown above), and look around line 2846 for an event or album name. Then find that name in iPhoto, erase it, and re-type it. Do not use copy-paste, because that will re-paste the bad character right back. The other option would be e-mail me the file, and I can take a look. Only go that route if you're OK with me seeing all your event and album titles and descriptions.

Original comment by tsporkert on 2 Oct 2012 at 6:56

GoogleCodeExporter commented 8 years ago
PhoShare didn't appear to like ampersands (&) in event names. I renamed the 
offending events, and PhoShare is happy. Thanks for the rapid response. 

JW

Original comment by jonathan...@gmail.com on 2 Oct 2012 at 10:17

GoogleCodeExporter commented 8 years ago
Technically, it is not Phoshare that doesn't like ampersands, but iPhoto not 
properly formatting XML. "&" has a special meaning in XML, so if you data 
contain an "&", it needs to be written as "&". There are a few other characters 
that iPhoto doesn't properly escape, and Phoshare contains a workaround for 
those (essentially patching up the file before attempting to read it). But with 
"&", that isn't easily possible.

Original comment by tsporkert on 2 Oct 2012 at 5:04

GoogleCodeExporter commented 8 years ago
I note that iPhoto has just updated to 9.4.1 and ampersands are now being 
escaped correctly in the AlbumData2.xml file.

Thanks again.

JW

Original comment by jonathan...@gmail.com on 3 Oct 2012 at 7:06

GoogleCodeExporter commented 8 years ago
I'm getting a similar error - but less information:
Error: <unknown>:82732:11: not well-formed (invalid token)

Traceback (most recent call last):
  File "/Users/rick/Downloads/Phoshare-1.5.1.app/Contents/Resources/lib/python2.7/phoshare/phoshare_ui.py", line 902, in export_thread
  File "/Users/rick/Downloads/Phoshare-1.5.1.app/Contents/Resources/lib/python2.7/appledata/iphotodata.py", line 820, in get_iphoto_data
  File "/Users/rick/Downloads/Phoshare-1.5.1.app/Contents/Resources/lib/python2.7/appledata/applexml.py", line 160, in read_applexml_fixed
  File "/Users/rick/Downloads/Phoshare-1.5.1.app/Contents/Resources/lib/python2.7/appledata/applexml.py", line 168, in read_applexml_string
  File "xml/sax/__init__.pyc", line 49, in parseString
  File "xml/sax/expatreader.pyc", line 107, in parse
  File "xml/sax/xmlreader.pyc", line 123, in parse
  File "xml/sax/expatreader.pyc", line 211, in feed
  File "xml/sax/handler.pyc", line 38, in fatalError
SAXParseException: <unknown>:82732:11: not well-formed (invalid token)

I did find some ampersands in my event names. I am running iPhoto 9.4.1. The 
ampersands are properly escaped. There are some ampersands in captions. I don't 
know what else to do to get this to work.

Thanks
RB

Original comment by rhby...@gmail.com on 10 Oct 2012 at 2:18

GoogleCodeExporter commented 8 years ago
Hi, I'm getting the following message when trying to use this app, any help 
would be appreciated.

Reading iPhoto database from /Volumes/iPhoto Media/iPhoto Master/iPhoto Master 
- iMac...
Error: float() argument must be a string or a number

Traceback (most recent call last):
  File "/Volumes/iPhoto Media/Phoshare.app/Contents/Resources/lib/python2.7/phoshare/phoshare_ui.py", line 896, in export_thread
  File "/Volumes/iPhoto Media/Phoshare.app/Contents/Resources/lib/python2.7/appledata/iphotodata.py", line 701, in get_iphoto_data
  File "/Volumes/iPhoto Media/Phoshare.app/Contents/Resources/lib/python2.7/appledata/iphotodata.py", line 110, in __init__
  File "/Volumes/iPhoto Media/Phoshare.app/Contents/Resources/lib/python2.7/appledata/iphotodata.py", line 341, in __init__
  File "/Volumes/iPhoto Media/Phoshare.app/Contents/Resources/lib/python2.7/appledata/applexml.py", line 29, in getappletime
TypeError: float() argument must be a string or a number

Original comment by adam.dav...@gmail.com on 24 Oct 2012 at 12:18

GoogleCodeExporter commented 8 years ago
  TypeError: float() argument must be a string or a number
Please upgrade to the current version of Phoshare. This has been fixed since 
version 1.5.0.

Original comment by tsporkert on 28 Oct 2012 at 8:43