← Back to team overview

indiv-screenlets-dev team mailing list archive

[Bug 827082] [NEW] [Various Screenlets] Crash on TypeError: integer argument expected, got float

 

Public bug reported:

This is the bug that occurs starting from Python 2.7, because you cannot
pass the float to function accepting integers anymore. In Python 2.6
floats were automatically converted to integers in these kinds of
situation, now TypeError is thrown.

In Ubuntu this starts from Natty Narwhal (11.04), because it is the
first one to ship with Python 2.7.

If you have this problem, you don't have to report a separate bug. Just
report screenlet name here and the situation where the bug occurred (and
what were you doing with the screenlet). If you can provide a patch,
this would be even better.

See also https://bugs.launchpad.net/indiv-screenlets/+bug/701199

** Affects: indiv-screenlets
     Importance: Medium
         Status: In Progress

** Description changed:

  This is the bug that occurs starting from Python 2.7, because you cannot
  pass the float to function accepting integers anymore. In Python 2.6
  floats were automatically converted to integers in these kinds of
  situation, now TypeError is thrown.
  
  In Ubuntu this starts from Natty Narwhal (11.04), because it is the
- first on to ship with Python 2.7.
+ first one to ship with Python 2.7.
  
  If you have this problem, you don't have to report a separate bug. Just
  report screenlet name here and the situation where the bug occurred (and
  what were you doing with the screenlet). If you can provide a patch,
  this would be even better.
  
  See also https://bugs.launchpad.net/indiv-screenlets/+bug/701199

-- 
You received this bug notification because you are a member of
Individual Screenlets Developers, which is subscribed to Individual
Screenlets.
https://bugs.launchpad.net/bugs/827082

Title:
  [Various Screenlets] Crash on TypeError: integer argument expected,
  got float

Status in Screenlets — individual widgets development:
  In Progress

Bug description:
  This is the bug that occurs starting from Python 2.7, because you
  cannot pass the float to function accepting integers anymore. In
  Python 2.6 floats were automatically converted to integers in these
  kinds of situation, now TypeError is thrown.

  In Ubuntu this starts from Natty Narwhal (11.04), because it is the
  first one to ship with Python 2.7.

  If you have this problem, you don't have to report a separate bug.
  Just report screenlet name here and the situation where the bug
  occurred (and what were you doing with the screenlet). If you can
  provide a patch, this would be even better.

  See also https://bugs.launchpad.net/indiv-screenlets/+bug/701199

To manage notifications about this bug go to:
https://bugs.launchpad.net/indiv-screenlets/+bug/827082/+subscriptions


Follow ups

References