Bug 927016 - [abrt] dnf-0.2.22-1.git97180b8.fc18: i18n.py:78:input:EOFError
Summary: [abrt] dnf-0.2.22-1.git97180b8.fc18: i18n.py:78:input:EOFError
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ales Kozumplik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:370cb7f4e537f891e906487b237...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-24 20:26 UTC by TPol
Modified: 2014-09-30 23:41 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-03-25 09:38:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (863 bytes, text/plain)
2013-03-24 20:26 UTC, TPol
no flags Details
File: core_backtrace (597 bytes, text/plain)
2013-03-24 20:26 UTC, TPol
no flags Details
File: environ (2.24 KB, text/plain)
2013-03-24 20:26 UTC, TPol
no flags Details

Description TPol 2013-03-24 20:26:48 UTC
Version-Release number of selected component:
dnf-0.2.22-1.git97180b8.fc18

Additional info:
cmdline:        /usr/bin/python /bin/dnf install lm_sensors
executable:     /bin/dnf
kernel:         3.8.3-203.fc18.x86_64
uid:            0

Truncated backtrace:
i18n.py:78:input:EOFError

Traceback (most recent call last):
  File "/bin/dnf", line 35, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 306, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 215, in main
    return_code = base.doTransaction()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 192, in doTransaction
    if self.conf.assumeno or not self.userconfirm():
  File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 971, in userconfirm
    choice = dnf.i18n.input(msg)
  File "/usr/lib/python2.7/site-packages/dnf/i18n.py", line 78, in input
    return raw_input(s)
EOFError

Local variables in innermost frame:
s: 'Ist dies in Ordnung? [j/N] :'
enc: 'UTF-8'
ucstring: u'Ist dies in Ordnung? [j/N] :'

Comment 1 TPol 2013-03-24 20:26:51 UTC
Created attachment 715683 [details]
File: backtrace

Comment 2 TPol 2013-03-24 20:26:53 UTC
Created attachment 715684 [details]
File: core_backtrace

Comment 3 TPol 2013-03-24 20:26:55 UTC
Created attachment 715685 [details]
File: environ

Comment 4 Ales Kozumplik 2013-03-25 08:30:10 UTC
Hello,

can you please describe how you run DNF in this case? For instance, was stdin a unix pipe, or was it run via cron, etc?

I suspect this could dup with bug 922521.

Comment 5 Ales Kozumplik 2013-03-25 09:38:48 UTC
Anyway, I'll close this as a dup. If you experience the same bug after dnf-0.3.1 please reopen.

*** This bug has been marked as a duplicate of bug 922521 ***

Comment 6 TPol 2013-03-25 15:25:00 UTC
I figured out that my keyboard is damaged... I had started DNF in KDE Desktop Konsole (Konsole Version 2.10.1 Unter KDE 4.10.1) with root permissions.

Here what happens when I use the 'j' and push enter:

nstallieren  2 Packages

Gesamte Downloadgröße: 1.5 M
Installationsgröße: 1.5 M
Ist dies in Ordnung? [j/N] :j
Traceback (most recent call last):
  File "/bin/dnf", line 35, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 306, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 215, in main
    return_code = base.doTransaction()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 192, in doTransaction
    if self.conf.assumeno or not self.userconfirm():
  File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 971, in userconfirm
    choice = dnf.i18n.input(msg)
  File "/usr/lib/python2.7/site-packages/dnf/i18n.py", line 78, in input
    return raw_input(s)
EOFError

That dup can be finally closed. Sorry for generating extra work...

Comment 7 Ales Kozumplik 2013-03-25 16:44:55 UTC
No problem. In any case, EOFError is handled now as an empty answer in userconfirm() so nobody should see this tracaback again, not even with a broken keyboard.


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