Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: Just run glances. Version-Release number of selected component: glances-1.5.2-1.fc17 Additional info: cmdline: /usr/bin/python /usr/bin/glances executable: /usr/bin/glances kernel: 3.6.11-1.fc17.x86_64 uid: 1000 Truncated backtrace: glances.py:1816:displayMem:UnboundLocalError: local variable 'y' referenced before assignment Traceback (most recent call last): File "/usr/bin/glances", line 9, in <module> load_entry_point('Glances==1.5.2', 'console_scripts', 'glances')() File "/usr/lib/python2.7/site-packages/glances/glances.py", line 3155, in main screen.update(stats) File "/usr/lib/python2.7/site-packages/glances/glances.py", line 1494, in update self.flush(stats, cs_status=cs_status) File "/usr/lib/python2.7/site-packages/glances/glances.py", line 1482, in flush self.display(stats, cs_status=cs_status) File "/usr/lib/python2.7/site-packages/glances/glances.py", line 1452, in display self.displayMem(stats.getMem(), stats.getMemSwap(), processlist, load_offset) File "/usr/lib/python2.7/site-packages/glances/glances.py", line 1816, in displayMem self.term_window.addnstr(self.mem_y + y, UnboundLocalError: local variable 'y' referenced before assignment Local variables in innermost frame: screen_y: 53 memblocksize: 45 screen_x: 185 proclist: [] self: <glances.glances.glancesScreen instance at 0xe7e518> extblocksize: 15 alert: 'OK' memswap: {'total': 2147479552, 'percent': 0.0, 'free': 2147479552, 'used': 0} offset_x: 0 mem: {'used': 1215021056L, 'cached': 2218110976, 'percent': 14.7, 'free': 7037345792L, 'total': 8252366848L, 'buffers': 130129920L}
Created attachment 676869 [details] File: backtrace
Created attachment 676870 [details] File: core_backtrace
Created attachment 676871 [details] File: environ
Created attachment 676872 [details] File: smolt_data
I can confirm this bug, add to install a Fedora 17 to reproduce it. Works in Fedora 18 but I don't know why. Have been reported upstream => https://github.com/nicolargo/glances/issues/161 To fix that before I make a new package, add in /usr/lib/python2.7/site-packages/glances/glances.py this line: y = 0 after line 1739. You must then have: def displayMem(self, mem, memswap, proclist, offset_x=0): y = 0 # Memory (indentation is important in python)
glances-1.5.2-2.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/glances-1.5.2-2.fc16
glances-1.5.2-2.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/glances-1.5.2-2.fc17
Package glances-1.5.2-2.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing glances-1.5.2-2.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-0737/glances-1.5.2-2.fc16 then log in and leave karma (feedback).
glances-1.5.2-2.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.
glances-1.5.2-2.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.