2 Replies Latest reply on Mar 24, 2017 8:56 PM by thewoj

    iPhoto Library Import Error

    thewoj

      Hey there, I have finally decided to completely transition my sizable (~55,000 photos/videos) iPhoto (9.6.1) library over to Lightroom (15.7), but the iPhoto importer is returning a rather specific error when I attempt to use it. After selecting the library and it's destination, and clicking import, I am instantly returned a popup error stating:

       

      An internal error has occured.

      ?:0 attempt to index a nil value

      Screen Shot 2017-01-30 at 1.21.30 PM.png

       

      After clearing that error, the importer progress dialogue remains up, but does not transfer anything and stays at 0%.

       

      Upon inspecting the log in my documents folder, I find the following error message in the log:

       

      2017-01-30 20:28:39 +0000, INFO

      Failed to obtain album info from iPhoto library with error Traceback (most recent call last):

        File "/Applications/Adobe Lightroom/Adobe Lightroom.app/Contents/PlugIns/aperture_iphoto_importer.lrplugin/Contents/Resources/pytho n/albums.py", line 149, in <module>

          readAlbumInfo( unicode( sys.argv[ 1 ], 'utf-8' ), unicode( sys.argv[ 2 ], 'utf-8' ) )

        File "/Applications/Adobe Lightroom/Adobe Lightroom.app/Contents/PlugIns/aperture_iphoto_importer.lrplugin/Contents/Resources/pytho n/albums.py", line 132, in readAlbumInfo

          xmlAlbums = readAlbumDataXml( unicode( sys.argv[ 1 ], 'utf-8' ) )

        File "/Applications/Adobe Lightroom/Adobe Lightroom.app/Contents/PlugIns/aperture_iphoto_importer.lrplugin/Contents/Resources/pytho n/albums.py", line 65, in readAlbumDataXml

          plist = plistlib.readPlist( xmlPath )

        File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 78, in readPlist

          rootObject = p.parse(pathOrFile)

        File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 406, in parse

          parser.ParseFile(fileobj)

      ExpatError: not well-formed (invalid token): line 96950, column 15

       

      After researching the ExpatError, it seems to be an issue with XML databases including non-UTF characters — has anyone else encountered this error? I tried searching for "not well formed invalid token" but the only other result didn't really seem to have an answer.

       

      I have tried unchecking all of the boxes inside the importer dialogue to no avail, as well as removing a majority of albums from iPhoto and renaming all albums that had special characters. I did find that I have a few ampersands in photo notes, as well as a filename containing an ampersand — I have since changed all of them to the word "and" and removed the photos with the ampersand in their names, and emptied the trash (the only change was the line number above changed to 96944).

       

      Is there anyway to figure out what line 96950 is? I tried bringing the XML into excel and going to the line number 96950, but I could not find anything out of the ordinary around that area of the XML.