peircej / jbrout

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

jbrout incompatible with pyexiv2-0.2.1 #148

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
while running into the bug "pyexiv2-0.1.3 doesn't compile against 
>=libexiv2-0.19" (https://bugs.launchpad.net/pyexiv2/+bug/503272)
i've upgraded to pyexiv2-0.2.1.

jbrout loads fine, but all thumbnails are replaced by the broken icon 
throwing errors like:
------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/jbrout/jbrout/jbrout/db.py", line 629, in getThumb
    i=Img(thumb=self.file)
  File "/tmp/jbrout/jbrout/jbrout/commongtk.py", line 276, in __init__
    img = pyexiv2.Image(thumb)
AttributeError: 'module' object has no attribute 'Image'
------------------------------------------------------------

import actions fail, too:
------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/jbrout/jbrout/jbrout.py", line 1526, in on_menu_refresh
    self.on_drop_folders_from_os(model,[path])
  File "/tmp/jbrout/jbrout/jbrout.py", line 1626, in 
on_drop_folders_from_os
    for nb in iterator:
  File "/tmp/jbrout/jbrout/jbrout/db.py", line 132, in add
    self.__addPhoto( file ,tags,filesInBasket)
  File "/tmp/jbrout/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 "/tmp/jbrout/jbrout/jbrout/db.py", line 181, in __addPhoto
    needAutoRotation=DBPhotos.autorotAtImport,
  File "/tmp/jbrout/jbrout/jbrout/tools.py", line 195, 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'/data/transfer/_CAM/import/phone/KUHLF8_2009-12-11 13.01.59.jpg']
------------------------------------------------------------

viewing exif metadata, too:
------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/jbrout/jbrout/jbrout.py", line 1956, in 
on_selecteur_menu_select_plugin
    ret=callback(l)
  File "/tmp/jbrout/jbrout/plugins/__init__.py", line 270, in myCallBack
    ret=callback(*a,**k)
  File "/tmp/jbrout/jbrout/plugins/viewExif/__init__.py", line 25, in 
viewExif
    win = WinViewExif(list)
  File "/tmp/jbrout/jbrout/libs/gladeapp.py", line 125, in __init__
    obj(*(args),**(dargs))
  File "/tmp/jbrout/jbrout/plugins/viewExif/viewExif.py", line 81, in init
    self.setPhoto(0)
  File "/tmp/jbrout/jbrout/plugins/viewExif/viewExif.py", line 86, in 
setPhoto
    image=pyexiv2.Image(self.nodes[i].file)
AttributeError: 'module' object has no attribute 'Image'

looks like they have had an api-change.

Original issue reported on code.google.com by zaar...@gmail.com on 11 May 2010 at 1:13

GoogleCodeExporter commented 8 years ago
Work has started on making jBrout work against pyexiv2-0.2.x, there is still 
some 
functionality missing in pyexiv2-0.2.2 to make jBrout fully work with it. 

The missing functionality is modifying thumbnails, this has been reported 
upstream by 
manatlan - https://bugs.launchpad.net/pyexiv2/+bug/587614

The work in the repository now works except for anything that needs to modify 
the 
thumbnail.  

Original comment by r...@wallace.gen.nz on 3 Jun 2010 at 7:35

GoogleCodeExporter commented 8 years ago
But the initial trouble shouldn't appear in les last svn version.
But Rob is right : there is a missing functionality ! be aware.
"big warnings" are displayed in console when using a recent pyexiv2 0.2 version

Original comment by manat...@gmail.com on 3 Jun 2010 at 8:14

GoogleCodeExporter commented 8 years ago
thanks for that.
btw: i'm using 0.1.3 now (gentoo ebuild:
http://bugs.gentoo.org/attachment.cgi?id=217721&action=edit)

Original comment by zaar...@gmail.com on 4 Jun 2010 at 11:15

GoogleCodeExporter commented 8 years ago

Original comment by manat...@gmail.com on 27 Aug 2010 at 6:37