Thanks for your suggestions. I tried both the first two, but restoring the iPhoto library didn't help. I saved it on to the desktop using Time Machine but still can't open iPhoto. I also tried to rebuild the library, but the instructions are to hold down the Command and Option keys and open iPhoto and when I do that, the same happens as before – instead of opening, it tells me that the library needs to be prepared.
Currently Being ModeratedAug 15, 2013 11:15 AM (in response to Barry Millington)
You say you moved the library to the Desktop. Did you try to create a new one, and fail? If so, please do as follows.
This procedure is a diagnostic . It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of this test is to determine whether the problem is localized to your user account. Enable guest logins* and log in as Guest.
While logged in as Guest, . Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
Test while logged in as Guest. Same problem?
After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
*Note: If you’ve activated “Find My Mac” or FileVault in OS X 10.7 or later, then you can’t enable the Guest account. The "Guest User" login created by "Find My Mac" is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
Currently Being ModeratedAug 15, 2013 11:53 AM (in response to Barry Millington)
I've tried downloading the Library upgrade (though this surely shouldn't be necessary) but to no avail.
Did you run the upgrader after downloading it?
What version of iPhoto did you have before the move to Mt. Lion? If it was iPhoto 5 or earlier then the Library Upgrade would be necessary.
Currently Being ModeratedAug 19, 2013 12:39 AM (in response to Terence Devlin)
Thanks. I've done that and iPhoto has at last opened, but bizarrely it reveals only four photos in three rolls made between 2001 and 2005. I don't know where the rest have gone and they don't appear to have been saved in any recent backup on my portable drive. It's disappointing but not the end of the world: maybe I just start again. It's good to have iPhoto working anyway.
Currently Being ModeratedAug 19, 2013 8:58 AM (in response to Barry Millington)
Apply the two fixes below in order as needed on your library:
1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
2 - run Option #4 to rebuild the database.
Using iPhoto Library Manager to Rebuild Your iPhoto Library
1 - download iPhoto Library Manager and launch.
2 - click on the Add Library button and select the library you want to add in the selection window..
3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
4 - In the next window name the new library and select the location you want it to be placed.
5 - Click on the Create button.
Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments. However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.