statgrab.sg_get_fs_stats() returns NULL
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.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
return _statgrab.
File "_statgrab.pyx", line 459, in _statgrab.
_statgrab.
>>>
All other statgrab functions work just fine.
machine details:
>>> statgrab.
{'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
Same pb on my Linux Mint (Lisa):
$ python sg_get_ fs_stats( ) pymodules/ python2. 7/statgrab. py", line 62, in sg_get_fs_stats py_sg_get_ fs_stats( ) py_sg_get_ fs_stats StatgrabExcepti on: 'sg_get_fs_stats() returned NULL' sg_get_ host_info( )
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.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
return _statgrab.
File "_statgrab.pyx", line 459, in _statgrab.
_statgrab.
>>> statgrab.
{'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'}
>>>