Git Product home page Git Product logo

Comments (6)

dagwieers avatar dagwieers commented on May 28, 2024

It used to work fine. I'd prefer to fix it properly using subprocess though. Can't test with gpfs but will look into some other test setup. Thanks !

from dstat.

dagwieers avatar dagwieers commented on May 28, 2024

BTW I don't understand the problem with importing select, the "import select" statement is in the same code-block, so it should not be a problem.

from dstat.

do11 avatar do11 commented on May 28, 2024

import select is to make readpipe work, or else I get "Module dstat_gpfs failed to load. (global name 'select' is not defined)" message. (And it's happen when gpfs plugin try to call readpipe).

from dstat.

dagwieers avatar dagwieers commented on May 28, 2024

Well, as I was saying, the dpopen() imports select and makes it global. And that code used to work fine (just as the nfs plugins work fine and are used heavily using the same infrastructure) so we need to understand why it would fail in your case in this manner. It seems as if there was a change to how globalor import works. What version of python is this ? What is the OS ?

from dstat.

do11 avatar do11 commented on May 28, 2024

CentOS release 6.3 (Final)
Python 2.6.6

from dstat.

do11 avatar do11 commented on May 28, 2024

I just understood what you meant - it is already fixed in dpopen. Yes, it seems that Centos 6 still have older version where dpopen does not import/global select.

# rpm -q dstat
dstat-0.7.0-1.el6.noarch
# rpm -qi dstat
Name        : dstat                        Relocations: (not relocatable)
Version     : 0.7.0                             Vendor: CentOS
Release     : 1.el6                         Build Date: Fri Jul  1 23:31:40 2011
...
# rpm -q dstat-0.7.0-1.el6.noarch --changelog|head
* Thu Dec 03 2009 Jan Zeleny <[email protected]> - 0.7.0-1
- rebased to 0.7.0
...
# yum info dstat
Installed Packages
Name        : dstat
Arch        : noarch
Version     : 0.7.0
Release     : 1.el6
Size        : 660 k
Repo        : installed
From repo   : base
...

Thanks.

from dstat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.