peircej / jbrout

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

Paths with accented characters on Windows lead to crash #191

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run jbrout
2. Click Add button
3. Select appropriate folder with jpeg files (in my case)
4. Click Open button

What is the expected output? What do you see instead?
Actual result: There is an exception -

Traceback (most recent call last):
   File "/usr/lib/jbrout/jbrout.py", line 2550, in on_btn_addFolder_clicked
    self.on_drop_folders_from_os(self.treeviewdb.get_model(),[folder])
   File "/usr/lib/jbrout/jbrout.py", line 1634, in on_drop_folders_from_os
    for nb in iterator:
   File "/usr/lib/jbrout/jbrout/db.py", line 132, in add
    self.__addPhoto( file ,tags,filesInBasket)
   File "/usr/lib/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/lib/jbrout/jbrout/db.py", line 181, in __addPhoto
    needAutoRotation=DBPhotos.autorotAtImport,
  File "/usr/lib/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'/<path-to-folder>/2007.11.23 - \u043f\u0435\u0440\u0432\u044b\u0439 
\u0442\u0435\u0441\u0442/IMGP5280.JPG']

Expected result: All photos should be added into jbrout

What version of the product are you using? On what operating system?
jbrout 0.3.284
Library Versions:
Python: 2.7.2
PyGTK: 2.24.0
GTK: 2.24.6
PIL: 1.1.7

OS: Debian wheezy

Please provide any additional information below.
According to exception log, I suppose the problem may be either with image path 
(which contains cyrillic symbols) or jpeg image type. Currently, I can't load 
any of my photos (however, I can view them via any other viewer correctly).

Original issue reported on code.google.com by dsp.aka....@gmail.com on 22 Oct 2011 at 8:37

GoogleCodeExporter commented 9 years ago
Issue 180 has been merged into this issue.

Original comment by matej.c...@gmail.com on 12 Aug 2013 at 10:29

GoogleCodeExporter commented 9 years ago

Original comment by matej.c...@gmail.com on 12 Aug 2013 at 10:30