Bug 1228806 - [abrt] gourmet: reccard.py:2617:changeUnit:KeyError: 'ingkey'
Summary: [abrt] gourmet: reccard.py:2617:changeUnit:KeyError: 'ingkey'
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: gourmet
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Gordon
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:6d75d24745707f7d4a852d59399...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-05 19:52 UTC by Gergely Polonkai
Modified: 2016-07-19 14:39 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-19 14:39:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (567 bytes, text/plain)
2015-06-05 19:52 UTC, Gergely Polonkai
no flags Details
File: environ (1.75 KB, text/plain)
2015-06-05 19:52 UTC, Gergely Polonkai
no flags Details

Description Gergely Polonkai 2015-06-05 19:52:48 UTC
Description of problem:
On the new recipe panel I opened the drop-down list for the unit, then clicked to the amount field and clicked back on the unit dropdown. Cannot reproduce right afterwards, though.

Version-Release number of selected component:
gourmet-0.17.4-2.fc22

Additional info:
reporter:       libreport-2.5.1
cmdline:        /usr/bin/python /usr/bin/gourmet
executable:     /usr/bin/gourmet
kernel:         4.0.4-303.fc22.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
reccard.py:2617:changeUnit:KeyError: 'ingkey'

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/gourmet/reccard.py", line 2396, in ingtree_edited_cb
    amt,msg=self.changeUnit(text,self.ingController.get_rowdict(iter))
  File "/usr/lib/python2.7/site-packages/gourmet/reccard.py", line 2617, in changeUnit
    key=ingdict['ingkey']
KeyError: 'ingkey'

Local variables in innermost frame:
self: <gourmet.reccard.IngredientTreeUI instance at 0x7f9f8f141758>
new_unit: ''
ingdict: {'item': '', 'amount': '1', 'optional': False, 'unit': None}

Comment 1 Gergely Polonkai 2015-06-05 19:52:51 UTC
Created attachment 1035402 [details]
File: backtrace

Comment 2 Gergely Polonkai 2015-06-05 19:52:52 UTC
Created attachment 1035403 [details]
File: environ

Comment 3 Fedora Admin XMLRPC Client 2015-09-09 19:29:09 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Fedora Admin XMLRPC Client 2015-09-10 00:02:52 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Peter Gordon 2016-01-17 03:48:17 UTC
Thanks for your bug report; and sorry for the delay in responding. 

I've been able to reproduce this from a completely blank ingredient sheet, but as soon as I add any ingredient, the same sequence of actions (opening the unit drop-down, then clicking to the empty amount, then clicking back to the unit drop-down) does not further produce an error. At a glance, this leads me to believe that it's a matter of ingkey not being initialised in the right spot...I'll look into this.

Comment 6 Peter Gordon 2016-01-17 04:49:58 UTC
Reported upstream at https://github.com/thinkle/gourmet/issues/837

Comment 7 Fedora Update System 2016-01-17 21:38:37 UTC
gourmet-0.17.4-6.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-8e4c0079c0

Comment 8 Fedora Update System 2016-01-17 21:54:43 UTC
gourmet-0.17.4-4.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-474f7e36fc

Comment 9 Fedora Update System 2016-01-20 03:54:27 UTC
gourmet-0.17.4-4.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-474f7e36fc

Comment 10 Fedora Update System 2016-01-20 03:55:35 UTC
gourmet-0.17.4-6.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-8e4c0079c0

Comment 11 Fedora End Of Life 2016-07-19 14:39:35 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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