remcoboerma / jbrout

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

cannot import attached image with jbrout-0.3.284 and pyexiv2-0.2.2 #160

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I get this backtrace

Traceback (most recent call last):
   File "/usr/share/jbrout/jbrout.py", line 2550, in on_btn_addFolder_clicked
    self.on_drop_folders_from_os(self.treeviewdb.get_model(),[folder])
   File "/usr/share/jbrout/jbrout.py", line 1634, in on_drop_folders_from_os
    for nb in iterator:
   File "/usr/share/jbrout/jbrout/db.py", line 132, in add
    self.__addPhoto( file ,tags,filesInBasket)
   File "/usr/share/jbrout/jbrout/db.py", line 192, in __addPhoto
    raise Exception(err+"\nPhoto has incorrect exif/iptc tags, can't be imported :\n"+str([file,]))
 Exception: Traceback (most recent call last):
  File "/usr/share/jbrout/jbrout/db.py", line 181, in __addPhoto
    needAutoRotation=DBPhotos.autorotAtImport,
  File "/usr/share/jbrout/jbrout/tools.py", line 194, in __init__
    self.__info = pyexiv2.Image(self.__file)
AttributeError: 'module' object has no attribute 'Image'

Photo has incorrect exif/iptc tags, can't be imported :
[u'/home/matej/Obr\xe1zky/2010/01/\u0161koli\u010dka/p20100128_081842.jpg']

Original issue reported on code.google.com by matej.c...@gmail.com on 25 Aug 2010 at 10:35

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The rebuild of the same jbrout with older pyexiv2-0.1.3-11.fc14 imports the 
same file without a problem (albeit XMP data are corrupted), so this is 
probably inability of the current jbrout to work with 0.2.2 pyexiv2

Original comment by matej.c...@gmail.com on 26 Aug 2010 at 2:04

GoogleCodeExporter commented 9 years ago
To be able to use pyexiv2 >= 0.2 : you should use a recent jbrout release (svn)

Original comment by manat...@gmail.com on 27 Aug 2010 at 7:01

GoogleCodeExporter commented 9 years ago
Ehm, 0.3.284 is the latest release you've made. But well, I will try with svn 
(or with git ... http://gitorious.org/jbrout/jbrout :))

Original comment by matej.c...@gmail.com on 27 Aug 2010 at 7:34