OSError: [WinError 10038] in Win 10 (running the intro example)
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 274
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the intro example on Windows 10 with Python 3.11, then inspect gnuplotlib.py around _startgnuplot() and _checkpoint(), especially the select.select() call at the reported traceback. Done means the example runs without WinError 10038 and produces its plot.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, python
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100