Search found 24 matches

by uri.cohen
Thu Oct 06, 2011 8:15 pm
Forum: NEURON + Python
Topic: Python crashes when loading nrnmech.dll
Replies: 9
Views: 5967

Re: Python crashes when loading nrnmech.dll

The reason I've chosen to add to configure the flag "use_pthread=no" is that when using pthread I run type into conflicts: one of the Windows header files included in MinGW (/usr/i686-pc-mingw32/sys-root/mingw/include/rpcndr.h) contained a conflicting definition of boolean. You can reproduce the iss...
by uri.cohen
Wed Oct 05, 2011 8:03 pm
Forum: NEURON + Python
Topic: Python crashes when loading nrnmech.dll
Replies: 9
Views: 5967

Re: Python crashes when loading nrnmech.dll

I get the failure in half a dozen models, all with consistent behavior. For example with http://senselab.med.yale.edu/modeldb/showmodel.asp?model=139654 . Now regarding your questions. What configure command did you use? I was using the following: $ export PYHOME=/cygdrive/c/Python27 $ export PYLIB=...
by uri.cohen
Wed Oct 05, 2011 2:39 am
Forum: NEURON + Python
Topic: Python crashes when loading nrnmech.dll
Replies: 9
Views: 5967

Re: Python crashes when loading nrnmech.dll

For the python integration I need to compile it from sources. Here's the printout:

Code: Select all

NEURON -- VERSION 7.2 (527+:a38b8d137de6+) 2011-07-26
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2008
See http://www.neuron.yale.edu/credits.html
Also it should be noted I use python 2.7.
by uri.cohen
Tue Oct 04, 2011 10:40 am
Forum: NEURON + Python
Topic: Python crashes when loading nrnmech.dll
Replies: 9
Views: 5967

Re: Python crashes when loading nrnmech.dll

The crash happen both under automatic load using

Code: Select all

import neuron
from the directory where the dll reside and when using

Code: Select all

h.nrn_load_dll()
.
by uri.cohen
Tue Oct 04, 2011 4:43 am
Forum: NEURON + Python
Topic: Python crashes when loading nrnmech.dll
Replies: 9
Views: 5967

Python crashes when loading nrnmech.dll

I have NEURON compiled from sources on WinXP machine and can use it to successfully compile mod files into nrnmech.dll. However, when loading nrnmech.dll the process crashes (that is, exits without any visible error). Opening the same nrnmech.dll from NEURON works well, so it seems like some python ...
by uri.cohen
Fri Aug 26, 2011 9:40 am
Forum: MSWin
Topic: Compilation error: neuron python module (e_editor)
Replies: 8
Views: 9656

Re: Compilation error: neuron python module (e_editor)

Actually, I also used gcc-3 to compile NEURON with Python (ActiveState, though) using the option -mno-cygwin which was indeed removed in gcc-4. I'll update the guidelines to include the feedback above.
Also I hope I'll be able to look at compiling NEURON on x64 machines in a few days.
by uri.cohen
Fri Aug 05, 2011 6:31 pm
Forum: MSWin
Topic: Neuron as Python Module for Windows
Replies: 10
Views: 15527

Re: Neuron as Python Module for Windows

Your tip was great, and I found 3-4 additional steps were needed to make NEURON work as a module with my native-Windows ActiveState python 2.7. See the preview below :) I'll share my results soon, as I had to make some minor changes to the code which I'd like to contribute first. C:\marshalnrn\nrn\b...
by uri.cohen
Fri Jul 29, 2011 5:44 pm
Forum: MSWin
Topic: Neuron as Python Module for Windows
Replies: 10
Views: 15527

Re: Neuron as Python Module for Windows

Thanks for your rapid and clear reply. I would like to compile the code so that it will work with a pure mswin version of Python (I used ActivePython 2.7). No GUI is required, as I just want to use NEURON as a module through PyNN. I Followed the instructions in this forum with the latest code (cygwi...
by uri.cohen
Wed Jul 20, 2011 9:53 am
Forum: MSWin
Topic: Neuron as Python Module for Windows
Replies: 10
Views: 15527

Neuron as Python Module for Windows

There seems to be many people trying to build NEURON from sources just to get it to work as a python module (see http://www.neuron.yale.edu/phpBB/viewtopic.php?f=5&t=2081 http://www.neuron.yale.edu/phpBB/viewtopic.php?f=5&t=1507 http://www.neuron.yale.edu/phpBB/viewtopic.php?f=5&t=1809 and http://ww...