Bug 1344871 - [abrt] autojump: autojump_data.py:70:<lambda>:UnicodeEncodeError: 'decimal' codec can't encode characters in position 0-16332: invalid decimal Unicode string
Summary: [abrt] autojump: autojump_data.py:70:<lambda>:UnicodeEncodeError: 'decimal' c...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: autojump
Version: 23
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Thibault North
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:315bd0bacf752c85a1d5c01669b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-12 02:51 UTC by Sergio Basto
Modified: 2016-08-11 02:24 UTC (History)
3 users (show)

Fixed In Version: autojump-22.3.2-1.fc24 autojump-22.3.2-1.fc23
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-12 15:07:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (64.62 KB, text/plain)
2016-06-12 02:51 UTC, Sergio Basto
no flags Details
File: environ (4.38 KB, text/plain)
2016-06-12 02:51 UTC, Sergio Basto
no flags Details

Description Sergio Basto 2016-06-12 02:51:26 UTC
Description of problem:
autojump have a few problem since last update , dissapear the story now, hoppefully I got a backup with my 700:     number of entries , today ~/.local/share/autojump/autojump.txt got some binaries characters which leads to 
autojump -s
Traceback (most recent call last):
  File "/usr/bin/autojump", line 420, in <module>
    sys.exit(main(parse_arguments()))
  File "/usr/bin/autojump", line 383, in main
    print_stats(load(config), config['data_path'])
  File "/usr/lib/python2.7/site-packages/autojump_data.py", line 80, in load
    ifilter(correct_length, imap(parse, f))))
  File "/usr/lib/python2.7/site-packages/autojump_data.py", line 70, in <lambda>
    tupleize = lambda x: (x[1], float(x[0]))
UnicodeEncodeError: 'decimal' codec can't encode characters in position 0-16332: invalid decimal Unicode string

Version-Release number of selected component:
autojump-22.3.0-3.fc23

Additional info:
reporter:       libreport-2.6.4
cmdline:        /usr/bin/python /usr/bin/autojump --add /home/sergio/rpmfusion/new/rpmfusion-packager
executable:     /usr/bin/autojump
kernel:         4.5.6-200.fc23.x86_64
runlevel:       N 5
type:           Python
uid:            500

Truncated backtrace:
#1 <lambda> in /usr/lib/python2.7/site-packages/autojump_data.py:70
#2 load in /usr/lib/python2.7/site-packages/autojump_data.py:80
#3 main in /usr/bin/autojump:364
#4 <module> in /usr/bin/autojump:420

Comment 1 Sergio Basto 2016-06-12 02:51:32 UTC
Created attachment 1167059 [details]
File: backtrace

Comment 2 Sergio Basto 2016-06-12 02:51:34 UTC
Created attachment 1167060 [details]
File: environ

Comment 3 Sergio Basto 2016-06-14 11:55:23 UTC
today , autojump.txt was cleaned again ... 

ll -trl /home/sergio/.local/share/autojump

-rw-------  1 sergio sergio  57915 Jun  3 14:51 autojump.txt.backup
-rw-------. 1 sergio sergio  58509 Jun  8 15:51 autojump.txt.backup2
-rw-------  1 sergio sergio    263 Jun 13 17:32 autojump.txt.bak
-rw-------  1 sergio sergio    303 Jun 13 17:32 autojump.txt

Comment 4 Tomas Tomecek 2016-06-20 12:16:30 UTC
Thanks for your report. Unfortunately this is not that uncommon with autojump given by the amount of upstream issues opened:

https://github.com/wting/autojump/issues/367 (looks very similar to yours)

https://github.com/wting/autojump/issues/420 -- likely the same issue you have


The upstream isn't very responsive: I have a PR opened for ~3 months with no response. That's why I'm not going to try to fix this one, since it wouldn't be merged any time soon.

Let's hope that upstream fixes this (sooner rather than later). Sorry for your trouble.

Comment 5 Sergio Basto 2016-06-24 03:34:40 UTC
Hi,

Seems author try fixed https://github.com/wting/autojump/issues/391
recently and we have a new release 

https://github.com/wting/autojump/releases/tag/release-v22.3.2


we may try that. 

Thanks.

Comment 6 Tomas Tomecek 2016-06-24 10:01:00 UTC
Will provide an update so we can try it out. Unfortunately I can't build the package atm due to this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1342531#c3

Will build on Monday once I'm on my other laptop.

Comment 7 Fedora Update System 2016-06-27 13:19:16 UTC
autojump-22.3.2-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-23e3f714d5

Comment 8 Fedora Update System 2016-06-27 13:19:45 UTC
autojump-22.3.2-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-17399f0441

Comment 9 Fedora Update System 2016-06-28 00:26:39 UTC
autojump-22.3.2-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-23e3f714d5

Comment 10 Fedora Update System 2016-06-28 04:24:42 UTC
autojump-22.3.2-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-17399f0441

Comment 11 Fedora Update System 2016-07-12 15:07:49 UTC
autojump-22.3.2-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2016-08-11 02:24:26 UTC
autojump-22.3.2-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.