I've just switched to an Intel Mac because my Powerbook is now 3 years old and is getting slower and slower.
Lots of reasons behind the switch but I'm not discussing that now.
The MacBook came with iPhoto as part of iLife '06 and iPhoto refuses to upgrade my library (it will display a message saying I have to make sure I have read and write permissions on the iPhoto folder - suggesting I use the Finder to fix the problem; well, the Finder complains about the same thing).
Starting iPhoto under gdb offers some explanation on what's going on:
It seems iPhoto is choking on two files. And the weirdest thing is no even chmod can restore the proper permissions on the files, not even when called via sudo:
Oh that's because the file is "locked". This is a feature on the Nikon cameras where you can lock a photo to make sure you'll not delete it accidentaly. This is implemented using the "uchg" - user immutable flag - which is preventing both iPhoto and Finder from modifying the file while upgrading.
So let's remove the flag.
Voila. Now the upgrade runs fine.
I think the Finder should announce the reason that's causing it to fail setting permissions. Something like "Finder failed to apply the permissions to all the enclosed items because it found some locked items" would be much better than the current "Operation not permitted" message.
And maybe offering a button to unlock all locked files would be nice.
Lots of reasons behind the switch but I'm not discussing that now.
The MacBook came with iPhoto as part of iLife '06 and iPhoto refuses to upgrade my library (it will display a message saying I have to make sure I have read and write permissions on the iPhoto folder - suggesting I use the Finder to fix the problem; well, the Finder complains about the same thing).
Starting iPhoto under gdb offers some explanation on what's going on:
2007-01-05 09:29:21.993 iPhoto[412] NSFileManager error: {
Error = "Error removing";
Path = "[..]/2006/03/04/Originals/DSC_6808_1.jpg";
}
2007-01-05 09:29:26.120 iPhoto[412] Failed iPhoto upgrade.
Files iPhoto was unable to access:
/Users/diciu/Pictures/iPhoto Library/2006/08/12/DSC_7962.JPG
/Users/diciu/Pictures/iPhoto Library/2006/08/12/Originals/DSC_7962.JPG
It seems iPhoto is choking on two files. And the weirdest thing is no even chmod can restore the proper permissions on the files, not even when called via sudo:
cdc:~ diciu$ sudo chmod 644 "/Users/diciu/Pictures/iPhoto Library/2006/08/12/DSC_7962.JPG"
chmod: /Users/diciu/Pictures/iPhoto Library/2006/08/12/DSC_7962.JPG: Operation not permitted
Oh that's because the file is "locked". This is a feature on the Nikon cameras where you can lock a photo to make sure you'll not delete it accidentaly. This is implemented using the "uchg" - user immutable flag - which is preventing both iPhoto and Finder from modifying the file while upgrading.
cdc:~ root# ls -alo "/Users/diciu/Pictures/iPhoto Library/2006/08/12/DSC_7962.JPG"
-rw-r--r-- 1 diciu diciu uchg 3052221 Aug 12 11:16 /Users/diciu/Pictures/iPhoto Library/2006/08/12/DSC_7962.JPG
So let's remove the flag.
cdc:~ root# chflags nouchg "/Users/diciu/Pictures/iPhoto Library/2006/08/12/DSC_7962.JPG"
Voila. Now the upgrade runs fine.
I think the Finder should announce the reason that's causing it to fail setting permissions. Something like "Finder failed to apply the permissions to all the enclosed items because it found some locked items" would be much better than the current "Operation not permitted" message.
And maybe offering a button to unlock all locked files would be nice.