gnuplotlib icon indicating copy to clipboard operation
gnuplotlib copied to clipboard

OSError: [WinError 10093] Either the application has not called WSAStartup, or WSAStartup failed

Open ReinaFeng opened this issue 5 years ago • 1 comments

Hi,

when I run on windows. It shows:

gp.plot( np.linspace(-5,5,30)**2,unset='grid', terminal='dumb 80 40' ) Traceback (most recent call last): File "", line 1, in File "C:\Users\rounan_feng\AppData\Local\Programs\Python\Python38\lib\site-packages\gnuplotlib.py", line 2648, in plot globalplot = gnuplotlib(**jointOptions) File "C:\Users\rounan_feng\AppData\Local\Programs\Python\Python38\lib\site-packages\gnuplotlib.py", line 1480, in init self._startgnuplot() File "C:\Users\rounan_feng\AppData\Local\Programs\Python\Python38\lib\site-packages\gnuplotlib.py", line 1534, in _startgnuplot errorMessage, warnings = self._checkpoint('printwarnings') File "C:\Users\rounan_feng\AppData\Local\Programs\Python\Python38\lib\site-packages\gnuplotlib.py", line 1694, in _checkpoint rlist,wlist,xlist = select.select([self.gnuplotProcess.stderr],[], [], OSError: [WinError 10093] Either the application has not called WSAStartup, or WSAStartup failed

Is that possible to solve?

ReinaFeng avatar Feb 21 '20 18:02 ReinaFeng

Hi. I don't use windows, so I can't help you. I'm sure making it work there is possible, but somebody else would have to actually implement it, and to do the work. Something's wrong with select(), but I don't know what.

Other reports that you may find helpful:

https://github.com/dkogan/gnuplotlib/pull/15

https://github.com/dkogan/gnuplotlib/issues/6

Patches welcome

dkogan avatar Feb 21 '20 21:02 dkogan

Closing old report. If somebody wants to work on it, please get in touch with me.

dkogan avatar Sep 27 '22 20:09 dkogan