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

OSError: [WinError 10038] in Win 10 (running the intro example) #28

Open
patzf opened this issue Jul 31, 2023 · 1 comment
Open

OSError: [WinError 10038] in Win 10 (running the intro example) #28

patzf opened this issue Jul 31, 2023 · 1 comment

Comments

@patzf
Copy link

patzf commented Jul 31, 2023

On Win10 and Python 3.11 I run the following lines

import gnuplotlib as gp
import numpy as np
x = np.arange(101) - 50
gp.plot(x**2)

and get the following error

  File "C:\tools\py311\Lib\site-packages\gnuplotlib.py", line 2677, in plot
    globalplot = gnuplotlib(**jointOptions)
  File "C:\tools\py311\Lib\site-packages\gnuplotlib.py", line 1480, in __init__
    self._startgnuplot()
  File "C:\tools\py311\Lib\site-packages\gnuplotlib.py", line 1540, in _startgnuplot
    errorMessage, warnings = self._checkpoint('printwarnings')
  File "C:\tools\py311\Lib\site-packages\gnuplotlib.py", line 1705, in _checkpoint
    rlist,wlist,xlist = select.select([self.gnuplotProcess.stderr],[], [],
OSError: [WinError 10038] An operation was attempted on something that is not a socket
@dkogan
Copy link
Owner

dkogan commented Jul 31, 2023

Hello. This currently doesn't work on windows. There are several reports about that in the bug tracker, and an incomplete attempt to fix it here: #15

All I need is a blocking read() with a timeout. Should be easily done on windows. Would you be interested in fixing it?

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