os.statvfs on FreeBSD

Charles Allen charles at aspen.sweetshade.net
Sat Jun 16 14:45:57 EDT 2001

>> For some reason the default installation of python-1.5 and Python-2.0
>> on FreeBSD(From the ports collection) does not include the
>> os.statvfs() routine. Does anyone know A. Why? and B. How to fix it? I

> access to a FreeBSD system. E.g. post some code snippet, and show what
> error it produces.

aspen$ python
Python 2.1 (#1, May  7 2001, 21:01:18) 
[GCC 2.95.3 [FreeBSD] 20010315 (release)] on freebsd4
Type "copyright", "credits" or "license" for more information.
>>> import os
>>> os.statvfs("/")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'os' module has no attribute 'statvfs'

Charles Allen

More information about the Python-list mailing list