gottagetit / phoshare

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

Errors opening iPhoto database #58

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open phoshare 1.5.2
2. Select iPhoto Library from Browse

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

I'm expecting it to successfully open the iPhoto library, but instead I get the 
following error:

Error: <unknown>:980771:8: not well-formed (invalid token)

Traceback (most recent call last):
  File "/Users/taylor/Desktop/Phoshare-1.5.2.app/Contents/Resources/lib/python2.7/phoshare/phoshare_ui.py", line 902, in export_thread
  File "/Users/taylor/Desktop/Phoshare-1.5.2.app/Contents/Resources/lib/python2.7/appledata/iphotodata.py", line 823, in get_iphoto_data
  File "/Users/taylor/Desktop/Phoshare-1.5.2.app/Contents/Resources/lib/python2.7/appledata/applexml.py", line 160, in read_applexml_fixed
  File "/Users/taylor/Desktop/Phoshare-1.5.2.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>:980771:8: not well-formed (invalid token)

What version of the product are you using? On what operating system?

Version 1.5.2 with Mac OS X 10.6.8 and iPhoto '11 9.2.3

Please provide any additional information below.

My iPhoto has 154,342 photos and 300GB large.

I've opened the AlbumData.xml file (which is 170.1MB) in TextWrangler and found 
line 980771, but it says the following: <key>GUID</key>

I was getting the same error before and was exporting and deleting the photos 
that were referenced in the xml file. Now it just says GUID, which is not a 
photo. I'm not sure what to do at this point. 

Can you help?

Thanks!

--Eric

Original issue reported on code.google.com by goddardf...@gmail.com on 18 Feb 2013 at 11:46

GoogleCodeExporter commented 8 years ago
iPhoto sometimes doesn't properly escape special characters when writing the 
AlbumData.xml file. Often, it is an unprintable control character that somehow 
made it into an description, title, or caption field. You have to look a few 
lines around that particular line to find the problem. Most of the times, I see 
it in event descriptions. Once you find the offending string, re-enter it in 
iPhoto. Do not use copy-paste, because that will just replace it with the same 
bad string.

Original comment by tsporkert on 2 Mar 2013 at 6:08