Help!

38 views
Skip to first unread message

François Henneuse

unread,
Jul 11, 2013, 7:41:18 AM7/11/13
to jbr...@googlegroups.com
Hello,

I created a tag with the ! character and I tagged more than 1000 photos
with it.

Now, this tag is invisible but causes big problems : I can't see the
pics in fullscreen, Jbrout tells me that...

Traceback (most recent call last):
File "/home/franz/jbrout/jbrout/winshow.py", line 288, in _draw
self.taglist.fill(ltags)
File "/home/franz/jbrout/jbrout/winshow.py", line 34, in fill
self.__refresh()
File "/home/franz/jbrout/jbrout/winshow.py", line 46, in __refresh
lbl.set_label("%s (%s)" %(i,self.__tags[i]))
KeyError: u'!Wallch'


The only solution I see now is to remove alls tags and then retag. But I
dont' want to do it more than 1000 times !

Please help,


Fran�ois

Francois Chartier

unread,
Jul 11, 2013, 8:02:01 AM7/11/13
to jbr...@googlegroups.com

Select all pictures with the wrong tag from search, add new correct tag to all selected pics, remove old tag from selected pics, then drop old tag. That'd what I do to rename a tag. Should work if you don't run in another exception, and there's no risk in attempting it.

Francois

François

--
You received this message because you are subscribed to the Google Groups "jBrout" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbrout+unsubscribe@googlegroups.com.
To post to this group, send email to jbr...@googlegroups.com.
Visit this group at http://groups.google.com/group/jbrout.
For more options, visit https://groups.google.com/groups/opt_out.


Franz

unread,
Jul 11, 2013, 8:09:43 AM7/11/13
to jbr...@googlegroups.com
Thanks for your quick answer. 

Unfortunately it's more complicated : when I select one picture with this tag and right clic/remove tag it does not appear in the list. That's why the only solution I found was to choose "remove all tags". Because then the wrong tag is removed.

This tag also does not appear in the tag tree. 


François


Le jeudi 11 juillet 2013 14:02:01 UTC+2, chartier...@gmail.com a écrit :

Select all pictures with the wrong tag from search, add new correct tag to all selected pics, remove old tag from selected pics, then drop old tag. That'd what I do to rename a tag. Should work if you don't run in another exception, and there's no risk in attempting it.

Francois

Le 11 juil. 2013 13:41, "François Henneuse" <frh...@gmail.com> a écrit :
Hello,

I created a tag with the ! character and I tagged more than 1000 photos with it.

Now, this tag is invisible but causes big problems : I can't see the pics in fullscreen, Jbrout tells me that...

Traceback (most recent call last):
   File "/home/franz/jbrout/jbrout/winshow.py", line 288, in _draw
    self.taglist.fill(ltags)
   File "/home/franz/jbrout/jbrout/winshow.py", line 34, in fill
    self.__refresh()
   File "/home/franz/jbrout/jbrout/winshow.py", line 46, in __refresh
    lbl.set_label("%s (%s)" %(i,self.__tags[i]))
 KeyError: u'!Wallch'


The only solution I see now is to remove alls tags and then retag. But I dont' want to do it more than 1000 times !

Please help,


François

--
You received this message because you are subscribed to the Google Groups "jBrout" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbrout+un...@googlegroups.com.

Franz

unread,
Jul 11, 2013, 8:21:26 AM7/11/13
to jbr...@googlegroups.com
I found a solution! When I right clic / operations / "unifier les mots clés" (don't know in english), then the problematic tag appears (right clic/remove tags) and it's easy to apply the solution you provide. 

Just wonder, what is that for a operation? What are consequences? 
I'll wait for answers before I do it to my 1000+ pics. 

I also noticed that the problem (not diplaying in full screen with error msg) does not occur with the pics from my new smartphone although the tag is present without the possibility to remove it (right clic/remove tags).


François

Francois Chartier

unread,
Jul 11, 2013, 4:07:30 PM7/11/13
to jbr...@googlegroups.com
From what I read in the code, this operation will tag all pictures in a set with all tags in those pics. Say you have three pics with tags a and b / b / b and c, your three pics will then have tags a, b and c... Not really what you wished.

As for the reason it worked... Maybe it had some side effect on EXIF and IPTC keywords, since they should be synchronised 

Did you create this tag with jbrout or with another tool ?

Francois

Franz

unread,
Jul 12, 2013, 9:41:36 AM7/12/13
to jbr...@googlegroups.com
I created the tag with Jbrout.
Strange, I tried with 2 pictures having 2 different tags. I selected both and try to unify the tags. The result was that the 2 pics kept their own tags + the hidden/problematic one.

At least that's what I remember !  I have serious doubts now that you say that's not what the code is supposed to do :)

I'll try again this evening @home.


François
To unsubscribe from this group and stop receiving emails from it, send an email to jbrout+unsubscribe@googlegroups.com.

Franz

unread,
Jul 13, 2013, 6:03:05 AM7/13/13
to jbr...@googlegroups.com
Indeed the operation does the job you mention : same tag on every selected pics.... 

Thus I still have a big problem... 


François

Rob Wallace

unread,
Jul 13, 2013, 8:34:08 PM7/13/13
to Jbrout Mailing List
Do you have a sample picture that you could send that exhibits the issue that I could use to Try and reproduce it and hopefully come up with a fix or work around.  

Regards
Rob

Francois Chartier

unread,
Jul 14, 2013, 6:50:44 AM7/14/13
to jbr...@googlegroups.com

We should check if this character used as a separator somewhere in the tag processing...

And Franz, does your tag appear in jbrout tag.xml ? This might require some external processing...

Franz

unread,
Jul 15, 2013, 3:34:31 AM7/15/13
to jbr...@googlegroups.com
Hello,

Thanks for your support.

@François : the tag does not appear in the tag tree. I did not look in the xml file. I'll do it this evening. I remember that the tag was in the tag tree when I created it, I also moved it in a category. I think jBrout shut down badly because when I opened it the next time, some changes in the tag tree were not there anymore.
It gives me an idea : I will try to reimport them all. Perhaps jBrout will detect the tag. If so it will be easy to remove.


@Rob : ok I'll do that I'll provide a sample picture this evening.


Franz

Franz

unread,
Jul 15, 2013, 4:45:36 PM7/15/13
to jbr...@googlegroups.com
Ok I found a solution and I can reproduce the bug !

The solution : Simply by refreshing a folder (thus reimport the pictures), jBrout now adds the tag to the tree, I can see the tag on every picture and I can open those pictures without the bug message I posted before. 

More interesting : I only refreshed / reimported one folder with 20 pics containing the famous tag. I have more than 1000 pics with this tag and now, there is no more problem opening them (all of them). The tag appears when the picture is in fullscreen (on the left pannel). It does not appear on the thumbview (main window). 

Thus the bug comes from jBrout not liking to open a picture on fullscreen mode containing a tag that is not in the tree (thus not in tags.xml I suppose) and certainly containing a special character as "!". 

To reproduce the bug : 
1) create a tag containing a "!"
2) Tag one picture with that tag
3) Restart your computer without properly closing jBrout.
4) When your computer is restarted, open jBrout. You'll notice the tag is not on the tree nor in the picture (it is but not visible)
5) Try to open the pic tagged on step 2 fullscreen, you'll get the bug

I have not tried with a tag that does not contain the "!" character and I suppose it won't bug as I experienced having pictures with tags that are not in the tree for years (as jBrout apparently only adds the tags to the tree while importing).

François
Reply all
Reply to author
Forward
0 new messages