Bug 1341938 - [abrt] krop: krop.py:63:main:TypeError: decode() argument 1 must be string, not None
Summary: [abrt] krop: krop.py:63:main:TypeError: decode() argument 1 must be string, n...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: krop
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Raphael Groner
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:04ad6c1705fc742d1d80e0b118c...
: 1184755 (view as bug list)
Depends On: 1341376
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-02 05:42 UTC by Thomas Drake-Brockman
Modified: 2016-06-18 18:46 UTC (History)
3 users (show)

Fixed In Version: krop-0.4.10-1.fc22 krop-0.4.10-1.fc23 krop-0.4.10-1.fc24
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-12 22:50:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.13 KB, text/plain)
2016-06-02 05:42 UTC, Thomas Drake-Brockman
no flags Details
File: environ (1.00 KB, text/plain)
2016-06-02 05:42 UTC, Thomas Drake-Brockman
no flags Details

Description Thomas Drake-Brockman 2016-06-02 05:42:39 UTC
Version-Release number of selected component:
krop-0.4.8-1.fc22

Additional info:
reporter:       libreport-2.6.4
cmdline:        /usr/bin/python2 /usr/bin/krop '/home/thomasfedb/Downloads/Lecture ppt - Aboriginal-Health-Session-One-05-02-2016.pdf'
executable:     /usr/bin/krop
kernel:         4.4.9-200.fc22.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
krop.py:63:main:TypeError: decode() argument 1 must be string, not None

Traceback (most recent call last):
  File "/usr/bin/krop", line 19, in <module>
    krop.krop.main()
  File "/usr/lib/python2.7/site-packages/krop/krop.py", line 63, in main
    fileName = args.file.decode(sys.stdin.encoding)
TypeError: decode() argument 1 must be string, not None

Local variables in innermost frame:
RawTextHelpFormatter: <class 'argparse.RawTextHelpFormatter'>
parser: ArgumentParser(prog='krop', usage=None, description='\nkrop: A tool to crop PDF files\n\nCopyright (C) 2010-2015 Armin Straub, http://arminstraub.com\n', version='0.4.8', formatter_class=<class 'argparse.RawTextHelpFormatter'>, conflict_handler='error', add_help=True)
app: <PyQt4.QtGui.QApplication object at 0x7eff7a0e1640>
args: Namespace(autotrim=False, file='/home/<snip>', initialpage=None, no_PyPDF2=False, no_kde=False, output=None, rotate=None, selections=None, whichpages=None)
QApplication: <class 'PyQt4.QtGui.QApplication'>
ArgumentParser: <class 'argparse.ArgumentParser'>
window: <krop.mainwindow.MainWindow object at 0x7eff6e3a2e90>
MainWindow: <class 'krop.mainwindow.MainWindow'>

Comment 1 Thomas Drake-Brockman 2016-06-02 05:42:44 UTC
Created attachment 1163907 [details]
File: backtrace

Comment 2 Thomas Drake-Brockman 2016-06-02 05:42:45 UTC
Created attachment 1163908 [details]
File: environ

Comment 3 Raphael Groner 2016-06-02 17:22:54 UTC
Thanks for your report. There is an issue with the configuration of the locale encoding in your system. Please share the output of the following command:

echo $LANG $LC_CTYPE

Comment 4 Raphael Groner 2016-06-02 17:25:55 UTC
Okay, it's LANG=en_AU.UTF-8 as seen in environ from comment #2.

Comment 5 Thomas Drake-Brockman 2016-06-02 17:34:45 UTC
That's correct, as per the terminal output:

~ # echo $LANG $LC_CTYPE
en_AU.UTF-8

That doesn't seem to far off, given that I'm in Australia.

Comment 6 Raphael Groner 2016-06-02 20:41:16 UTC
This bug is fixed in version 0.4.9, as currently in Fedora 23 and newer.
I'll build version 0.4.10 soon, also for Fedora 22.

Comment 7 Raphael Groner 2016-06-02 20:45:28 UTC
*** Bug 1184755 has been marked as a duplicate of this bug. ***

Comment 8 Fedora Update System 2016-06-03 10:55:12 UTC
krop-0.4.10-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-0b5f2e2658

Comment 9 Fedora Update System 2016-06-03 10:55:19 UTC
krop-0.4.10-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-c6e7aafe0f

Comment 10 Fedora Update System 2016-06-03 10:55:23 UTC
krop-0.4.10-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-9a2f56c2c4

Comment 11 Fedora Update System 2016-06-04 18:26:18 UTC
krop-0.4.10-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-9a2f56c2c4

Comment 12 Fedora Update System 2016-06-05 03:58:37 UTC
krop-0.4.10-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-0b5f2e2658

Comment 13 Fedora Update System 2016-06-05 07:53:31 UTC
krop-0.4.10-1.fc22 has been pushed to the Fedora 22 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-c6e7aafe0f

Comment 14 Fedora Update System 2016-06-12 22:50:17 UTC
krop-0.4.10-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2016-06-13 04:56:49 UTC
krop-0.4.10-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2016-06-18 18:46:06 UTC
krop-0.4.10-1.fc24 has been pushed to the Fedora 24 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.