peircej / jbrout

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

jbrout will not read jpeg file(s) #198

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open jbrout
2. press "+" to summon file selector
3. select directory with photos

What is the expected output? What do you see instead?
I expect jbrout to read/handle the photos, so that I can subsequently tag them 
with IPTC keywords.
Instead, I get an error message.

What version of the product are you using? On what operating system?
scott@scott-AsusM2N68-AM-Plus:~$ jbrout --version

(jbrout.py:2634): Gtk-WARNING **: Unable to locate theme engine in module_path: 
"pixmap",

(jbrout.py:2634): Gtk-WARNING **: Unable to locate theme engine in module_path: 
"pixmap",

(jbrout.py:2634): Gtk-WARNING **: Unable to locate theme engine in module_path: 
"pixmap",

(jbrout.py:2634): Gtk-WARNING **: Unable to locate theme engine in module_path: 
"pixmap",
The psyco module does not seem to be installed. It is not necessary, however it 
can speed up performance.
JBrout 0.3.284
scott@scott-AsusM2N68-AM-Plus:~$ uname -a
Linux scott-AsusM2N68-AM-Plus 3.0.0-15-generic #25-Ubuntu SMP Mon Jan 2 
17:45:26 UTC 2012 i686 athlon i386 GNU/Linux

Please provide any additional information below:
The following was originally placed at the end of issue #141, which seemed 
similar, but I do not think that anyone noticed it there...
The files in question are not corrupt, anyway...

Hi.  

Background:

I am thinking of trying to make money by uploading photos to stock-photo 
websites.  It was recommended that keywords be embedded in the photos, and Gimp 
not only cannot do that, it erases any that do exist.  I therefore am trying 
JBrout to tag photos with IPTC keywords.
I intend JBrout only to have access to photos that I am planning to upload 
(since I see no reason to keyword thousands of photos that may never be used).

Problem:

I copied one photo into a folder that will be used for stock-photos, as a test, 
and attempted to have JBrout open it.
I got the same sort of error that has been discussed here [Issue #141]:

"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'/data/scott/Photos/PhotosForStock/TGEC0189.JPG']"

[Originally, I had just a link to the photo there, as I see no reason to have 
multiple full-size copies of each photo taking up space on my hard drive - 
especially if I manage to do as some photographers have done and have 1500 or 
more photos on one or more stock-photo sites...
However, when the link-file generated the error, I removed it and placed a 
full-size file there (not a link), and had the same error.]

I am currently using Ubuntu 11.10, and usually using Gnome Shell instead of 
Unity
("...not that there's anything WRONG with that..."), although the same think 
happens with Unity.
I just picked a random photo, amongst those I think might be usable for stock, 
and neither Nautilus nor Eye of GNOME image viewer has any problem with it.  I 
have had two cameras, and have never had any problem with any picture generated 
with them (with the exception of when I tried to do a backup of photos and 
other documents with Brasero once and ended up with a DVD full of unusable 
files - with nothing from Brasero indicating that anything was wrong...)

I do not know what is wrong here, but if someone can find a solution for this, 
I would be very grateful.

-Scott

Original issue reported on code.google.com by scott092...@aol.com on 22 Jan 2012 at 10:43

Attachments:

GoogleCodeExporter commented 9 years ago
The attachment above imports fine on my system using the current version of 
jbrout, pleas confirm if this is still an issue

Original comment by r...@wallace.gen.nz on 5 Oct 2012 at 10:16

GoogleCodeExporter commented 9 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