windows 11 fix for nrniv -python#2255
Conversation
hoc_module depends on rxdmath
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2255 +/- ##
==========================================
- Coverage 67.20% 67.20% -0.01%
==========================================
Files 564 564
Lines 104267 104281 +14
==========================================
+ Hits 70073 70078 +5
- Misses 34194 34203 +9 ☔ View full report in Codecov by Sentry. |
|
✔️ 7da1dbb -> Azure artifacts URL |
Just to say we have some internal updates ongoing at the moment, so everything except the M1 build in the gitlab pipeline will most likely fail for the next 1+ days... |
|
I've rebased the PR on top of |
|
✔️ 7da1dbb -> Azure artifacts URL |
|
The reason I changed the base branch to master is so I could get a working setup.exe artifact for use by Michele in his course. |
|
The fix for Maybe the fix is just as simple as avoiding all Py calls after return from I'd like to keep does not return FILE* Edit: Hmm. Looks like it may suffice to just call |
Library dependencies do not satisfy target MacOS version 10.15 wheel/neuron/.dylibs/Python has a minimum target of 11.0 (but don't know how to do that for just Python38)
|
✔️ 40d6321 -> Azure artifacts URL |
This comment has been minimized.
This comment has been minimized.
|
Is failing test:neuron:nmodl:nvhpc:omp:legacy Some (all?) of those seem to be out of memory issues. Can we restart just the test:neuron:nmodl:nvhpc:omp:legacy ? |
This reverts commit 40d6321.
|
✔️ e046d04 -> Azure artifacts URL |
|
✔️ 9700129 -> Azure artifacts URL |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
✔️ b1a657e -> Azure artifacts URL |
This comment has been minimized.
This comment has been minimized.
|
✔️ f87173f -> Azure artifacts URL |
Solves the MINGW crashing and quit problem when launching nrniv and trying to use nrnpython_getline for readline behavior.
|
|
✔️ 350c964 -> Azure artifacts URL |
|
@neuroman314 @ramcdougal I think this PR is ready to merge. But it would be good to try it out (on a windows machine) to verify that https://github.com/neuronsimulator/nrn/actions/runs/8786668302/ works in the context of the upcoming June course. Note that on my windows 11 virtualbox guest, there is no readline when launchng python12 but readline works properly with I have not tested with windows10. Also the name of the file |
pramodk
left a comment
There was a problem hiding this comment.
As you have tested this, good to merge IMO.
* Compiling required pre-pr release/8.2 include order.




Replacement of PyRun_InteractiveLoop by PyBytes_Main to avoid the File* arg.
Bug it overcomes is immediate return to terminal when launching
nrniv -pythondue to unknown signal in PyOS_Readline.The PyBytes_Main strategy was abandoned in favor of
code.InteractiveConsoleReplacement of WinExec by CreateProcess (and then wait with WaitForSingleObject)
Bug it overcomes is failure to run by double clicking on hoc file. This bug was fixed in #2279
Started from setup-py-the-one-and-only 7f76358
Want to fix:
[x] NEURONMainMenu/Files/Quit does not exit in the sole circumstance of
[x] When
PyOS_ReadlineFunctionPointer = nrnpython_getline;the following crashes with MINGW