statgrab.sg_get_fs_stats() returns NULL

Bug #886783 reported by phil74
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libstatgrab (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

this function does not work as shown below:

>>> import statgrab
>>> stats=statgrab.sg_get_fs_stats()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.7/statgrab.py", line 62, in sg_get_fs_stats
    return _statgrab.py_sg_get_fs_stats()
  File "_statgrab.pyx", line 459, in _statgrab.py_sg_get_fs_stats
_statgrab.StatgrabException: 'sg_get_fs_stats() returned NULL'
>>>

All other statgrab functions work just fine.

machine details:
>>> statgrab.sg_get_host_info()
{'uptime': 5068, 'os_name': 'Linux', 'platform': 'x86_64', 'hostname': 'alienw', 'os_version': '#20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011', 'os_release': '3.0.0-12-generic'}
>>>

Thank you!
Phil

Revision history for this message
Nicolargo (nicolashennion) wrote :

Same pb on my Linux Mint (Lisa):

$ python
Python 2.7.2+ (default, Oct 4 2011, 20:03:08)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import statgrab
>>> stats=statgrab.sg_get_fs_stats()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.7/statgrab.py", line 62, in sg_get_fs_stats
    return _statgrab.py_sg_get_fs_stats()
  File "_statgrab.pyx", line 459, in _statgrab.py_sg_get_fs_stats
_statgrab.StatgrabException: 'sg_get_fs_stats() returned NULL'
>>> statgrab.sg_get_host_info()
{'uptime': 117252, 'os_name': 'Linux', 'platform': 'i686', 'hostname': 'nicolargo-boulot', 'os_version': '#20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011', 'os_release': '3.0.0-12-generic'}
>>>

Revision history for this message
Patrick Nowak (thepadde86) wrote :

I posted a question on the libstatgrab mailing list regarding this. I didn't get any file systems either by this function. Turns out, that older versions of libstatgrab have no support for ext4.

Is it possible to fix this or replace this with a newer version? Seems like an essential part of the library to me.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Please reply if this is still an issue on a supported release.

Changed in libstatgrab (Ubuntu):
status: New → Invalid
status: Invalid → Incomplete
Revision history for this message
phil74 (pchap74) wrote :

problem still here...

python-statgrab version installed : 0.5-4
distribution : xubuntu 13.10

>>> import statgrab
>>> stats=statgrab.sg_get_fs_stats()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.7/statgrab.py", line 62, in sg_get_fs_stats
    return _statgrab.py_sg_get_fs_stats()
  File "_statgrab.pyx", line 459, in _statgrab.py_sg_get_fs_stats
_statgrab.StatgrabException: 'sg_get_fs_stats() returned NULL'

>>> statgrab.sg_get_host_info()
{'uptime': 86802, 'os_name': 'Linux', 'platform': 'x86_64', 'hostname': 'alien', 'os_version': '#31-Ubuntu SMP Mon Feb 3 21:52:43 UTC 2014', 'os_release': '3.11.0-17-generic'}
>>>

thanks, Phil

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for libstatgrab (Ubuntu) because there has been no activity for 60 days.]

Changed in libstatgrab (Ubuntu):
status: Incomplete → Expired
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.