Bug 922302 - [abrt] glances-1.5.2-1.fc18: glances.py:522:__get_process_stats__:AttributeError: 'module' object has no attribute 'AccesDenied'
Summary: [abrt] glances-1.5.2-1.fc18: glances.py:522:__get_process_stats__:AttributeEr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: glances
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Edouard Bourguignon
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:998c3837e523adc6224532417cc...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-16 05:21 UTC by Michel Lind
Modified: 2013-05-25 12:10 UTC (History)
1 user (show)

Fixed In Version: glances-1.6-1.fc17
Clone Of:
Environment:
Last Closed: 2013-05-25 11:58:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.17 KB, text/plain)
2013-03-16 05:22 UTC, Michel Lind
no flags Details
File: core_backtrace (630 bytes, text/plain)
2013-03-16 05:22 UTC, Michel Lind
no flags Details
File: environ (3.83 KB, text/plain)
2013-03-16 05:22 UTC, Michel Lind
no flags Details

Description Michel Lind 2013-03-16 05:21:58 UTC
Description of problem:
I started glances, and it crashes after running for a while.

There's a typo in the glances source -- psutil.AccesDenied should be psutil.AccessDenied (one s is missing)

Version-Release number of selected component:
glances-1.5.2-1.fc18

Additional info:
cmdline:        /usr/bin/python /usr/bin/glances
executable:     /usr/bin/glances
kernel:         3.6.10-4.fc18.x86_64
uid:            1000

Truncated backtrace:
glances.py:522:__get_process_stats__:AttributeError: 'module' object has no attribute 'AccesDenied'

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 3152, in main
    stats.update()
  File "/usr/lib/python2.7/site-packages/glances/glances.py", line 910, in update
    self.__update__(input_stats)
  File "/usr/lib/python2.7/site-packages/glances/glances.py", line 890, in __update__
    self.glancesgrabprocesses.update()
  File "/usr/lib/python2.7/site-packages/glances/glances.py", line 564, in update
    procstat = self.__get_process_stats__(proc)
  File "/usr/lib/python2.7/site-packages/glances/glances.py", line 522, in __get_process_stats__
    except psutil.AccesDenied:
AttributeError: 'module' object has no attribute 'AccesDenied'

Local variables in innermost frame:
self: <glances.glances.GlancesGrabProcesses instance at 0xfeccb0>
proc: <psutil.Process(pid=5088, name='ld-linux-x86-64') at 17418576>
procstat: {'cmdline': '', 'memory_info': meminfo(rss=0, vms=0), 'name': 'ld-linux-x86-64', 'memory_percent': 0.0}

Comment 1 Michel Lind 2013-03-16 05:22:03 UTC
Created attachment 710960 [details]
File: backtrace

Comment 2 Michel Lind 2013-03-16 05:22:06 UTC
Created attachment 710961 [details]
File: core_backtrace

Comment 3 Michel Lind 2013-03-16 05:22:08 UTC
Created attachment 710962 [details]
File: environ

Comment 4 Michel Lind 2013-03-16 05:27:47 UTC
Fixed upstream, back in December, and version 1.6 has been released since. May I register glances with our Upstream Release Monitoring service, so the maintainers get release notification?

commit 8a643f10e12b37c489efc395462904a6b6a23f4a
Author: Filip Noetzel <filip>
Date:   Sun Dec 30 21:05:52 2012 +0100

    Fix typo: s/AccesDenied/AccessDenied/
    
    Helps with "AttributeError: 'module' object has no attribute 'AccesDen

Comment 5 Fedora Update System 2013-03-17 14:42:33 UTC
glances-1.6-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/glances-1.6-1.fc17

Comment 6 Fedora Update System 2013-03-17 14:42:44 UTC
glances-1.6-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/glances-1.6-1.fc18

Comment 7 Fedora Update System 2013-03-18 02:26:18 UTC
Package glances-1.6-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing glances-1.6-1.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-3977/glances-1.6-1.fc17
then log in and leave karma (feedback).

Comment 8 Michel Lind 2013-03-18 05:19:35 UTC
Thanks! Installing for testing, will leave karma later.

I sent an email a few days ago about branching glances for EL5 -- any objection there? If not, I'll request the branch.

Comment 9 Michel Lind 2013-04-18 08:19:47 UTC
Ping. This package has been sitting in updates-testing for a month, please push.

Comment 10 Fedora Update System 2013-05-25 11:58:30 UTC
glances-1.6-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2013-05-25 12:10:03 UTC
glances-1.6-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


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