You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the following code causes windows to kill the python kernel. The workaround from the issue above works but there seems to be an underlying problem (I think in _run_prog in agraph.py?)
import networkx as nx
for _ in range(512):
G = nx.DiGraph()
pos = nx.nx_agraph.graphviz_layout(G)
Workaround
# pywin32 package
import win32file as wfile
# Set to something above wfile._getmaxstdio(), according to your needs
wfile._setmaxstdio(513)
Windows 10
Python 3.11.5
networkx 3.1
pygraphviz 1.11
The text was updated successfully, but these errors were encountered:
I got the same Issue on Windows 11, with Python 3.9.13.
I guess the file handles are not getting closed, since there are always exactly 510 calls that finish sucessfully.
I think this may be related to #213?
Running the following code causes windows to kill the python kernel. The workaround from the issue above works but there seems to be an underlying problem (I think in _run_prog in agraph.py?)
Workaround
Windows 10
Python 3.11.5
networkx 3.1
pygraphviz 1.11
The text was updated successfully, but these errors were encountered: