Hi Ted,
After a few days effort, I am still not able to run the EAPS tootbox on Win10 (https://senselab.med.yale.edu/modeldb/g ... index.html). I strictly followed the instruction, and reinstalled the NEURON and the EAPS package, but without any progress. As you might have noticed, I just started with NEURON. Thank you in advance.
Below are the error messages.
Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\windows\system32>cd E:\Study\NEURON\ToolBox\eaps
C:\windows\system32>c:\nrn\bin\neuron.exe -dll mod\nrnmech.dll hoc/src/refs.hoc cells/d151.hoc hoc/src/file_util.hoc hoc/src/main.hoc
C:\windows\system32>NEURON -- Release 7.4 (1370:16a7055d4a86) 2015-11-09
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2015
See http://www.neuron.yale.edu/neuron/credits
loading membrane mechanisms from mod/nrnmech.dll
LoadLibrary("mod/nrnmech.dll") failed with error 126
dlopen failed -
0 c:\nrn\bin\nrniv.exe: can't open hoc/src/refs.hoc
0 c:\nrn\bin\nrniv.exe: can't open cells/d151.hoc
0 c:\nrn\bin\nrniv.exe: can't open hoc/src/file_util.hoc
0 c:\nrn\bin\nrniv.exe: can't open hoc/src/main.hoc
oc>
dlopen failed on Win10
-
- Site Admin
- Posts: 6300
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: dlopen failed on Win10
This puzzles me:
Executing the first command
cd E:\Study\NEURON\ToolBox\eaps
should have changed the current working directory to E:\Study\NEURON\ToolBox\eaps
and this change should have been reflected in the system prompt for the second command. But no, the system prompt for the second command was still C:\windows\system32>
so your cd had no effect. This needs to be resolved before I can give you any advice.
So please start in some directory other than
E:\Study\NEURON\ToolBox\eaps
and tell me if
cd E:\Study\NEURON\ToolBox\eaps
changes the system prompt to E:\Study\NEURON\ToolBox\eaps
Code: Select all
C:\windows\system32>cd E:\Study\NEURON\ToolBox\eaps
C:\windows\system32>c:\nrn\bin\neuron.exe -dll mod\nrnmech.dll hoc/src/refs.hoc cells/d151.hoc hoc/src/file_util.hoc hoc/src/main.hoc
cd E:\Study\NEURON\ToolBox\eaps
should have changed the current working directory to E:\Study\NEURON\ToolBox\eaps
and this change should have been reflected in the system prompt for the second command. But no, the system prompt for the second command was still C:\windows\system32>
so your cd had no effect. This needs to be resolved before I can give you any advice.
So please start in some directory other than
E:\Study\NEURON\ToolBox\eaps
and tell me if
cd E:\Study\NEURON\ToolBox\eaps
changes the system prompt to E:\Study\NEURON\ToolBox\eaps
Re: dlopen failed on Win10
Dear Ted,
Thank you very much.
After your suggestion, I tried to change the default directory. The tests showed that I can only make the system directory within the C drive. So I copied the eaps module to the C drive and run the script again. This time, I got different errors, as shown below. I colored the errors that I can found in red.
Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\windows\system32>cd C:\eaps
C:\eaps>c:\nrn\bin\neuron.exe -dll mod\nrnmech.dll hoc/src/refs.hoc cells/d151.hoc hoc/src/file_util.hoc hoc/src/main.hoc
C:\eaps>NEURON -- Release 7.4 (1370:16a7055d4a86) 2015-11-09
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2015
See http://www.neuron.yale.edu/neuron/credits
loading membrane mechanisms from mod/nrnmech.dll
Additional mechanisms from files
cadif.mod cal.mod can.mod car.mod cat.mod hdend.mod hsoma.mod kadist.mod kahp.mod kaprox.mod kc.mod kd.mod kk.mod km.mod naf.mod nax.mod
LOADING GEOMETRY FOR d151
-> Setting file roots...
SETTING WINDOWS FILE PATHS!
-> Updating trial number...
.\cells\d151_trial_num.txt
trial number 2
-> Making output directory...
COMMAND = mkdir output/d151_0002
The syntax of the command is incorrect.
RESULT = 1
COMMAND = mkdir output/d151_0002/nrn
The syntax of the command is incorrect.
RESULT = 1
-> Opening param & geometry files...
-> Loading param files...
LOADING CELL SPECIFIC MEMBRANE CONDUCTANCE DENSITIES...
param_dir = hoc/params
params file = hoc/params//d151_params.hoc
LOADING Cell Sepcific Params D151(A)!
c:\nrn\bin\nrniv.exe: output\d151_0002\nrn\d151_0002_param_names.txt :file is not open
in d151_params.hoc near line 34
gkk = 0.02
^
File[1].printf("%s
", "gkk")
write_param("gkk", "0.02")
define_param("gkk", "0.02")
xopen("d151_params.hoc")
and others
LOADING STANDARD MEMBRANE PARAMS FOR CELL TYPE:ca1pyr
LOADING STANDARD PARAMS for CA1 pyramidal cells...
c:\nrn\bin\nrniv.exe: output\d151_0002\nrn\d151_0002_param_names.txt :file is not open
in ca1pyr_standard_params.hoc near line 51
tstop = 25
^
File[1].printf("%s
", "tstop")
write_param("tstop", "25")
define_param("tstop", "25")
xopen("ca1pyr_sta...")
and others
-> Loading code files...
open cell util: hoc/src/cell_util.hoc
open current util: hoc/src/current_util.hoc
open template for mechanism description: hoc/src/mechdesc.hoc
c:\nrn\bin\nrniv.exe: String : a template cannot be redefined
in mechdesc.hoc near line 47
begintemplate String
^
xopen("mechdesc.hoc")
execute1("{xopen("me...")
load_file("hoc/src/me...")
load_code_files()
open membrane init file: hoc/src/membrane_init.hoc
c:\nrn\bin\nrniv.exe: MechDesc is not a template
in membrane_init.hoc near line 1182
tmp_ref = new MechDesc("naf", "na", "gbar")
^
xopen("membrane_i...")
execute1("{xopen("me...")
load_file("hoc/src/me...")
load_code_files()
-> Making section lists...
Making make_apical_lists...
c:\nrn\bin\nrniv.exe: undefined variable trunk_min_diam
in membrane_init.hoc near line 148
make_lists()
^
make_apical_lists()
make_lists()
Thank you very much.
After your suggestion, I tried to change the default directory. The tests showed that I can only make the system directory within the C drive. So I copied the eaps module to the C drive and run the script again. This time, I got different errors, as shown below. I colored the errors that I can found in red.
Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\windows\system32>cd C:\eaps
C:\eaps>c:\nrn\bin\neuron.exe -dll mod\nrnmech.dll hoc/src/refs.hoc cells/d151.hoc hoc/src/file_util.hoc hoc/src/main.hoc
C:\eaps>NEURON -- Release 7.4 (1370:16a7055d4a86) 2015-11-09
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2015
See http://www.neuron.yale.edu/neuron/credits
loading membrane mechanisms from mod/nrnmech.dll
Additional mechanisms from files
cadif.mod cal.mod can.mod car.mod cat.mod hdend.mod hsoma.mod kadist.mod kahp.mod kaprox.mod kc.mod kd.mod kk.mod km.mod naf.mod nax.mod
LOADING GEOMETRY FOR d151
-> Setting file roots...
SETTING WINDOWS FILE PATHS!
-> Updating trial number...
.\cells\d151_trial_num.txt
trial number 2
-> Making output directory...
COMMAND = mkdir output/d151_0002
The syntax of the command is incorrect.
RESULT = 1
COMMAND = mkdir output/d151_0002/nrn
The syntax of the command is incorrect.
RESULT = 1
-> Opening param & geometry files...
-> Loading param files...
LOADING CELL SPECIFIC MEMBRANE CONDUCTANCE DENSITIES...
param_dir = hoc/params
params file = hoc/params//d151_params.hoc
LOADING Cell Sepcific Params D151(A)!
c:\nrn\bin\nrniv.exe: output\d151_0002\nrn\d151_0002_param_names.txt :file is not open
in d151_params.hoc near line 34
gkk = 0.02
^
File[1].printf("%s
", "gkk")
write_param("gkk", "0.02")
define_param("gkk", "0.02")
xopen("d151_params.hoc")
and others
LOADING STANDARD MEMBRANE PARAMS FOR CELL TYPE:ca1pyr
LOADING STANDARD PARAMS for CA1 pyramidal cells...
c:\nrn\bin\nrniv.exe: output\d151_0002\nrn\d151_0002_param_names.txt :file is not open
in ca1pyr_standard_params.hoc near line 51
tstop = 25
^
File[1].printf("%s
", "tstop")
write_param("tstop", "25")
define_param("tstop", "25")
xopen("ca1pyr_sta...")
and others
-> Loading code files...
open cell util: hoc/src/cell_util.hoc
open current util: hoc/src/current_util.hoc
open template for mechanism description: hoc/src/mechdesc.hoc
c:\nrn\bin\nrniv.exe: String : a template cannot be redefined
in mechdesc.hoc near line 47
begintemplate String
^
xopen("mechdesc.hoc")
execute1("{xopen("me...")
load_file("hoc/src/me...")
load_code_files()
open membrane init file: hoc/src/membrane_init.hoc
c:\nrn\bin\nrniv.exe: MechDesc is not a template
in membrane_init.hoc near line 1182
tmp_ref = new MechDesc("naf", "na", "gbar")
^
xopen("membrane_i...")
execute1("{xopen("me...")
load_file("hoc/src/me...")
load_code_files()
-> Making section lists...
Making make_apical_lists...
c:\nrn\bin\nrniv.exe: undefined variable trunk_min_diam
in membrane_init.hoc near line 148
make_lists()
^
make_apical_lists()
make_lists()
-
- Site Admin
- Posts: 6300
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: dlopen failed on Win10
To sum it up, when you actually cd to the directory that contains the code, your original problem goes away, but now you have discovered that the program has many other problems. Your task now is
Or you could abandon Windows and see if the program runs properly under Linux or OS X.
Code: Select all
REPEAT
identify and fix whatever caused the first error message
try another run
UNTIL the program runs properly