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
Describe the bug
When a pandas dataframe is passed to Graph.Read_Ncol it crashes. Of course, a dataframe should not be passed to Graph.Read_Ncol, but this should not cause the Python session to crash, but should be correctly handled.
Can you please try it with the latest dev version? I cannot reproduce it with the dev version on my machine; nevertheless I have added a regression test for it so we can see it in the CI if this fails on some platform.
On my machine, I get an exception like this:
TypeError: argument must be an int, or have a fileno() method
Edit: don't bother, there are CI failures so it looks like it's a genuine problem, at least with older versions of Python. I'll investigate a bit more.
Strangely enough, I have apparently found a completely unrelated bug in igraphmodule_PyObject_to_edge_type_sw_t(), which seems to have fixed the problem on Python 3.7 on my machine. Let's see how the CI tests go now.
Describe the bug
When a
pandas
dataframe is passed toGraph.Read_Ncol
it crashes. Of course, a dataframe should not be passed toGraph.Read_Ncol
, but this should not cause the Python session to crash, but should be correctly handled.To reproduce
Version information
This is using version 0.9.6 installed from
conda
.The text was updated successfully, but these errors were encountered: