brunolojor / jbrout

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

import fails on german umlauts in path or file name #125

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use any german Umlaut (ä, ö, ü) in a folder or file Name
2. Import Photos from that folder / with that name

What is the expected output? What do you see instead?
Should Import, but gives me this:

Traceback (most recent call last):
   File "./jbrout.py", line 1521, in on_menu_refresh
    self.on_drop_folders_from_os(model,[path])
   File "./jbrout.py", line 1616, in on_drop_folders_from_os
    for nb in iterator:
   File "/home/lomex/filme/jbrout/jbrout/db.py", line 132, in add
    self.__addPhoto( file ,tags,filesInBasket)
   File "/home/lomex/filme/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 "/home/lomex/filme/jbrout/jbrout/db.py", line 181, in __addPhoto
    needAutoRotation=DBPhotos.autorotAtImport,
  File "/home/lomex/jb/jbrout/jbrout/tools.py", line 195, in __init__
    self.__info = pyexiv2.Image(self.__file)
  File "/usr/lib/pymodules/python2.5/pyexiv2.py", line 396, in __init__
    libpyexiv2.Image.__init__(self, filename)
IOError: /home/lomex/filme/gi-joe-räise-of-cobra.jpg: Failed to open the data 
source: Datei 
oder Verzeichnis nicht gefunden (errno = 2)

Photo has incorrect exif/iptc tags, can't be imported :
[u'/home/lomex/filme/gi-joe-r\xe4ise-of-cobra.jpg']

What version of the product are you using? On what operating system?
rev 269 from svn - debian GNU/linux

Original issue reported on code.google.com by lome...@googlemail.com on 13 Oct 2009 at 4:05