-
Notifications
You must be signed in to change notification settings - Fork 116
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
docs: executing jupyter notebooks with py3.10 fails #1612
Comments
* bump GitHub Action CIs to Python 3.10 * stick to Python 3.8 for docs ci (c.f. docs: executing jupyter notebooks with py3.10 fails #1612 ) * Windows: fix pyver parsing (fixes Windows Python3.10 fails to parse version from pylib #1613 ) Co-authored-by: Olli Lupton <[email protected]>
* bump GitHub Action CIs to Python 3.10 * stick to Python 3.8 for docs ci (c.f. docs: executing jupyter notebooks with py3.10 fails #1612 ) * Windows: fix pyver parsing (fixes Windows Python3.10 fails to parse version from pylib #1613 ) Co-authored-by: Olli Lupton <[email protected]>
* bump GitHub Action CIs to Python 3.10 * stick to Python 3.8 for docs ci (c.f. docs: executing jupyter notebooks with py3.10 fails #1612 ) * Windows: fix pyver parsing (fixes Windows Python3.10 fails to parse version from pylib #1613 ) Co-authored-by: Olli Lupton <[email protected]>
I am not 100% sure if this is the same or a different issue, but I had problems reliably running these notebooks both on my MacBook (Python 3.9 and 3.10) and BB5 (Python 3.9). The smallest reproducer I found was python -c 'from neuron import h; import matplotlib.pyplot as plt; h.PlotShape(False).plot(plt)' which segfaults with a stack trace like
on my MacBook and
on BB5. The same reproducer does not crash on my laptop using Python 3.8. |
Stands to reason it could very well be the case. I remember it being hard to get errors out of notebooks execution. |
I distilled this down to #include "Python.h"
extern "C" PyObject* my_func() {
return Py_BuildValue("(O)", Py_None);
} from the line in NEURON that triggers the crash. If I call this:
then it crashes with Python 3.9 but not 3.8
|
..and the same example fails with Python 3.10 on my MacBook. |
|
Opening this for reference. For the purpose of building docs we don't need a higher python version than current one (3.8).
The text was updated successfully, but these errors were encountered: