Comments (6)
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.
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.
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.
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 global
or import
works. What version of python is this ? What is the OS ?
from dstat.
CentOS release 6.3 (Final)
Python 2.6.6
from dstat.
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)
- Incorrect unit in top-mem csv
- Horizontal layout, maybe with bar plots
- Plugin path computed incorrectly when dstat is symlinked
- CSV output to stdout
- output statics in mgb or mgB ?
- [wishlist] ability to change the "blue" color in the header (blue is too dark, can't read) HOT 2
- Add way to supress missed tick output
- Feature request : Total Bytes cumulated on delay X HOT 3
- Infiniband Problem
- Incorrect numbers with raid configuration
- Comma added to end of csv output file when 'Terminal width too small, trimming output' warning seen. HOT 1
- Feature request : extended memory statistics : Huge Pages and Commited pages
- I would like to participate in dstat development and responding to issues. HOT 25
- what's the unit of io?
- MariaDB modules HOT 3
- Fix for freespace plugin errors never merged
- Release a version of dstat with Python 3 support
- Master branch throws an error when you try and use a delay
- linux 2.6, dstat --mem not working HOT 1
- So long and thanks for all the fish.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dstat.