[KPhotoAlbum] exif/exiv issue with stadler debian build
Mark Eichin
eichin at gmail.com
Thu Jul 9 20:06:49 BST 2009
Even worse, I did a "mv exif-info.db pre-k4-exif-info.db", started
kphotoalbum, it imported some pictures, created a fresh
exif-info.db... and *still* gave
Error running query: INSERT into exif values (?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?)
Error was: constraint failed Unable to fetch row
for each picture... running sqlite3 .schema on the new file gives:
CREATE TABLE exif (filename string PRIMARY KEY, Exif_Photo_FocalLength
float, Exif_Photo_ExposureTime float, Exif_Photo_ApertureValue float,
Exif_Photo_FNumber float, Exif_Photo_Flash int, Exif_Photo_Contrast
int, Exif_Photo_Sharpness int, Exif_Photo_Saturation int,
Exif_Image_Orientation int, Exif_Photo_MeteringMode int,
Exif_Photo_ISOSpeedRatings int, Exif_Photo_ExposureProgram int,
Exif_Image_Make string, Exif_Image_Model string );
which is at least the right number of columns... also, other than
PRIMARY KEY I don't see any constraints, and a .dump gives a number of
INSERT INTO "exif"
VALUES(X'2F686F6D652F65696368696E2F5049582F43616E6F6E5F5358313049532F646F776E636173652F323030392F696D675F3130342D303037352E6A7067',26.001,0.002,4.34375,4.5,16,-1,-1,-1,1,5,400,-1,'Canon','Canon
PowerShot SX10 IS');
(the hex does encode to a valid filename and is one of the new
imports... so apparently I'm getting errors but it is importing them
anyway? maybe it's trying to load them twice or something?)
On Mon, Jul 6, 2009 at 12:59 AM, Mark Eichin<eichin at gmail.com> wrote:
> Oh, huh, I actually can cut&paste from the error dialog:
>
> There was an error while executing the SQL backend command. The error
> is likely due to a broken database file.
> To fix this problem run Maintainance->Rebuild EXIF database.
>
> For debugging, this is the command I tried to execute:
> INSERT into exif values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
> This was the error message I got:
> Parameter count mismatch
>
--
_Mark_ <eichin at thok.org> <eichin at gmail.com>
More information about the Kphotoalbum
mailing list