Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does anyone run this on windows 7? #6

Closed
retsyo opened this issue Oct 27, 2016 · 4 comments
Closed

does anyone run this on windows 7? #6

retsyo opened this issue Oct 27, 2016 · 4 comments

Comments

@retsyo
Copy link

retsyo commented Oct 27, 2016

I have gnuplot(which is on my PATH environment places), but

E:\greensoft\math\gnuplot\bin>set path=E:\greensoft\math\gnuplot\bin;%path%

E:\greensoft\math\gnuplot\bin>gnuplot --version
gnuplot 5.1 patchlevel 0

E:\greensoft\math\gnuplot\bin>py27

E:\greensoft\math\gnuplot\bin>e:\prg\py\Anaconda2_32\python.exe
Python 2.7.12 |Anaconda 2.2.0 (32-bit)| (default, Jun 29 2016, 11:42:13) [MSC v.
1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import numpy      as np
>>> import gnuplotlib as gp
>>>
>>> x = np.arange(101) - 50
>>> gp.plot(x**2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "e:\prg\py\pure_pylib\_chart\_gnuplotlib\gnuplotlib.py", line 1678, in pl
ot
    globalplot = gnuplotlib(**plotOptions)
  File "e:\prg\py\pure_pylib\_chart\_gnuplotlib\gnuplotlib.py", line 792, in __i
nit__
    self._startgnuplot()
  File "e:\prg\py\pure_pylib\_chart\_gnuplotlib\gnuplotlib.py", line 812, in _st
artgnuplot
    self._safelyWriteToPipe("set terminal push", 'terminal')
  File "e:\prg\py\pure_pylib\_chart\_gnuplotlib\gnuplotlib.py", line 1029, in _s
afelyWriteToPipe
    errorMessage, warnings = self._checkpoint('printwarnings')
  File "e:\prg\py\pure_pylib\_chart\_gnuplotlib\gnuplotlib.py", line 1108, in _c
heckpoint
    rlist,wlist,xlist = select.select([self.gnuplotProcess.stderr],[], [], 5)
select.error: (10038, '')
@dkogan
Copy link
Owner

dkogan commented Oct 28, 2016 via email

@retsyo
Copy link
Author

retsyo commented Oct 29, 2016

well, I found which caused this problem on windows

>>> print select.select.__doc__
select(rlist, wlist, xlist[, timeout]) -> (rlist, wlist, xlist)

*** IMPORTANT NOTICE ***
On Windows and OpenVMS, only sockets are supported; on Unix, all file
descriptors can be used.

@dkogan
Copy link
Owner

dkogan commented Oct 31, 2016

retsyo notifications@github.com writes:

well, I found which caused this problem on windows

print select.select.doc
select(rlist, wlist, xlist[, timeout]) -> (rlist, wlist, xlist)

*** IMPORTANT NOTICE ***
On Windows and OpenVMS, only sockets are supported; on Unix, all file
descriptors can be used.

Thanks for tracking down. I'm using a select() to get a blocking read()
that times out after some amount of time has elapsed without any data
being read. Do you know how to get this in Windows?

@dkogan
Copy link
Owner

dkogan commented Nov 29, 2019

Windows support will only happen if somebody-not-me implements it. This report has gone untouched for 3 years, so this reporter also isn't the person who's going to implement it, and I'm closing this issue. There's a work in progress here: #15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants