Bug 699056

Summary: [abrt] gourmet-0.15.6-4.fc14: convert.py:891:float_to_metric:TypeError: int() argument must be a string or a number, not 'NoneType'
Product: [Fedora] Fedora Reporter: Bug Reporter <bugreporter1>
Component: gourmetAssignee: Jef Spaleta <jspaleta>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: jeff.raber, jspaleta
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:9c63552c
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-16 13:40:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace none

Description Bug Reporter 2011-04-22 20:58:08 UTC
abrt version: 1.1.17
architecture: x86_64
cmdline: /usr/bin/python /usr/bin/gourmet
component: gourmet
executable: /usr/bin/gourmet
kernel: 2.6.35.12-88.fc14.x86_64
package: gourmet-0.15.6-4.fc14
reason: convert.py:891:float_to_metric:TypeError: int() argument must be a string or a number, not 'NoneType'
release: Fedora release 14 (Laughlin)
time: 1303504676
uid: 500

backtrace
-----
convert.py:891:float_to_metric:TypeError: int() argument must be a string or a number, not 'NoneType'

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/gourmet/reccard.py", line 422, in shop_for_recipe_cb
    self.rg.sl.addRec(self.current_rec,self.mult,d)
  File "/usr/lib/python2.7/site-packages/gourmet/shopgui.py", line 898, in addRec
    self.reset()
  File "/usr/lib/python2.7/site-packages/gourmet/shopgui.py", line 901, in reset
    self.grabIngsFromRecs(self.recs.values(),self.extras)
  File "/usr/lib/python2.7/site-packages/gourmet/shopgui.py", line 542, in grabIngsFromRecs
    return self.organize_list(self.lst)
  File "/usr/lib/python2.7/site-packages/gourmet/shopgui.py", line 548, in organize_list
    data = self.sh.organize(self.sh.dic)
  File "/usr/lib/python2.7/site-packages/gourmet/shopping.py", line 169, in organize
    itms.append([i,self.amt_to_string(amts)])
  File "/usr/lib/python2.7/site-packages/gourmet/shopping.py", line 122, in amt_to_string
    retstr = self.cnv.amt_string(amts[0])
  File "/usr/lib/python2.7/site-packages/gourmet/convert.py", line 488, in amt_string
    nstring = float_to_frac(num,approx=approx)
  File "/usr/lib/python2.7/site-packages/gourmet/convert.py", line 860, in float_to_frac
    return float_to_metric(n,approx)
  File "/usr/lib/python2.7/site-packages/gourmet/convert.py", line 891, in float_to_metric
    if int(n) != n:
TypeError: int() argument must be a string or a number, not 'NoneType'

Local variables in innermost frame:
format_string: '%.2f'
n: None
approx: 0.01
decimals_to_preserve: 2

How to reproduce
-----
1. ?
2.
3.

Comment 1 Bug Reporter 2011-04-22 20:58:12 UTC
Created attachment 494309 [details]
File: backtrace

Comment 2 Jeff Raber 2011-05-10 20:00:51 UTC
I would be interested to know if you can reproduce this crash with the latest version of gourmet.  You can install the latest version by running running the following in a root shell:  'yum --enablerepo=updates-testing update gourmet'

You can provide feedback about the latest version here: https://admin.fedoraproject.org/updates/gourmet-0.15.9-1.fc14

Comment 3 Fedora End Of Life 2012-08-16 13:40:29 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping