← Back to team overview

phatch-dev team mailing list archive

[Bug 481751] Re: Unable to extract variables from file

 

I get the same error when trying to rename a photo with Exif data. It
was working fine with Ubuntu 9.04 but with 9.10 I get this message:

Error 0:Impossible d'ouvrir le fichier: /home/aymeric/Bureau/test.JPG:
Unable extract variables from file:/home/aymeric/Bureau/test.JPG:
Key must be of type string


Traceback (most recent call last):
  File "/usr/share/phatch/phatch/core/api.py", line 489, in get_photo
    photo = pil.Photo(info_file, info_not_file)
  File "/usr/share/phatch/phatch/core/pil.py", line 464, in __init__
    layer.image)
  File "/usr/share/phatch/phatch/core/pil.py", line 214, in __init__
    raise Exception(message)
Exception: Unable extract variables from file:/home/aymeric/Bureau/test.JPG:
Key must be of type string
*

** Attachment added: "rename.phatch.zip"
   http://launchpadlibrarian.net/36123759/rename.phatch.zip

-- 
Unable to extract variables from file
https://bugs.launchpad.net/bugs/481751
You received this bug notification because you are a member of Phatch
Developers, which is subscribed to Phatch.

Status in Phatch = Photo & Batch!: Incomplete

Bug description:
I'm trying to import a few files in Phatch 0.2.4 in Karmic 9.10 64 bit.

I get the following error:
Traceback (most recent call last):
  File "/usr/share/phatch/phatch/core/api.py", line 489, in get_photo
    photo = pil.Photo(info_file, info_not_file)
  File "/usr/share/phatch/phatch/core/pil.py", line 464, in __init__
    layer.image)
  File "/usr/share/phatch/phatch/core/pil.py", line 214, in __init__
    raise Exception(message)
Exception: Unable extract variables from file:/home/lu/Pictures/DRTest/DSC_0080.JPG:
Key must be of type string
*
Error 1:Unable to open file: /home/lu/Pictures/DRTest/DSC_0180.JPG:
Unable extract variables from file:/home/lu/Pictures/DRTest/DSC_0180.JPG:
Key must be of type string


I can definitely see the exif stuff as part of the image... not sure what this is about.
I'm only using the basic save action and this for the Filename: <filename> <Exif_Photo_DateTimeOriginal.year>



References