[Netmonitor] ValueError: invalid literal for int() with base 10: ''

Bug #703378 reported by Papp Bence
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Individual Screenlets
In Progress
High
Papp Bence

Bug Description

benny@benny-laptop:~/screenlets/indiv-screenlets/src/Netmonitor$ python NetmonitorScreenlet.py
lo
eth0
wlan0
0
CachingBackend: Loading instances from cache
CachingBackend: Loading <Netmonitor1>
mini='False'
x='117'
theme_name='ModernBlack'
is_sticky='True'
keep_below='True'
is_widget='False'
draw_buttons='True'
keep_above='False'
lock_position='False'
is_dragged='False'
showDevice='True'
y='83'
day_true='True'
skip_taskbar='True'
dev='wlan0'
Creating new entry for NetmonitorScreenlet in /tmp/screenlets/screenlets.benny.running
Loading instances in: /home/benny/.config/Screenlets/Netmonitor/default/
Loaded config from: Netmonitor1.ini
Theme set to: 'ModernBlack'
theme.conf found! Loading option-overrides.
Loaded theme config from: /usr/share/screenlets/screenlets-pack-all/Netmonitor/themes/ModernBlack/theme.conf
 Name: ModernBlack
 Author: Jovicic Nemanja
 Version: 1.0
 Info: ModernBlack theme
Override: text_color
WARNING: Option 'text_color' not found or protected.
WARNING - add_default_menuitems and add_menuitems should be set in on_init ,menu values will be displayed incorrectly
WARNING - add_default_menuitems and add_menuitems should be set in on_init ,menu values will be displayed incorrectly
WARNING - add_default_menuitems and add_menuitems should be set in on_init ,menu values will be displayed incorrectly
WARNING - add_default_menuitems and add_menuitems should be set in on_init ,menu values will be displayed incorrectly
WARNING - add_default_menuitems and add_menuitems should be set in on_init ,menu values will be displayed incorrectly
Set options in NetmonitorScreenlet
Theme set to: 'ModernBlack'
theme.conf found! Loading option-overrides.
Loaded theme config from: /usr/share/screenlets/screenlets-pack-all/Netmonitor/themes/ModernBlack/theme.conf
 Name: ModernBlack
 Author: Jovicic Nemanja
 Version: 1.0
 Info: ModernBlack theme
Override: text_color
Restored instances from session 'default' ...
NetmonitorScreenlet.py:344: DeprecationWarning: use copy pango.FontDescription.set_family instead
  p_fdesc.set_family_static("Free Sans")
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/screenlets/__init__.py", line 1934, in expose
    self.on_draw(ctx)
  File "NetmonitorScreenlet.py", line 350, in on_draw
    self.get_load()
  File "NetmonitorScreenlet.py", line 163, in get_load
    if int(self.day) < 1 or int(self.day) > 31:
ValueError: invalid literal for int() with base 10: ''
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/screenlets/__init__.py", line 1934, in expose
    self.on_draw(ctx)
  File "NetmonitorScreenlet.py", line 350, in on_draw
    self.get_load()
  File "NetmonitorScreenlet.py", line 228, in get_load
    if int(self.day) != datetime.datetime.now().day and self.day_true == True:
ValueError: invalid literal for int() with base 10: ''
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/screenlets/__init__.py", line 1934, in expose
    self.on_draw(ctx)
  File "NetmonitorScreenlet.py", line 350, in on_draw
    self.get_load()
  File "NetmonitorScreenlet.py", line 228, in get_load
    if int(self.day) != datetime.datetime.now().day and self.day_true == True:
ValueError: invalid literal for int() with base 10: ''
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/screenlets/__init__.py", line 1934, in expose
    self.on_draw(ctx)
  File "NetmonitorScreenlet.py", line 350, in on_draw
    self.get_load()
  File "NetmonitorScreenlet.py", line 228, in get_load
    if int(self.day) != datetime.datetime.now().day and self.day_true == True:
ValueError: invalid literal for int() with base 10: ''
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/screenlets/__init__.py", line 1934, in expose
    self.on_draw(ctx)
  File "NetmonitorScreenlet.py", line 350, in on_draw
    self.get_load()
  File "NetmonitorScreenlet.py", line 228, in get_load
    if int(self.day) != datetime.datetime.now().day and self.day_true == True:
ValueError: invalid literal for int() with base 10: ''
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/screenlets/__init__.py", line 1934, in expose
    self.on_draw(ctx)
  File "NetmonitorScreenlet.py", line 350, in on_draw
    self.get_load()
  File "NetmonitorScreenlet.py", line 228, in get_load
    if int(self.day) != datetime.datetime.now().day and self.day_true == True:
ValueError: invalid literal for int() with base 10: ''
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/screenlets/__init__.py", line 1934, in expose
    self.on_draw(ctx)
  File "NetmonitorScreenlet.py", line 350, in on_draw
    self.get_load()
  File "NetmonitorScreenlet.py", line 228, in get_load
    if int(self.day) != datetime.datetime.now().day and self.day_true == True:
ValueError: invalid literal for int() with base 10: ''
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/screenlets/__init__.py", line 1934, in expose
    self.on_draw(ctx)
  File "NetmonitorScreenlet.py", line 350, in on_draw
    self.get_load()
  File "NetmonitorScreenlet.py", line 228, in get_load
    if int(self.day) != datetime.datetime.now().day and self.day_true == True:
ValueError: invalid literal for int() with base 10: ''
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/screenlets/__init__.py", line 1934, in expose
    self.on_draw(ctx)
  File "NetmonitorScreenlet.py", line 350, in on_draw
    self.get_load()
  File "NetmonitorScreenlet.py", line 228, in get_load
    if int(self.day) != datetime.datetime.now().day and self.day_true == True:
ValueError: invalid literal for int() with base 10: ''

Papp Bence (sclegnrbs)
Changed in indiv-screenlets:
assignee: nobody → Papp Bence (sclegnrbs)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.