peircej / jbrout

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

error on import nef files #140

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. import dir with nikon raw files.

What is the expected output? What do you see instead?
Traceback (most recent call last):
   File "jbrout.py", line 2542, in on_btn_addFolder_clicked
    self.on_drop_folders_from_os(self.treeviewdb.get_model(),[folder])
   File "jbrout.py", line 1626, in on_drop_folders_from_os
    for nb in iterator:
   File "C:\PROGRA~1\jBrout\app\jbrout\db.py", line 132, in add
    self.__addPhoto( file ,tags,filesInBasket)
   File "C:\PROGRA~1\jBrout\app\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 "C:\PROGRA~1\jBrout\app\jbrout\db.py", line 181, in __addPhoto
    needAutoRotation=DBPhotos.autorotAtImport,
  File "C:\PROGRA~1\jBrout\app\jbrout\tools.py", line 232, in __init__
    self.transform("auto")
  File "C:\PROGRA~1\jBrout\app\jbrout\tools.py", line 612, in transform
    ret= _Command._run(
[_Command._jpegtran]+jpegtranOpt+['-copy','all',self.__file,self.__file] )
  File "C:\PROGRA~1\jBrout\app\jbrout\tools.py", line 145, in _run
    raise CommandException( cmdline +"\n OUTPUT ERROR:"+outerr)
CommandException: [u'C:\\PROGRA~1\\jBrout\\app\\data\\tools\\jpegtran.exe
-rotate 270 -copy all
D:\\olegs_documents\\stock\\raw\\2010-01-25\\baang-saray\\DSC_4527.NEF
D:\\olegs_documents\\stock\\raw\\2010-01-25\\baang-saray\\DSC_4527.NEF']
 OUTPUT ERROR:Not a JPEG file: starts with 0x4d 0x4d

Photo has incorrect exif/iptc tags, can't be imported :
[u'D:\\olegs_documents\\stock\\raw\\2010-01-25\\baang-saray\\DSC_4527.NEF']

What version of the product are you using? On what operating system?
windows XP
Jbrout 0.3.282

Please provide any additional information below.
file is in attach

Original issue reported on code.google.com by Oleg.Bla...@gmail.com on 9 Feb 2010 at 8:11

Attachments:

GoogleCodeExporter commented 8 years ago
The file attached to this bug works for me using the latest build of jbrout 
with pyexiv2 version 0.3-4, please confirm

Original comment by r...@wallace.gen.nz on 4 Oct 2012 at 10:33

GoogleCodeExporter commented 8 years ago
Closed as no response from submitter, this may be re-opened if further details 
are supplied.

Original comment by r...@wallace.gen.nz on 15 Oct 2012 at 7:30