<html>
  <head>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
     Hi list,<br>
    I'm happy to join to this nice mail list. At my company we use
    python to handle system administration tasks.<br>
    I found the next problem during my work:<br>
    <br>
    test.py:<br>
    <tt># cat test.py <br>
      #!/usr/bin/python<br>
      <br>
      import os<br>
      os.statvfs('/')<br>
    </tt><br>
    result:<br>
    <tt># python -m trace -t test.py <br>
       --- modulename: threading, funcname: settrace<br>
      threading.py(90):     _trace_hook = func<br>
       --- modulename: trace, funcname: <module><br>
      <string>(1):   --- modulename: trace, funcname:
      <module><br>
      test.py(3): import os<br>
      test.py(6): os.statvfs('/')<br>
      Traceback (most recent call last):<br>
        File "/usr/lib64/python2.6/runpy.py", line 122, in
      _run_module_as_main<br>
          "__main__", fname, loader, pkg_name)<br>
        File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code<br>
          exec code in run_globals<br>
        File "/mnt/sysimg/usr/lib64/python2.6/trace.py", line 813, in
      <module><br>
          main()<br>
        File "/mnt/sysimg/usr/lib64/python2.6/trace.py", line 801, in
      main<br>
          t.run('execfile(%r)' % (progname,))<br>
        File "/mnt/sysimg/usr/lib64/python2.6/trace.py", line 498, in
      run<br>
          exec cmd in dict, dict<br>
        File "<string>", line 1, in <module><br>
        File "test.py", line 6, in <module><br>
          os.statvfs('/')<br>
      <b>OSError: [Errno 0] Error: '/'</b><br>
    </tt><br>
    # python --version<br>
    Python 2.6.2<br>
    <br>
    # arch<br>
    mips64<br>
    <br>
    os.stat works fine.<br>
    <br>
    I would be very happy with any kind of help. I don't have any idea
    why this one fails. <br>
    Thanks in advance.<br>
    Br,<br>
        Peter.<br>
    <br>
  </body>
</html>