Closed paglabhola closed 4 years ago
HI @paglabhola
I think there is probably some issues with NEURON or LFPy. The output should print the templates that are being simulated:
Cell: L5_LBC_bAC217_1 Progress: [3/30]
Cell: L5_SBC_bNAC219_1 Progress: [6/30]
Cell: L5_ChC_cACint209_1 Progress: [10/30]
Cell: L5_STPC_cADpyr232_1 Progress: [8/30]
Cell: L5_UTPC_cADpyr232_1 Progress: [5/30]
Cell: L5_TTPC2_cADpyr232_1 Progress: [4/30]
Cell: L5_TTPC1_cADpyr232_1 Progress: [3/30]
Cell: L5_SBC_bNAC219_1 Progress: [7/30]
Cell: L5_STPC_cADpyr232_1 Progress: [9/30]
Cell: L5_SBC_bNAC219_1 Progress: [8/30]
Cell: L5_DBC_bAC217_1 Progress: [11/30]
Cell: L5_ChC_cACint209_1 Progress: [11/30]
Cell: L5_MC_bAC217_1 Progress: [7/30]
Cell: L5_DBC_bAC217_1 Progress: [12/30]
Cell: L5_UTPC_cADpyr232_1 Progress: [6/30]
Cell: L5_BTC_bAC217_1 Progress: [9/30]
Cell: L5_MC_bAC217_1 Progress: [8/30]
Cell: L5_ChC_cACint209_1 Progress: [12/30]
Cell: L5_TTPC2_cADpyr232_1 Progress: [5/30]
but it doesn't show in your output. Also the simulation should take ~20 minutes, and you output shows that it only took 0.76 s. The templates were not correctly simulated.
What is the output of running mearec default-config
from terminal?
Following is the Output obtained by running mearec default-config from terminal:
{'cell_models_folder': '/home/neuroelectronics/.config/mearec/cell_models/bbp', 'recordings_folder': '/home/neuroelectronics/.config/mearec/recordings', 'recordings_params': '/home/neuroelectronics/.config/mearec/default_params/recordings_params.yaml', 'templates_folder': '/home/neuroelectronics/.config/mearec/templates', 'templates_params': '/home/neuroelectronics/.config/mearec/default_params/templates_params.yaml'}
Ok they look good. can you try to run the following code:
import MEArec as mr
import os
cell_folder = mr.get_default_cell_models_folder()
params = mr.get_default_templates_params()
target_spikes = [3, 50]
params['target_spikes'] = target_spikes
cells = os.listdir(cell_folder)
cell_name = [c for c in cells if 'TTPC1' in c][0]
cell_path = os.path.join(cell_folder, cell_name)
cell, v, i = mr.run_cell_model(cell_model=cell_path, sim_folder=None, verbose=True, save=False, return_vi=True, **params)
print(i.shape)
This simulates a single cell dynamics using NEURON. i
contains the transmebrane currents of the neuron for each compartment, so you can try to plot some of those:
import matplotlib.pyplot as plt
plt.plot(i[0,0]
plt.show()
this should show a spike. Let me know it this works
Hi! Thanks for helping me out. I have tried to run this code in spyder3 and got the following problem constantly:
runfile('/home/neuroelectronics/test_codes/test_neuron.py', wdir='/home/neuroelectronics/test_codes')
Kernel died, restarting
/usr/lib/python3/dist-packages/traitlets/config/configurable.py:84: UserWarning: Config option use_jedi
not recognized by IPCompleter
.
self.config = config
When I am running the code in terminal , I am getting the following error: I am attaching the error in a text file. error_neuron.txt
+--------------------------------------------------------------------+
¦ • MobaXterm 12.3 • ¦
¦ (SSH client, X-server and networking tools) ¦
¦ ¦
¦ ? SSH session to neuroelectronics@10.56.10.65 ¦
¦ • SSH compression : ? ¦
¦ • SSH-browser : ? ¦
¦ • X11-forwarding : ? (remote display is forwarded through SSH) ¦
¦ • DISPLAY : ? (automatically set on remote server) ¦
¦ ¦
¦ ? For more info, ctrl+click on help or visit our website ¦
+--------------------------------------------------------------------+
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-66-generic x86_64)
Documentation: https://help.ubuntu.com
Management: https://landscape.canonical.com
Support: https://ubuntu.com/advantage
Canonical Livepatch is available for installation.
294 packages can be updated. 0 updates are security updates.
Last login: Sat Nov 9 04:07:31 2019 from 10.64.35.27 (mypython) neuroelectronics@neuroelectronics-desktop:~$ python Python 3.6.8 (default, Oct 7 2019, 12:59:55) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.
import MEArec as mr import os cell_folder = mr.get_default_cell_models_folder() params = mr.get_default_templates_params() target_spikes = [3, 50] params['target_spikes'] = target_spikes cells = os.listdir(cell_folder) cell_name = [c for c in cells if 'TTPC1' in c][0] cell_path = os.path.join(cell_folder, cell_name)
cell, v, i = mr.run_cell_model(cell_model=cell_path, sim_folder=None, verbose=True, save=False, return_vi=True, params) numprocs=1 NEURON mechanisms not found in ../mods. Setting temperature to 34.000000 C Setting simulation time step to 0.025000 ms NEURON: Ih is not a MECHANISM in biophysics.hoc near line 50 insert Ih ^ xopen("biophysics.hoc") execute1("{xopen("bi...") load_file(1, "biophysics.hoc") NEURON: ProbGABAAB_EMS is not a template in synapses.hoc near line 274 section.sec synapse = new ProbGABAAB_EMS(seg_x) ^ xopen("synapses.hoc") execute1("{xopen("sy...") load_file(1, "synapses/s...") 1 1 1 template cADpyr232_L5_TTPC1_0fb1ca4724 exist already [neuroelectronics-desktop:06523] ** Process received signal [neuroelectronics-desktop:06523] Signal: Segmentation fault (11) [neuroelectronics-desktop:06523] Signal code: (17207368) [neuroelectronics-desktop:06523] Failing at address: 0xb0 [neuroelectronics-desktop:06523] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7f4d91100f20] [neuroelectronics-desktop:06523] [ 1] /usr/local/nrn/x86_64/lib/liboc.so.0(hoc_l_insertobj+0x16)[0x7f4d614bdb16] [neuroelectronics-desktop:06523] [ 2] /usr/local/nrn/x86_64/lib/libnrnoc.so.0(hoc_new_object+0x48)[0x7f4d61718a98] [neuroelectronics-desktop:06523] [ 3] /usr/local/nrn/x86_64/lib/libnrnoc.so.0(hoc_newobj1+0x1b)[0x7f4d61718dfb] [neuroelectronics-desktop:06523] [ 4] /usr/local/nrn/x86_64/lib/libnrnoc.so.0(hoc_newobj+0xd1)[0x7f4d6171be11] [neuroelectronics-desktop:06523] [ 5] /usr/local/nrn/x86_64/lib/libnrnoc.so.0(hoc_execute+0x54)[0x7f4d61716954] [neuroelectronics-desktop:06523] [ 6] /usr/local/nrn/x86_64/lib/libnrnoc.so.0(hoc_call+0x19b)[0x7f4d61717b0b] [neuroelectronics-desktop:06523] [ 7] /usr/local/nrn/x86_64/lib/libnrnoc.so.0(hoc_execute+0x54)[0x7f4d61716954] [neuroelectronics-desktop:06523] [ 8] /usr/local/nrn/x86_64/lib/libnrnoc.so.0(hoc_call+0x19b)[0x7f4d61717b0b] [neuroelectronics-desktop:06523] [ 9] /usr/local/nrn/x86_64/lib/libnrnoc.so.0(hoc_execute+0x54)[0x7f4d61716954] [neuroelectronics-desktop:06523] [10] /usr/local/nrn/x86_64/lib/libnrnoc.so.0(hoc_call_ob_proc+0x1f5)[0x7f4d61718d15] [neuroelectronics-desktop:06523] [11] /usr/local/nrn/x86_64/lib/libnrnoc.so.0(hoc_newobj1+0x1db)[0x7f4d61718fbb] [neuroelectronics-desktop:06523] [12] /usr/local/nrn/x86_64/lib/libnrnpython.so.0(+0x14459)[0x7f4d61955459] [neuroelectronics-desktop:06523] [13] /usr/local/nrn/x86_64/lib/libnrniv.so.0(_ZN10OcJumpImpl7fpycallEPFPvS0_S0_ES0S0+0x3e)[0x7f4d611f249e] [neuroelectronics-desktop:06523] [14] /usr/local/nrn/x86_64/lib/libnrnpython.so.0(+0xea77)[0x7f4d6194fa77] [neuroelectronics-desktop:06523] [15] /usr/bin/python3.6(_PyObject_FastCallKeywords+0x19c)[0x5aa69c] [neuroelectronics-desktop:06523] [16] /usr/bin/python3.6[0x50ab53] [neuroelectronics-desktop:06523] [17] /usr/bin/python3.6(_PyEval_EvalFrameDefault+0x449)[0x50c549] [neuroelectronics-desktop:06523] [18] /usr/bin/python3.6[0x509ce8] [neuroelectronics-desktop:06523] [19] /usr/bin/python3.6[0x50aa1d] [neuroelectronics-desktop:06523] [20] /usr/bin/python3.6(_PyEval_EvalFrameDefault+0x449)[0x50c549] [neuroelectronics-desktop:06523] [21] /usr/bin/python3.6[0x5081d5] [neuroelectronics-desktop:06523] [22] /usr/bin/python3.6[0x5896fc] [neuroelectronics-desktop:06523] [23] /usr/bin/python3.6(PyObject_Call+0x3e)[0x5a04ce] [neuroelectronics-desktop:06523] [24] /usr/bin/python3.6(_PyEval_EvalFrameDefault+0x17f5)[0x50d8f5] [neuroelectronics-desktop:06523] [25] /usr/bin/python3.6[0x5081d5] [neuroelectronics-desktop:06523] [26] /usr/bin/python3.6(_PyFunction_FastCallDict+0x2e2)[0x5095d2] [neuroelectronics-desktop:06523] [27] /usr/bin/python3.6[0x5951c1] [neuroelectronics-desktop:06523] [28] /usr/bin/python3.6[0x54a11f] [neuroelectronics-desktop:06523] [29] /usr/bin/python3.6[0x551761] [neuroelectronics-desktop:06523] End of error message Segmentation fault (core dumped) (mypython) neuroelectronics@neuroelectronics-desktop:~$ ^C (mypython) neuroelectronics@neuroelectronics-desktop:~$ cell, v, i = mr.run_cell_model(cell_model=cell_path, sim_folder=None, verbose=True, save=False, return_vi=True, params)> result.txt -bash: syntax error near unexpected token `(' (mypython) neuroelectronics@neuroelectronics-desktop:~$ cell, v, i = mr.run_cell_model(cell_model=cell_path, sim_folder=None, verbose=True, save=False, return_vi=True, params) >result.txt -bash: syntax error near unexpected token `(' (mypython) neuroelectronics@neuroelectronics-desktop:~$
It seems that Neuron mechanism is not found. If you think there is problem with the installation of Neuron and LFPy, kindly suggest me which version of Ubuntu, Neuron, LFPy, Python should be used in order for all of these to be compatible.
I have failed to understand where exactly the problem lies.
Are you running the code locally or remotely?
Can you try to rerun this commands: sudo apt install lib32ncurses5-dev libreadline-dev
If the problem persists, I recommend reinstalling MPI and the problem is related to LFPy.
@alejoe91 Hi! I tried a fresh install, still getting a segmentation fault. Trace is the same as above. Any ideas on how to debug this?
Hi @paglabhola. Which versions of: NEURON, Ubuntu, mpi, and LFPy are you using exactly? I think the problem looks especially related to the mpi installation.
Maybe @espenhgn or @torbjone have some clues
Hi. Looking at the log above:
cell, v, i = mr.run_cell_model(cell_model=cell_path, sim_folder=None, verbose=True, save=False, return_vi=True, **params)
numprocs=1
NEURON mechanisms not found in ../mods.
Setting temperature to 34.000000 C
Setting simulation time step to 0.025000 ms
NEURON: Ih is not a MECHANISM
in biophysics.hoc near line 50
insert Ih
^
The mechanism files are not properly compiled. Try removing ../mods/x86_64
and run nrnivmodl
again in ../mods
before reinstalling anything. NEURON can find MPI it seems.
Thank you @espenhgn! @paglabhola if you remove the mods folder and try again the template generation the mod files should be recompiled automatically. If that doesn't work we can try to compile them manually as Espen suggested
When I am running the code suggested by you, I am getting the following error in the terminal. Spyder shows "kernel died. Restarting...". The previous error with "../mods" folder seems to have gone. Kindly advice.
libpng warning: iCCP: known incorrect sRGB profile libpng warning: iCCP: known incorrect sRGB profile numprocs=1 [neuroelectronics-desktop:03688] Process received signal [neuroelectronics-desktop:03688] Signal: Segmentation fault (11) [neuroelectronics-desktop:03688] Associated errno: Bad file descriptor (9) [neuroelectronics-desktop:03688] Signal code: (7) [neuroelectronics-desktop:03688] Failing at address: 0x90 [neuroelectronics-desktop:03688] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7f76feeeaf20] [neuroelectronics-desktop:03688] [ 1] /usr/local/nrn/x86_64/lib/liboc.so.0(hoc_l_insertobj+0x16)[0x7f76b2e14ad6] [neuroelectronics-desktop:03688] [ 2] /usr/local/nrn/x86_64/lib/libnrnoc.so.0(hoc_new_object+0x48)[0x7f76b306f3d8] [neuroelectronics-desktop:03688] [ 3] /usr/local/nrn/x86_64/lib/libnrnoc.so.0(hoc_newobj1+0x1b)[0x7f76b306f73b] [neuroelectronics-desktop:03688] [ 4] /usr/local/nrn/x86_64/lib/libnrnoc.so.0(hoc_newobj+0xd1)[0x7f76b3072751] [neuroelectronics-desktop:03688] [ 5] /usr/local/nrn/x86_64/lib/libnrnoc.so.0(hoc_execute+0x54)[0x7f76b306d274] [neuroelectronics-desktop:03688] [ 6] /usr/local/nrn/x86_64/lib/libnrnoc.so.0(hoc_call+0x19b)[0x7f76b306e42b] [neuroelectronics-desktop:03688] [ 7] /usr/local/nrn/x86_64/lib/libnrnoc.so.0(hoc_execute+0x54)[0x7f76b306d274] [neuroelectronics-desktop:03688] [ 8] /usr/local/nrn/x86_64/lib/libnrnoc.so.0(hoc_call+0x19b)[0x7f76b306e42b] [neuroelectronics-desktop:03688] [ 9] /usr/local/nrn/x86_64/lib/libnrnoc.so.0(hoc_execute+0x54)[0x7f76b306d274] [neuroelectronics-desktop:03688] [10] /usr/local/nrn/x86_64/lib/libnrnoc.so.0(hoc_call_ob_proc+0x1f5)[0x7f76b306f655] [neuroelectronics-desktop:03688] [11] /usr/local/nrn/x86_64/lib/libnrnoc.so.0(hoc_newobj1+0x1db)[0x7f76b306f8fb] [neuroelectronics-desktop:03688] [12] /usr/local/nrn/x86_64/lib/libnrnpython.so.0(+0x11ce9)[0x7f76b329dce9] [neuroelectronics-desktop:03688] [13] /usr/local/nrn/x86_64/lib/libnrniv.so.0(_ZN10OcJumpImpl7fpycallEPFPvS0_S0_ES0S0+0x3e)[0x7f76b153bece] [neuroelectronics-desktop:03688] [14] /usr/local/nrn/x86_64/lib/libnrnpython.so.0(+0xca47)[0x7f76b3298a47] [neuroelectronics-desktop:03688] [15] /usr/bin/python3.6(_PyObject_FastCallKeywords+0x19c)[0x5aa69c] [neuroelectronics-desktop:03688] [16] /usr/bin/python3.6[0x50ab53] [neuroelectronics-desktop:03688] [17] /usr/bin/python3.6(_PyEval_EvalFrameDefault+0x449)[0x50c549] [neuroelectronics-desktop:03688] [18] /usr/bin/python3.6[0x509ce8] [neuroelectronics-desktop:03688] [19] /usr/bin/python3.6[0x50aa1d] [neuroelectronics-desktop:03688] [20] /usr/bin/python3.6(_PyEval_EvalFrameDefault+0x449)[0x50c549] [neuroelectronics-desktop:03688] [21] /usr/bin/python3.6[0x5081d5] [neuroelectronics-desktop:03688] [22] /usr/bin/python3.6[0x5896fc] [neuroelectronics-desktop:03688] [23] /usr/bin/python3.6(PyObject_Call+0x3e)[0x5a04ce] [neuroelectronics-desktop:03688] [24] /usr/bin/python3.6(_PyEval_EvalFrameDefault+0x17f5)[0x50d8f5] [neuroelectronics-desktop:03688] [25] /usr/bin/python3.6[0x5081d5] [neuroelectronics-desktop:03688] [26] /usr/bin/python3.6(_PyFunction_FastCallDict+0x2e2)[0x5095d2] [neuroelectronics-desktop:03688] [27] /usr/bin/python3.6[0x5951c1] [neuroelectronics-desktop:03688] [28] /usr/bin/python3.6[0x54a11f] [neuroelectronics-desktop:03688] [29] /usr/bin/python3.6[0x551761] [neuroelectronics-desktop:03688] End of error message
Can you try to go into /home/neuroelectronics/.config/mearec/cell_models/bbp/L5_BP_bAC217_1/mechanisms
and run nrnivmodl
from there. This should show if the problem is NEURON.
On running this, the output obtained is: Successfully created x86_64 /special
@paglabhola Can you try to generate the templates with the parallel arg to False?
tempgen = mr.gen_templates(cell_models_folder=cell_models_folder, params= templates_params, verbose=True, delete_tmp=True, parallel=False)
Code run in Spyder3: import MEArec as mr import os
cell_folder = mr.get_default_cell_models_folder() params = mr.get_default_templates_params()
target_spikes = [3, 50] params['target_spikes'] = target_spikes cells = os.listdir(cell_folder) cell_name = [c for c in cells if 'TTPC1' in c][0] cell_path = os.path.join(cell_folder, cell_name)
tempgen = mr.gen_templates(cell_models_folder=cell_path, params= params, verbose=True, delete_tmp=True, parallel=False)
Error Obtained: runfile('/home/neuroelectronics/test_codes/template_generation_test.py', wdir='/home/neuroelectronics/test_codes') Compiling NEURON models
CHANGELOG 1 / 25
morphology 2 / 25
LICENSE 3 / 25
run_RmpRiTau_py.sh 4 / 25
run_RmpRiTau.py 5 / 25
createsimulation.hoc 6 / 25
init.hoc 7 / 25
biophysics.hoc 8 / 25
template.hoc 9 / 25
README 10 / 25
constants.hoc 11 / 25
mosinit.hoc 12 / 25
run_py.sh 13 / 25
synapses 14 / 25
run_hoc.sh 15 / 25
current_amps.dat 16 / 25
morphology.hoc 17 / 25
.provenance.json 18 / 25
creategui.hoc 19 / 25
mechanisms 20 / 25
run.py 21 / 25
pycache 22 / 25
cellinfo.json 23 / 25
ringplot.hoc 24 / 25
VERSION 25 / 25
Simulation time: 4.476324081420898
Traceback (most recent call last):
File "
File "/usr/lib/python3/dist-packages/spyder/utils/site/sitecustomize.py", line 705, in runfile execfile(filename, namespace)
File "/usr/lib/python3/dist-packages/spyder/utils/site/sitecustomize.py", line 102, in execfile exec(compile(f.read(), filename, 'exec'), namespace)
File "/home/neuroelectronics/test_codes/template_generation_test.py", line 21, in
File "/usr/local/lib/python3.6/dist-packages/MEArec/generation_tools.py", line 198, in gen_templates tempgen.generate_templates()
File "/usr/local/lib/python3.6/dist-packages/MEArec/generators/templategenerator.py", line 188, in generate_templates templates, locations, rotations, celltypes = load_tmp_eap(tmp_folder)
File "/usr/local/lib/python3.6/dist-packages/MEArec/tools.py", line 148, in load_tmp_eap eaplist = [f for f in os.listdir(templates_folder) if f.startswith('eap')]
FileNotFoundError: [Errno 2] No such file or directory: '/home/neuroelectronics/test_codes/physrot/tmp_50_Neuronexus-32'
@paglabhola there is an error in your code:
Insetad of tempgen = mr.gen_templates(cell_models_folder=cell_path, params= params, verbose=True, delete_tmp=True, parallel=False)
cell_path
should be cell_folder
:
you should have tempgen = mr.gen_templates(cell_models_folder=cell_folder, params= params, verbose=True, delete_tmp=True, parallel=False)
import MEArec as mr import os
cell_folder = mr.get_default_cell_models_folder() params = mr.get_default_templates_params()
target_spikes = [3, 50] params['target_spikes'] = target_spikes cells = os.listdir(cell_folder) cell_name = [c for c in cells if 'TTPC1' in c][0] cell_path = os.path.join(cell_folder, cell_name)
tempgen = mr.gen_templates(cell_models_folder=cell_folder, params= params, verbose=True, delete_tmp=True, parallel=False)
### Error Obtained: runfile('/home/neuroelectronics/test_codes/template_generation_test.py', wdir='/home/neuroelectronics/test_codes') Compiling NEURON models
L5_TTPC2_cADpyr232_1 1 / 13
L5_NGC_bNAC219_1 2 / 13
L5_TTPC1_cADpyr232_1 3 / 13
L5_STPC_cADpyr232_1 4 / 13
L5_SBC_bNAC219_1 5 / 13
L5_BP_bAC217_1 6 / 13
L5_NBC_bAC217_1 7 / 13
L5_DBC_bAC217_1 8 / 13
L5_ChC_cACint209_1 9 / 13
L5_MC_bAC217_1 10 / 13
L5_BTC_bAC217_1 11 / 13
L5_LBC_bAC217_1 12 / 13
L5_UTPC_cADpyr232_1 13 / 13
Simulation time: 2.3033530712127686
Traceback (most recent call last):
File "
File "/usr/lib/python3/dist-packages/spyder/utils/site/sitecustomize.py", line 705, in runfile execfile(filename, namespace)
File "/usr/lib/python3/dist-packages/spyder/utils/site/sitecustomize.py", line 102, in execfile exec(compile(f.read(), filename, 'exec'), namespace)
File "/home/neuroelectronics/test_codes/template_generation_test.py", line 21, in
File "/usr/local/lib/python3.6/dist-packages/MEArec/generation_tools.py", line 198, in gen_templates tempgen.generate_templates()
File "/usr/local/lib/python3.6/dist-packages/MEArec/generators/templategenerator.py", line 188, in generate_templates templates, locations, rotations, celltypes = load_tmp_eap(tmp_folder)
File "/usr/local/lib/python3.6/dist-packages/MEArec/tools.py", line 148, in load_tmp_eap eaplist = [f for f in os.listdir(templates_folder) if f.startswith('eap')]
FileNotFoundError: [Errno 2] No such file or directory: '/home/neuroelectronics/test_codes/physrot/tmp_50_Neuronexus-32'
What is the output of pip list
? Are you running the code from a conda environment?
Output of pip3.6 list (since i have used pip3.6 for installation) : Package Version
alabaster 0.7.8
apturl 0.5.2
asn1crypto 0.24.0
astroid 1.6.0
atomicwrites 1.3.0
attrs 19.3.0
Babel 2.4.0
beautifulsoup4 4.6.0
bleach 2.1.2
Brlapi 0.6.6
certifi 2018.1.18
chardet 3.0.4
Click 7.0
cloudpickle 0.5.2
command-not-found 0.3
cryptography 2.1.4
cupshelpers 1.0
cycler 0.10.0
Cython 0.26.1
decorator 4.1.2
defer 1.0.6
distro-info 0.18ubuntu0.18.04.1
docutils 0.14
elephant 0.6.4
entrypoints 0.2.3.post1
h5py 2.10.0
html5lib 0.999999999
httplib2 0.9.2
idna 2.6
imagesize 0.7.1
importlib-metadata 0.23
ipykernel 4.8.2
ipython 5.5.0
ipython-genutils 0.2.0
ipywidgets 7.5.1
isort 4.3.4
jedi 0.11.1
Jinja2 2.10
jsonschema 2.6.0
jupyter 1.0.0
jupyter-client 5.2.2
jupyter-console 6.0.0
jupyter-core 4.6.1
keyring 10.6.0
keyrings.alt 3.0
kiwisolver 1.1.0
language-selector 0.1
launchpadlib 1.10.6
lazr.restfulclient 0.13.5
lazr.uri 1.0.3
lazy-object-proxy 1.3.1
LFPy 2.0.3
logilab-common 1.4.1
louis 3.5.0
lxml 4.2.1
macaroonbakery 1.1.3
Mako 1.0.7
MarkupSafe 1.0
matplotlib 3.1.1
mccabe 0.6.1
MEArec 1.3.6
MEAutility 1.3.3
mistune 0.8.3
MoI 1.0
more-itertools 7.2.0
mpi4py 3.0.2
nbconvert 5.3.1
nbformat 4.4.0
neo 0.8.0
netifaces 0.10.4
NEURON 7.6
notebook 6.0.2
numpy 1.13.3
numpydoc 0.7.0
oauth 1.0.1
olefile 0.45.1
packaging 19.2
pandocfilters 1.4.2
parso 0.1.1
pexpect 4.2.1
pickleshare 0.7.4
Pillow 5.1.0
pip 19.3.1
pluggy 0.13.0
prometheus-client 0.7.1
prompt-toolkit 1.0.15
protobuf 3.0.0
psutil 5.4.2
ptyprocess 0.6.0
py 1.8.0
pycairo 1.16.2
pycodestyle 2.3.1
pycrypto 2.6.1
pycups 1.9.73
pyflakes 1.6.0
Pygments 2.2.0
pygobject 3.26.1
pylint 1.8.3
pymacaroons 0.13.0
PyNaCl 1.1.2
pyparsing 2.4.2
pyRFC3339 1.0
pytest 5.2.2
python-apt 1.6.2
python-dateutil 2.8.1
python-debian 0.1.32
python-xlib 0.20
pytz 2018.3
pyxdg 0.25
PyYAML 3.12
pyzmq 18.1.0
QtAwesome 0.4.4
qtconsole 4.3.1
QtPy 1.3.1
quantities 0.12.3
reportlab 3.4.0
requests 2.18.4
requests-unixsocket 0.1.5
roman 2.0.0
rope 0.10.5
scipy 0.19.1
SecretStorage 2.3.1
Send2Trash 1.5.0
setuptools 39.0.1
simplegeneric 0.8.1
simplejson 3.13.2
six 1.11.0
Sphinx 1.6.7
spyder 3.2.6
ssh-import-id 5.7
system-service 0.3
systemd-python 234
terminado 0.8.2
testpath 0.3.1
tornado 6.0.3
tqdm 4.37.0
traitlets 4.3.2
ubuntu-drivers-common 0.0.0
ufw 0.35
unattended-upgrades 0.1
urllib3 1.22
usb-creator 0.3.3
wadllib 1.3.2
wcwidth 0.1.7
webencodings 0.5
wheel 0.30.0
widgetsnbextension 3.5.1
wrapt 1.9.0
xkit 0.0.0
zipp 0.6.0
zope.interface 4.3.2
Yes the code has been run in conda environment in terminal. I have also tried it on Spyder3 installed under conda environment.
And you are using Ubuntu 18.04. What is the content of the /home/neuroelectronics/.config/mearec/cell_models/bbp/mods/x86_64
folder?
It doesn't seem that the models are compiled properly. You should get a bunch of prints from the NEURON compilation process.
This is the output that I get when I run the code (the first time):
Creating x86_64 directory for .o files.
/home/alessiob/Documents/Codes/MEArec/MEArec/cell_models/bbp/mods
CaDynamics_E2.mod Ca_HVA.mod Ca_LVAst.mod Ca.mod Ih.mod Im.mod K_Pst.mod K_Tst.mod Nap_Et2.mod NaTa_t.mod NaTs2_t.mod ProbAMPANMDA_EMS.mod ProbGABAAB_EMS.mod SK_E2.mod SKv3_1.mod
CaDynamics_E2.mod Ca_HVA.mod Ca_LVAst.mod Ca.mod Ih.mod Im.mod K_Pst.mod K_Tst.mod Nap_Et2.mod NaTa_t.mod NaTs2_t.mod ProbAMPANMDA_EMS.mod ProbGABAAB_EMS.mod SK_E2.mod SKv3_1.mod
"/usr/local/nrn/x86_64/bin/nocmodl" CaDynamics_E2
"/usr/local/nrn/x86_64/bin/nocmodl" Ca_HVA
"/usr/local/nrn/x86_64/bin/nocmodl" Ca_LVAst
"/usr/local/nrn/x86_64/bin/nocmodl" Ca
Translating Ca_LVAst.mod into Ca_LVAst.c
Translating Ca_HVA.mod into Ca_HVA.c
Translating CaDynamics_E2.mod into CaDynamics_E2.c
Translating Ca.mod into Ca.c
Thread Safe
Thread Safe
Thread Safe
"/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -g -O2 -c -o Ca_LVAst.lo Ca_LVAst.c
Thread Safe
"/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -g -O2 -c -o Ca_HVA.lo Ca_HVA.c
"/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -g -O2 -c -o CaDynamics_E2.lo CaDynamics_E2.c
"/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -g -O2 -c -o Ca.lo Ca.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -g -O2 -c Ca_LVAst.c -fPIC -DPIC -o .libs/Ca_LVAst.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -g -O2 -c Ca_HVA.c -fPIC -DPIC -o .libs/Ca_HVA.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -g -O2 -c Ca.c -fPIC -DPIC -o .libs/Ca.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -g -O2 -c CaDynamics_E2.c -fPIC -DPIC -o .libs/CaDynamics_E2.o
"/usr/local/nrn/x86_64/bin/nocmodl" Ih
Translating Ih.mod into Ih.c
Thread Safe
"/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -g -O2 -c -o Ih.lo Ih.c
"/usr/local/nrn/x86_64/bin/nocmodl" Im
Translating Im.mod into Im.c
Thread Safe
"/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -g -O2 -c -o Im.lo Im.c
"/usr/local/nrn/x86_64/bin/nocmodl" K_Pst
"/usr/local/nrn/x86_64/bin/nocmodl" K_Tst
Translating K_Pst.mod into K_Pst.c
Translating K_Tst.mod into K_Tst.c
Thread Safe
"/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -g -O2 -c -o K_Pst.lo K_Pst.c
Thread Safe
"/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -g -O2 -c -o K_Tst.lo K_Tst.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -g -O2 -c Ih.c -fPIC -DPIC -o .libs/Ih.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -g -O2 -c Im.c -fPIC -DPIC -o .libs/Im.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -g -O2 -c K_Tst.c -fPIC -DPIC -o .libs/K_Tst.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -g -O2 -c K_Pst.c -fPIC -DPIC -o .libs/K_Pst.o
"/usr/local/nrn/x86_64/bin/nocmodl" Nap_Et2
Translating Nap_Et2.mod into Nap_Et2.c
Thread Safe
"/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -g -O2 -c -o Nap_Et2.lo Nap_Et2.c
"/usr/local/nrn/x86_64/bin/nocmodl" NaTa_t
Translating NaTa_t.mod into NaTa_t.c
"/usr/local/nrn/x86_64/bin/nocmodl" NaTs2_t
Thread Safe
"/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -g -O2 -c -o NaTa_t.lo NaTa_t.c
Translating NaTs2_t.mod into NaTs2_t.c
Thread Safe
"/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -g -O2 -c -o NaTs2_t.lo NaTs2_t.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -g -O2 -c NaTa_t.c -fPIC -DPIC -o .libs/NaTa_t.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -g -O2 -c Nap_Et2.c -fPIC -DPIC -o .libs/Nap_Et2.o
"/usr/local/nrn/x86_64/bin/nocmodl" ProbAMPANMDA_EMS
Translating ProbAMPANMDA_EMS.mod into ProbAMPANMDA_EMS.c
Notice: This mechanism cannot be used with CVODE
Notice: A_AMPA discontinuity adjustment not available.
Notice: B_AMPA discontinuity adjustment not available.
Notice: A_NMDA discontinuity adjustment not available.
Notice: B_NMDA discontinuity adjustment not available.
Warning: dt undefined. (declared within VERBATIM?)
Warning: value undefined. (declared within VERBATIM?)
Thread Safe
"/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -g -O2 -c -o ProbAMPANMDA_EMS.lo ProbAMPANMDA_EMS.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -g -O2 -c NaTs2_t.c -fPIC -DPIC -o .libs/NaTs2_t.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -g -O2 -c ProbAMPANMDA_EMS.c -fPIC -DPIC -o .libs/ProbAMPANMDA_EMS.o
"/usr/local/nrn/x86_64/bin/nocmodl" ProbGABAAB_EMS
Translating ProbGABAAB_EMS.mod into ProbGABAAB_EMS.c
Notice: This mechanism cannot be used with CVODE
Notice: A_GABAA discontinuity adjustment not available.
Notice: B_GABAA discontinuity adjustment not available.
Notice: A_GABAB discontinuity adjustment not available.
Notice: B_GABAB discontinuity adjustment not available.
Warning: dt undefined. (declared within VERBATIM?)
Warning: value undefined. (declared within VERBATIM?)
Thread Safe
"/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -g -O2 -c -o ProbGABAAB_EMS.lo ProbGABAAB_EMS.c
"/usr/local/nrn/x86_64/bin/nocmodl" SK_E2
Translating SK_E2.mod into SK_E2.c
Thread Safe
"/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -g -O2 -c -o SK_E2.lo SK_E2.c
"/usr/local/nrn/x86_64/bin/nocmodl" SKv3_1
Translating SKv3_1.mod into SKv3_1.c
Thread Safe
"/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -g -O2 -c -o SKv3_1.lo SKv3_1.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -g -O2 -c ProbGABAAB_EMS.c -fPIC -DPIC -o .libs/ProbGABAAB_EMS.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -g -O2 -c SK_E2.c -fPIC -DPIC -o .libs/SK_E2.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -g -O2 -c SKv3_1.c -fPIC -DPIC -o .libs/SKv3_1.o
"/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -g -O2 -c -o mod_func.lo mod_func.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -g -O2 -c mod_func.c -fPIC -DPIC -o .libs/mod_func.o
"/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=link gcc -module -g -O2 -o libnrnmech.la -rpath "/usr/local/nrn/x86_64/lib" CaDynamics_E2.lo Ca_HVA.lo Ca_LVAst.lo Ca.lo Ih.lo Im.lo K_Pst.lo K_Tst.lo Nap_Et2.lo NaTa_t.lo NaTs2_t.lo ProbAMPANMDA_EMS.lo ProbGABAAB_EMS.lo SK_E2.lo SKv3_1.lo mod_func.lo -L"/usr/local/nrn/x86_64/lib" -lnrnoc -loc -lmemacs -lscopmath -lsparse13 -lreadline -lncurses -ltinfo -L"/usr/local/nrn/x86_64/lib" -lnrniv -livoc -lneuron_gnu -lmeschach -lsundials -lm -ldl
libtool: link: gcc -shared -fPIC -DPIC .libs/CaDynamics_E2.o .libs/Ca_HVA.o .libs/Ca_LVAst.o .libs/Ca.o .libs/Ih.o .libs/Im.o .libs/K_Pst.o .libs/K_Tst.o .libs/Nap_Et2.o .libs/NaTa_t.o .libs/NaTs2_t.o .libs/ProbAMPANMDA_EMS.o .libs/ProbGABAAB_EMS.o .libs/SK_E2.o .libs/SKv3_1.o .libs/mod_func.o -Wl,-rpath -Wl,/usr/local/nrn/x86_64/lib -Wl,-rpath -Wl,/usr/local/nrn/x86_64/lib -L/usr/local/nrn/x86_64/lib /usr/local/nrn/x86_64/lib/libnrnoc.so /usr/local/nrn/x86_64/lib/liboc.so /usr/local/nrn/x86_64/lib/libmemacs.so /usr/local/nrn/x86_64/lib/libscopmath.so /usr/local/nrn/x86_64/lib/libsparse13.so -lreadline -lncurses -ltinfo /usr/local/nrn/x86_64/lib/libnrniv.so /usr/local/nrn/x86_64/lib/libivoc.so /usr/local/nrn/x86_64/lib/libneuron_gnu.so /usr/local/nrn/x86_64/lib/libmeschach.so /usr/local/nrn/x86_64/lib/libsundials.so -lm -ldl -g -O2 -pthread -Wl,-soname -Wl,libnrnmech.so.0 -o .libs/libnrnmech.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libnrnmech.so.0" && ln -s "libnrnmech.so.0.0.0" "libnrnmech.so.0")
libtool: link: (cd ".libs" && rm -f "libnrnmech.so" && ln -s "libnrnmech.so.0.0.0" "libnrnmech.so")
libtool: link: ( cd ".libs" && rm -f "libnrnmech.la" && ln -s "../libnrnmech.la" "libnrnmech.la" )
Successfully created x86_64/special
Then the mods
folder should contain several .mod files and a x86_64 folder with a bunch of other files. So you get any of those?
Contents of /home/neuroelectronics/.config/mearec/cell_models/bbp/L5_BP_bAC217_1/mechanisms/: -rw-r--r-- 1 neuroelectronics neuroelectronics 807 Nov 4 01:50 SKv3_1.mod -rw-r--r-- 1 neuroelectronics neuroelectronics 980 Nov 4 01:50 SK_E2.mod -rw-r--r-- 1 neuroelectronics neuroelectronics 12261 Nov 4 01:50 ProbGABAAB_EMS.mod -rw-r--r-- 1 neuroelectronics neuroelectronics 12651 Nov 4 01:50 ProbAMPANMDA_EMS.mod -rw-r--r-- 1 neuroelectronics neuroelectronics 1166 Nov 4 01:50 NaTs2_t.mod -rw-r--r-- 1 neuroelectronics neuroelectronics 1088 Nov 4 01:50 NaTa_t.mod -rw-r--r-- 1 neuroelectronics neuroelectronics 1429 Nov 4 01:50 Nap_Et2.mod -rw-r--r-- 1 neuroelectronics neuroelectronics 1109 Nov 4 01:50 K_Tst.mod -rw-r--r-- 1 neuroelectronics neuroelectronics 1221 Nov 4 01:50 K_Pst.mod -rw-r--r-- 1 neuroelectronics neuroelectronics 853 Nov 4 01:50 Im.mod -rw-r--r-- 1 neuroelectronics neuroelectronics 787 Nov 4 01:50 Ih.mod -rw-r--r-- 1 neuroelectronics neuroelectronics 1002 Nov 4 01:50 Ca.mod -rw-r--r-- 1 neuroelectronics neuroelectronics 1106 Nov 4 01:50 Ca_LVAst.mod -rw-r--r-- 1 neuroelectronics neuroelectronics 681 Nov 4 01:50 CaDynamics_E2.mod -rw-rw-r-- 1 neuroelectronics neuroelectronics 2870 Nov 13 02:16 output.txt drwxrwsr-x 3 neuroelectronics neuroelectronics 4096 Nov 13 07:02 x86_64
Contents of /home/neuroelectronics/.config/mearec/cell_models/bbp/L5_BP_bAC217_1/mechanisms/x86_64/
-rw-rw-r-- 1 neuroelectronics neuroelectronics 11341 Nov 13 02:03 Ih.c -rw-rw-r-- 1 neuroelectronics neuroelectronics 13085 Nov 13 02:03 Ca_LVAst.c -rw-rw-r-- 1 neuroelectronics neuroelectronics 11719 Nov 13 02:03 CaDynamics_E2.c -rw-rw-r-- 1 neuroelectronics neuroelectronics 13050 Nov 13 02:03 Ca.c -rw-rw-r-- 1 neuroelectronics neuroelectronics 271 Nov 13 02:03 Ih.lo -rw-rw-r-- 1 neuroelectronics neuroelectronics 293 Nov 13 02:03 CaDynamics_E2.lo -rw-rw-r-- 1 neuroelectronics neuroelectronics 283 Nov 13 02:03 Ca_LVAst.lo -rw-rw-r-- 1 neuroelectronics neuroelectronics 271 Nov 13 02:03 Ca.lo -rw-rw-r-- 1 neuroelectronics neuroelectronics 13526 Nov 13 02:03 Nap_Et2.c -rw-rw-r-- 1 neuroelectronics neuroelectronics 12948 Nov 13 02:03 K_Tst.c -rw-rw-r-- 1 neuroelectronics neuroelectronics 13058 Nov 13 02:03 K_Pst.c -rw-rw-r-- 1 neuroelectronics neuroelectronics 12374 Nov 13 02:03 Im.c -rw-rw-r-- 1 neuroelectronics neuroelectronics 271 Nov 13 02:03 Im.lo -rw-rw-r-- 1 neuroelectronics neuroelectronics 13414 Nov 13 02:03 NaTa_t.c -rw-rw-r-- 1 neuroelectronics neuroelectronics 277 Nov 13 02:03 K_Pst.lo -rw-rw-r-- 1 neuroelectronics neuroelectronics 13447 Nov 13 02:03 NaTs2_t.c -rw-rw-r-- 1 neuroelectronics neuroelectronics 277 Nov 13 02:03 K_Tst.lo -rw-rw-r-- 1 neuroelectronics neuroelectronics 19256 Nov 13 02:03 ProbAMPANMDA_EMS.c -rw-rw-r-- 1 neuroelectronics neuroelectronics 281 Nov 13 02:03 Nap_Et2.lo -rw-rw-r-- 1 neuroelectronics neuroelectronics 18333 Nov 13 02:03 ProbGABAAB_EMS.c -rw-rw-r-- 1 neuroelectronics neuroelectronics 279 Nov 13 02:03 NaTa_t.lo -rw-rw-r-- 1 neuroelectronics neuroelectronics 12867 Nov 13 02:03 SK_E2.c -rw-rw-r-- 1 neuroelectronics neuroelectronics 281 Nov 13 02:03 NaTs2_t.lo -rw-rw-r-- 1 neuroelectronics neuroelectronics 12343 Nov 13 02:03 SKv3_1.c -rw-rw-r-- 1 neuroelectronics neuroelectronics 295 Nov 13 02:03 ProbGABAAB_EMS.lo -rw-rw-r-- 1 neuroelectronics neuroelectronics 299 Nov 13 02:03 ProbAMPANMDA_EMS.lo -rw-rw-r-- 1 neuroelectronics neuroelectronics 277 Nov 13 02:03 SK_E2.lo -rw-rw-r-- 1 neuroelectronics neuroelectronics 279 Nov 13 02:03 SKv3_1.lo lrwxrwxrwx 1 neuroelectronics neuroelectronics 20 Nov 13 07:02 CaDynamics_E2.mod -> ../CaDynamics_E2.mod lrwxrwxrwx 1 neuroelectronics neuroelectronics 15 Nov 13 07:02 Ca_LVAst.mod -> ../Ca_LVAst.mod lrwxrwxrwx 1 neuroelectronics neuroelectronics 9 Nov 13 07:02 Ca.mod -> ../Ca.mod lrwxrwxrwx 1 neuroelectronics neuroelectronics 9 Nov 13 07:02 Ih.mod -> ../Ih.mod lrwxrwxrwx 1 neuroelectronics neuroelectronics 12 Nov 13 07:02 K_Pst.mod -> ../K_Pst.mod lrwxrwxrwx 1 neuroelectronics neuroelectronics 9 Nov 13 07:02 Im.mod -> ../Im.mod lrwxrwxrwx 1 neuroelectronics neuroelectronics 12 Nov 13 07:02 K_Tst.mod -> ../K_Tst.mod lrwxrwxrwx 1 neuroelectronics neuroelectronics 14 Nov 13 07:02 Nap_Et2.mod -> ../Nap_Et2.mod lrwxrwxrwx 1 neuroelectronics neuroelectronics 14 Nov 13 07:02 NaTs2_t.mod -> ../NaTs2_t.mod lrwxrwxrwx 1 neuroelectronics neuroelectronics 13 Nov 13 07:02 NaTa_t.mod -> ../NaTa_t.mod lrwxrwxrwx 1 neuroelectronics neuroelectronics 23 Nov 13 07:02 ProbAMPANMDA_EMS.mod -> ../ProbAMPANMDA_EMS.mod lrwxrwxrwx 1 neuroelectronics neuroelectronics 12 Nov 13 07:02 SK_E2.mod -> ../SK_E2.mod lrwxrwxrwx 1 neuroelectronics neuroelectronics 21 Nov 13 07:02 ProbGABAAB_EMS.mod -> ../ProbGABAAB_EMS.mod lrwxrwxrwx 1 neuroelectronics neuroelectronics 13 Nov 13 07:02 SKv3_1.mod -> ../SKv3_1.mod -rw-rw-r-- 1 neuroelectronics neuroelectronics 1450 Nov 13 07:02 mod_func.c -rw-rw-r-- 1 neuroelectronics neuroelectronics 283 Nov 13 07:02 mod_func.lo -rw-rw-r-- 1 neuroelectronics neuroelectronics 1456 Nov 13 07:02 libnrnmech.la -rwxr-xr-x 1 neuroelectronics neuroelectronics 385 Nov 13 07:02 special
@paglabhola I mean the content of: /home/neuroelectronics/.config/mearec/cell_models/bbp/mods
and /home/neuroelectronics/.config/mearec/cell_models/bbp/mods/x86_64
, not the mechanisms folder. If you don't have that folder, than NEURON failed to compile the mechanisms.
The mods folder is not created. Where exactly lies the problem? What do I need to do in order to make it work correctly?
Ok, at least we know where the proble is. Try to run this script:
import os
from os.path import join
from glob import glob
cell_folder = '/home/neuroelectronics/.config/mearec/cell_models/bbp/'
def compile_all_mechanisms(cell_folder, verbose=False):
""" Attempt to set up a folder with all unique mechanism *.mod files and
compile them all. assumes all cell models are in a folder 'cell_models'
Parameters:
-----------
model : string (optional, default='bbp')
Cell model type ('bbp' - Blue Brain Project, i.e. NMC database)
"""
if not os.path.isdir(join(cell_folder, 'mods')):
os.mkdir(join(cell_folder, 'mods'))
neurons = [join(cell_folder, f) \
for f in os.listdir(join(cell_folder)) \
if f != 'mods']
if verbose:
print(neurons)
for nrn in neurons:
for nmodl in glob(join(nrn, 'mechanisms', '*.mod')):
while not os.path.isfile(join(cell_folder, 'mods', os.path.split(nmodl)[-1])):
if sys.platform == 'win32':
_command = 'copy'
else:
_command = 'cp'
if verbose:
print('{} {} {}'.format(_command, nmodl, join(cell_folder, 'mods')))
os.system('{} {} {}'.format(_command, nmodl, join(cell_folder, 'mods')))
starting_dir = os.getcwd()
os.chdir(join(cell_folder, 'mods'))
os.system('nrnivmodl')
os.chdir(starting_dir)
compile_all_mechanisms(cell_folder, verbose=True)
and then paste the output of the terminal and check if the /home/neuroelectronics/.config/mearec/cell_models/bbp/mods
and /home/neuroelectronics/.config/mearec/cell_models/bbp/mods/x86_64
were created.
Thanks @alejoe91 After running this script (needed to include " import sys" in the script), Output obtained:
runfile('/home/neuroelectronics/test_codes/compile_mechanisms.py', wdir='/home/neuroelectronics/test_codes') ['/home/neuroelectronics/.config/mearec/cell_models/bbp/L5_TTPC2_cADpyr232_1', '/home/neuroelectronics/.config/mearec/cell_models/bbp/L5_NGC_bNAC219_1', '/home/neuroelectronics/.config/mearec/cell_models/bbp/L5_TTPC1_cADpyr232_1', '/home/neuroelectronics/.config/mearec/cell_models/bbp/L5_STPC_cADpyr232_1', '/home/neuroelectronics/.config/mearec/cell_models/bbp/L5_SBC_bNAC219_1', '/home/neuroelectronics/.config/mearec/cell_models/bbp/L5_BP_bAC217_1', '/home/neuroelectronics/.config/mearec/cell_models/bbp/L5_NBC_bAC217_1', '/home/neuroelectronics/.config/mearec/cell_models/bbp/L5_DBC_bAC217_1', '/home/neuroelectronics/.config/mearec/cell_models/bbp/L5_ChC_cACint209_1', '/home/neuroelectronics/.config/mearec/cell_models/bbp/L5_MC_bAC217_1', '/home/neuroelectronics/.config/mearec/cell_models/bbp/L5_BTC_bAC217_1', '/home/neuroelectronics/.config/mearec/cell_models/bbp/L5_LBC_bAC217_1', '/home/neuroelectronics/.config/mearec/cell_models/bbp/L5_UTPC_cADpyr232_1'] cp /home/neuroelectronics/.config/mearec/cell_models/bbp/L5_TTPC2_cADpyr232_1/mechanisms/Ca_HVA.mod /home/neuroelectronics/.config/mearec/cell_models/bbp/mods cp /home/neuroelectronics/.config/mearec/cell_models/bbp/L5_TTPC2_cADpyr232_1/mechanisms/Im.mod /home/neuroelectronics/.config/mearec/cell_models/bbp/mods cp /home/neuroelectronics/.config/mearec/cell_models/bbp/L5_TTPC2_cADpyr232_1/mechanisms/ProbGABAAB_EMS.mod /home/neuroelectronics/.config/mearec/cell_models/bbp/mods cp /home/neuroelectronics/.config/mearec/cell_models/bbp/L5_TTPC2_cADpyr232_1/mechanisms/K_Tst.mod /home/neuroelectronics/.config/mearec/cell_models/bbp/mods cp /home/neuroelectronics/.config/mearec/cell_models/bbp/L5_TTPC2_cADpyr232_1/mechanisms/Ca_LVAst.mod /home/neuroelectronics/.config/mearec/cell_models/bbp/mods cp /home/neuroelectronics/.config/mearec/cell_models/bbp/L5_TTPC2_cADpyr232_1/mechanisms/K_Pst.mod /home/neuroelectronics/.config/mearec/cell_models/bbp/mods cp /home/neuroelectronics/.config/mearec/cell_models/bbp/L5_TTPC2_cADpyr232_1/mechanisms/ProbAMPANMDA_EMS.mod /home/neuroelectronics/.config/mearec/cell_models/bbp/mods cp /home/neuroelectronics/.config/mearec/cell_models/bbp/L5_TTPC2_cADpyr232_1/mechanisms/NaTa_t.mod /home/neuroelectronics/.config/mearec/cell_models/bbp/mods cp /home/neuroelectronics/.config/mearec/cell_models/bbp/L5_TTPC2_cADpyr232_1/mechanisms/Nap_Et2.mod /home/neuroelectronics/.config/mearec/cell_models/bbp/mods cp /home/neuroelectronics/.config/mearec/cell_models/bbp/L5_TTPC2_cADpyr232_1/mechanisms/SKv3_1.mod /home/neuroelectronics/.config/mearec/cell_models/bbp/mods cp /home/neuroelectronics/.config/mearec/cell_models/bbp/L5_TTPC2_cADpyr232_1/mechanisms/Ih.mod /home/neuroelectronics/.config/mearec/cell_models/bbp/mods cp /home/neuroelectronics/.config/mearec/cell_models/bbp/L5_TTPC2_cADpyr232_1/mechanisms/CaDynamics_E2.mod /home/neuroelectronics/.config/mearec/cell_models/bbp/mods cp /home/neuroelectronics/.config/mearec/cell_models/bbp/L5_TTPC2_cADpyr232_1/mechanisms/NaTs2_t.mod /home/neuroelectronics/.config/mearec/cell_models/bbp/mods cp /home/neuroelectronics/.config/mearec/cell_models/bbp/L5_TTPC2_cADpyr232_1/mechanisms/SK_E2.mod /home/neuroelectronics/.config/mearec/cell_models/bbp/mods cp /home/neuroelectronics/.config/mearec/cell_models/bbp/L5_NGC_bNAC219_1/mechanisms/Ca.mod /home/neuroelectronics/.config/mearec/cell_models/bbp/mods
Checked that /home/neuroelectronics/.config/mearec/cell_models/bbp/mods is created. But /home/neuroelectronics/.config/mearec/cell_models/bbp/mods/x86_64 was not created.
(new) neuroelectronics@neuroelectronics-desktop:~/.config/mearec/cell_models/bbp$ ls L5_BP_bAC217_1 L5_LBC_bAC217_1 L5_SBC_bNAC219_1 L5_UTPC_cADpyr232_1 L5_BTC_bAC217_1 L5_MC_bAC217_1 L5_STPC_cADpyr232_1 mods L5_ChC_cACint209_1 L5_NBC_bAC217_1 L5_TTPC1_cADpyr232_1 L5_DBC_bAC217_1 L5_NGC_bNAC219_1 L5_TTPC2_cADpyr232_1 (new) neuroelectronics@neuroelectronics-desktop:~/.config/mearec/cell_models/bbp$ cd /home/neuroelectronics/.config/mearec/cell_models/bbp/mods (new) neuroelectronics@neuroelectronics-desktop:~/.config/mearec/cell_models/bbp/mods$ ls CaDynamics_E2.mod Ih.mod Nap_Et2.mod ProbGABAAB_EMS.mod Ca_HVA.mod Im.mod NaTa_t.mod SK_E2.mod Ca_LVAst.mod K_Pst.mod NaTs2_t.mod SKv3_1.mod Ca.mod K_Tst.mod ProbAMPANMDA_EMS.mod
ok. Can you run this from the terminal:
cd /home/neuroelectronics/.config/mearec/cell_models/bbp/mods
nrnivmodl
What is the output? Is the x86_64 folder created?
Yes, now x86_64 folder is created.
(new) neuroelectronics@neuroelectronics-desktop:~/.config/mearec/cell_models/bbp/mods$ nrnivmodl Creating x86_64 directory for .o files.
/home/neuroelectronics/.config/mearec/cell_models/bbp/mods CaDynamics_E2.mod Ca_HVA.mod Ca_LVAst.mod Ca.mod Ih.mod Im.mod K_Pst.mod K_Tst.mod Nap_Et2.mod NaTa_t.mod NaTs2_t.mod ProbAMPANMDA_EMS.mod ProbGABAAB_EMS.mod SK_E2.mod SKv3_1.mod CaDynamics_E2.mod Ca_HVA.mod Ca_LVAst.mod Ca.mod Ih.mod Im.mod K_Pst.mod K_Tst.mod Nap_Et2.mod NaTa_t.mod NaTs2_t.mod ProbAMPANMDA_EMS.mod ProbGABAAB_EMS.mod SK_E2.mod SKv3_1.mod "/usr/local/nrn/x86_64/bin/nocmodl" CaDynamics_E2 "/usr/local/nrn/x86_64/bin/nocmodl" Ca_HVA "/usr/local/nrn/x86_64/bin/nocmodl" Ca_LVAst "/usr/local/nrn/x86_64/bin/nocmodl" Ca Translating Ca.mod into Ca.c Translating CaDynamics_E2.mod into CaDynamics_E2.c Translating Ca_LVAst.mod into Ca_LVAst.c Translating Ca_HVA.mod into Ca_HVA.c Thread Safe Thread Safe Thread Safe Thread Safe "/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile mpicc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c -o Ca_LVAst.lo Ca_LVAst.c "/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile mpicc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c -o CaDynamics_E2.lo CaDynamics_E2.c "/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile mpicc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c -o Ca_HVA.lo Ca_HVA.c "/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile mpicc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c -o Ca.lo Ca.c libtool: compile: mpicc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c Ca_HVA.c -fPIC -DPIC -o .libs/Ca_HVA.o libtool: compile: mpicc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c Ca.c -fPIC -DPIC -o .libs/Ca.o libtool: compile: mpicc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c Ca_LVAst.c -fPIC -DPIC -o .libs/Ca_LVAst.o libtool: compile: mpicc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c CaDynamics_E2.c -fPIC -DPIC -o .libs/CaDynamics_E2.o "/usr/local/nrn/x86_64/bin/nocmodl" Ih "/usr/local/nrn/x86_64/bin/nocmodl" Im "/usr/local/nrn/x86_64/bin/nocmodl" K_Pst "/usr/local/nrn/x86_64/bin/nocmodl" K_Tst Translating Ih.mod into Ih.c Translating Im.mod into Im.c Translating K_Pst.mod into K_Pst.c Translating K_Tst.mod into K_Tst.c Thread Safe Thread Safe "/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile mpicc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c -o Ih.lo Ih.c "/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile mpicc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c -o Im.lo Im.c Thread Safe Thread Safe "/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile mpicc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c -o K_Pst.lo K_Pst.c "/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile mpicc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c -o K_Tst.lo K_Tst.c libtool: compile: mpicc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c Ih.c -fPIC -DPIC -o .libs/Ih.o libtool: compile: mpicc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c Im.c -fPIC -DPIC -o .libs/Im.o libtool: compile: mpicc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c K_Pst.c -fPIC -DPIC -o .libs/K_Pst.o libtool: compile: mpicc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c K_Tst.c -fPIC -DPIC -o .libs/K_Tst.o "/usr/local/nrn/x86_64/bin/nocmodl" Nap_Et2 Translating Nap_Et2.mod into Nap_Et2.c Thread Safe "/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile mpicc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c -o Nap_Et2.lo Nap_Et2.c "/usr/local/nrn/x86_64/bin/nocmodl" NaTa_t Translating NaTa_t.mod into NaTa_t.c Thread Safe "/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile mpicc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c -o NaTa_t.lo NaTa_t.c "/usr/local/nrn/x86_64/bin/nocmodl" NaTs2_t "/usr/local/nrn/x86_64/bin/nocmodl" ProbAMPANMDA_EMS Translating NaTs2_t.mod into NaTs2_t.c Translating ProbAMPANMDA_EMS.mod into ProbAMPANMDA_EMS.c Thread Safe "/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile mpicc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c -o NaTs2_t.lo NaTs2_t.c Notice: This mechanism cannot be used with CVODE Notice: A_AMPA discontinuity adjustment not available. Notice: B_AMPA discontinuity adjustment not available. Notice: A_NMDA discontinuity adjustment not available. Notice: B_NMDA discontinuity adjustment not available. Warning: dt undefined. (declared within VERBATIM?) Warning: value undefined. (declared within VERBATIM?) Thread Safe "/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile mpicc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c -o ProbAMPANMDA_EMS.lo ProbAMPANMDA_EMS.c libtool: compile: mpicc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c Nap_Et2.c -fPIC -DPIC -o .libs/Nap_Et2.o libtool: compile: mpicc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c NaTa_t.c -fPIC -DPIC -o .libs/NaTa_t.o libtool: compile: mpicc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c ProbAMPANMDA_EMS.c -fPIC -DPIC -o .libs/ProbAMPANMDA_EMS.o libtool: compile: mpicc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c NaTs2_t.c -fPIC -DPIC -o .libs/NaTs2_t.o "/usr/local/nrn/x86_64/bin/nocmodl" ProbGABAAB_EMS Translating ProbGABAAB_EMS.mod into ProbGABAAB_EMS.c Notice: This mechanism cannot be used with CVODE Notice: A_GABAA discontinuity adjustment not available. Notice: B_GABAA discontinuity adjustment not available. Notice: A_GABAB discontinuity adjustment not available. Notice: B_GABAB discontinuity adjustment not available. Warning: dt undefined. (declared within VERBATIM?) Warning: value undefined. (declared within VERBATIM?) Thread Safe "/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile mpicc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c -o ProbGABAAB_EMS.lo ProbGABAAB_EMS.c "/usr/local/nrn/x86_64/bin/nocmodl" SK_E2 Translating SK_E2.mod into SK_E2.c Thread Safe "/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile mpicc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c -o SK_E2.lo SK_E2.c "/usr/local/nrn/x86_64/bin/nocmodl" SKv3_1 Translating SKv3_1.mod into SKv3_1.c Thread Safe "/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile mpicc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c -o SKv3_1.lo SKv3_1.c libtool: compile: mpicc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c ProbGABAAB_EMS.c -fPIC -DPIC -o .libs/ProbGABAAB_EMS.o libtool: compile: mpicc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c SK_E2.c -fPIC -DPIC -o .libs/SK_E2.o "/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=compile mpicc -DHAVE_CONFIG_H -I. -I.. -I"/usr/local/nrn/include/nrn" -I"/usr/local/nrn/x86_64/lib" -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c -o mod_func.lo mod_func.c libtool: compile: mpicc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c SKv3_1.c -fPIC -DPIC -o .libs/SKv3_1.o libtool: compile: mpicc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/nrn/include/nrn -I/usr/local/nrn/x86_64/lib -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/neuroelectronics/anaconda3/envs/new/include -g -O2 -c mod_func.c -fPIC -DPIC -o .libs/mod_func.o "/usr/local/nrn/share/nrn/libtool" --tag=CC --mode=link mpicc -module -g -O2 -o libnrnmech.la -rpath "/usr/local/nrn/x86_64/lib" CaDynamics_E2.lo Ca_HVA.lo Ca_LVAst.lo Ca.lo Ih.lo Im.lo K_Pst.lo K_Tst.lo Nap_Et2.lo NaTa_t.lo NaTs2_t.lo ProbAMPANMDA_EMS.lo ProbGABAAB_EMS.lo SK_E2.lo SKv3_1.lo mod_func.lo -L"/usr/local/nrn/x86_64/lib" -lnrnoc -loc -lmemacs -lnrnmpi -lscopmath -lsparse13 -lreadline -lncurses -ltinfo -L"/usr/local/nrn/x86_64/lib" -lnrniv -livoc -lneuron_gnu -lmeschach -lsundials -lm -ldl libtool: link: mpicc -shared -fPIC -DPIC .libs/CaDynamics_E2.o .libs/Ca_HVA.o .libs/Ca_LVAst.o .libs/Ca.o .libs/Ih.o .libs/Im.o .libs/K_Pst.o .libs/K_Tst.o .libs/Nap_Et2.o .libs/NaTa_t.o .libs/NaTs2_t.o .libs/ProbAMPANMDA_EMS.o .libs/ProbGABAAB_EMS.o .libs/SK_E2.o .libs/SKv3_1.o .libs/mod_func.o -Wl,-rpath -Wl,/usr/local/nrn/x86_64/lib -Wl,-rpath -Wl,/usr/local/nrn/x86_64/lib -L/usr/local/nrn/x86_64/lib /usr/local/nrn/x86_64/lib/libnrnoc.so /usr/local/nrn/x86_64/lib/liboc.so /usr/local/nrn/x86_64/lib/libmemacs.so /usr/local/nrn/x86_64/lib/libnrnmpi.so /usr/local/nrn/x86_64/lib/libscopmath.so /usr/local/nrn/x86_64/lib/libsparse13.so -lreadline -lncurses -ltinfo /usr/local/nrn/x86_64/lib/libnrniv.so /usr/local/nrn/x86_64/lib/libivoc.so /usr/local/nrn/x86_64/lib/libneuron_gnu.so /usr/local/nrn/x86_64/lib/libmeschach.so /usr/local/nrn/x86_64/lib/libsundials.so -lm -ldl -g -O2 -Wl,-soname -Wl,libnrnmech.so.0 -o .libs/libnrnmech.so.0.0.0 libtool: link: (cd ".libs" && rm -f "libnrnmech.so.0" && ln -s "libnrnmech.so.0.0.0" "libnrnmech.so.0") libtool: link: (cd ".libs" && rm -f "libnrnmech.so" && ln -s "libnrnmech.so.0.0.0" "libnrnmech.so") libtool: link: ( cd ".libs" && rm -f "libnrnmech.la" && ln -s "../libnrnmech.la" "libnrnmech.la" ) (new) neuroelectronics@neuroelectronics-desktop:~/.config/mearec/cell_models/bbp/mods$ ls CaDynamics_E2.mod Ca_HVA.mod Ca_LVAst.mod Ca.mod Ih.mod Im.mod K_Pst.mod K_Tst.mod Nap_Et2.mod NaTa_t.mod NaTs2_t.mod ProbAMPANMDA_EMS.mod ProbGABAAB_EMS.mod SK_E2.mod SKv3_1.mod x86_64
ok! can you try to run the template generation script again?
import MEArec as mr
import MEAutility
#generate templates
templates_params = mr.get_default_templates_params()
cell_models_folder = mr.get_default_cell_models_folder()
templates_params['probe']='Neuronexus-32'
templates_params['n']=30
templates_params['seed']=0
tempgen = mr.gen_templates(cell_models_folder=cell_models_folder, params= templates_params, verbose=True, delete_tmp=True)
mr.save_template_generator(tempgen, '/home/neuroelectronics/templates.h5')
Script run in Spyder3: import MEArec as mr import MEAutility
templates_params = mr.get_default_templates_params() cell_models_folder = mr.get_default_cell_models_folder()
templates_params['probe']='Neuronexus-32' templates_params['n']=30 templates_params['seed']=0 tempgen = mr.gen_templates(cell_models_folder=cell_models_folder, params= templates_params, verbose=True, delete_tmp=True)
mr.save_template_generator(tempgen, '/home/neuroelectronics/templates.h5')
Output Obtained: runfile('/home/neuroelectronics/.config/spyder-py3/temp.py', wdir='/home/neuroelectronics/.config/spyder-py3') Starting 1
Starting 2 L5_TTPC2_cADpyr232_1 1 / 13
L5_NGC_bNAC219_1 2 / 13
Starting 3
L5_TTPC1_cADpyr232_1 3 / 13
Starting 4
Starting 5 L5_STPC_cADpyr232_1 4 / 13
Starting 6 L5_SBC_bNAC219_1 5 / 13
Starting 7 Exiting 1
L5_BP_bAC217_1 6 / 13
Starting 8
L5_NBC_bAC217_1 7 / 13
Starting 9
Exiting 2 Exiting 3 Starting 10 L5_DBC_bAC217_1 8 / 13
Starting 11
Exiting 4 Starting 12 Exiting 5 L5_ChC_cACint209_1 9 / 13
L5_MC_bAC217_1 10 / 13
Starting 13
L5_UTPC_cADpyr232_1 13 / 13
L5_LBC_bAC217_1 12 / 13
L5_BTC_bAC217_1 11 / 13
Exiting 6 Exiting 7 Exiting 9 Exiting 10 Exiting 8 Exiting 13 Exiting 11 Exiting 12
Simulation time: 0.13188576698303223
Traceback (most recent call last):
File "
File "/usr/lib/python3/dist-packages/spyder/utils/site/sitecustomize.py", line 705, in runfile execfile(filename, namespace)
File "/usr/lib/python3/dist-packages/spyder/utils/site/sitecustomize.py", line 102, in execfile exec(compile(f.read(), filename, 'exec'), namespace)
File "/home/neuroelectronics/.config/spyder-py3/temp.py", line 18, in
File "/usr/local/lib/python3.6/dist-packages/MEArec/generation_tools.py", line 198, in gen_templates tempgen.generate_templates()
File "/usr/local/lib/python3.6/dist-packages/MEArec/generators/templategenerator.py", line 188, in generate_templates templates, locations, rotations, celltypes = load_tmp_eap(tmp_folder)
File "/usr/local/lib/python3.6/dist-packages/MEArec/tools.py", line 148, in load_tmp_eap eaplist = [f for f in os.listdir(templates_folder) if f.startswith('eap')]
FileNotFoundError: [Errno 2] No such file or directory: '/home/neuroelectronics/.config/spyder-py3/physrot/tmp_30_Neuronexus-32'
hei, that is very strange.. as the mods files are compiled and in the right place. Try this again:
import MEArec as mr
import os
cell_folder = mr.get_default_cell_models_folder()
params = mr.get_default_templates_params()
target_spikes = [3, 50]
params['target_spikes'] = target_spikes
cells = os.listdir(cell_folder)
cell_name = [c for c in cells if 'TTPC1' in c][0]
cell_path = os.path.join(cell_folder, cell_name)
cell, v, i = mr.run_cell_model(cell_model=cell_path, sim_folder=None, verbose=True, save=False, return_vi=True, **params)
print(i.shape)
If it doesn't work, you can download several template files from here, and try to simulate recordings. Or we can try to arrange a call and do some debugging.
Can you also check if you get the same error running this from terminal:
mearec gen-templates -prb Neuronexus-32 -n 30 -v
(this should give you the same results as your script)
hei, that is very strange.. as the mods files are compiled and in the right place. Try this again:
import MEArec as mr import os cell_folder = mr.get_default_cell_models_folder() params = mr.get_default_templates_params() target_spikes = [3, 50] params['target_spikes'] = target_spikes cells = os.listdir(cell_folder) cell_name = [c for c in cells if 'TTPC1' in c][0] cell_path = os.path.join(cell_folder, cell_name) cell, v, i = mr.run_cell_model(cell_model=cell_path, sim_folder=None, verbose=True, save=False, return_vi=True, **params) print(i.shape)
If it doesn't work, you can download several template files from here, and try to simulate recordings. Or we can try to arrange a call and do some debugging.
This is also not working. Output obtained: runfile('/home/neuroelectronics/.config/spyder-py3/test_with_default_templates.py', wdir='/home/neuroelectronics/.config/spyder-py3') Traceback (most recent call last):
File "
File "/usr/lib/python3/dist-packages/spyder/utils/site/sitecustomize.py", line 705, in runfile execfile(filename, namespace)
File "/usr/lib/python3/dist-packages/spyder/utils/site/sitecustomize.py", line 102, in execfile exec(compile(f.read(), filename, 'exec'), namespace)
File "/home/neuroelectronics/.config/spyder-py3/test_with_default_templates.py", line 21, in
File "/usr/local/lib/python3.6/dist-packages/MEArec/simulate_cells.py", line 368, in run_cell_model cell = return_cell(cell_model, 'bbp', cell_name, T, dt, 0)
File "/usr/local/lib/python3.6/dist-packages/MEArec/simulate_cells.py", line 102, in return_cell import LFPy
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/init.py", line 46, in
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointprocess.py", line 19, in
File "/usr/local/lib/python3.6/dist-packages/neuron/init.py", line 112, in
File "
ModuleNotFoundError: No module named 'neuron.hoc36'
Can you also check if you get the same error running this from terminal:
mearec gen-templates -prb Neuronexus-32 -n 30 -v
(this should give you the same results as your script)
@alejoe91 Yes. I am getting the same error running this from the terminal.
ok! so the problem is neuron installation!
If you try from ipython: import neuron
it will give you the same error.
What is the output of: mpiexec --version
?
you can try to uninstall NEURON, install these requirements:
# Needed for x11
sudo apt-get install libx11-dev libxt-dev gnome-devel
# Needed for MPI support
sudo apt-get install mpich
# Needed by NEURON
sudo apt-get install libncurses-dev xfonts-100dpi
and reinstall it.
mpiexec --version
Yes. When I am writing "import neuron" from ipython, I am getting the same error.
Output of "mpiexec --version is mpiexec (OpenRTE) 4.0.1
ok you might need to install mpich
as suggested in the previous comment. I'll add that to the documentation
you can try to uninstall NEURON, install these requirements:
# Needed for x11 sudo apt-get install libx11-dev libxt-dev gnome-devel # Needed for MPI support sudo apt-get install mpich # Needed by NEURON sudo apt-get install libncurses-dev xfonts-100dpi
and reinstall it.
But I had installed the said requirements already before installing neuron.
Just see the output:
(new) neuroelectronics@neuroelectronics-desktop:~ sudo apt-get install libx11-dev libxt-dev gnome-devel
[sudo] password for neuroelectronics:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libxt-dev is already the newest version (1:1.1.5-1).
gnome-devel is already the newest version (1:3.22+9).
libx11-dev is already the newest version (2:1.6.4-3ubuntu0.2).
0 upgraded, 0 newly installed, 0 to remove and 297 not upgraded.
(new) neuroelectronics@neuroelectronics-desktop:~ sudo apt-get install mpich
Reading package lists... Done
Building dependency tree
Reading state information... Done
mpich is already the newest version (3.3~a2-4).
0 upgraded, 0 newly installed, 0 to remove and 297 not upgraded.
(new) neuroelectronics@neuroelectronics-desktop:~ sudo apt-get install libncurses-dev xfonts-100dpi
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libncurses5-dev' instead of 'libncurses-dev'
xfonts-100dpi is already the newest version (1:1.0.4+nmu1).
libncurses5-dev is already the newest version (6.1-1ubuntu1.18.04).
0 upgraded, 0 newly installed, 0 to remove and 297 not upgraded.
mmm I see.. I'm afraid this is then a neuron problem. You can try to ask a question in their forum saying that you installed using the .deb and you get that error. It's probably related to this: https://www.neuron.yale.edu/phpbb/viewtopic.php?f=6&t=4063
Perhaps I can suggest the conda-forge versions of LFPy and NEURON. Just create a new conda environment and install the MEArec stuff on top of that, like
conda config --add channels conda-forge
conda create -n mearec lfpy neuron=*=mpi* # creates new conda environment with LFPy and Neuron
conda activate mearec
# proceed to install MEArec stuff
@espenhgn @alejoe91 After doing
conda config --add channels conda-forge conda create -n mearec lfpy neuron==mpi conda activate mearec
(mearec) neuroelectronics@neuroelectronics-desktop:~$ conda list gives the following: packages in environment at /home/neuroelectronics/anaconda3/envs/mearec:
Name Version Build Channel _libgcc_mutex 0.1 main ca-certificates 2019.9.11 hecc5488_0 conda-forge certifi 2019.9.11 py36_0 conda-forge cython 0.29.14 py36he1b5a44_0 conda-forge h5py 2.10.0 nompi_py36h513d04c_100 conda-forge hdf5 1.10.5 nompi_h3c11f04_1104 conda-forge lfpy 2.0.3 mpi_py36hcf07815_2 conda-forge libblas 3.8.0 14_openblas conda-forge libcblas 3.8.0 14_openblas conda-forge libffi 3.2.1 he1b5a44_1006 conda-forge libgcc-ng 9.1.0 hdf63c60_0 libgfortran-ng 7.3.0 hdf63c60_2 conda-forge liblapack 3.8.0 14_openblas conda-forge libopenblas 0.3.7 h6e990d7_3 conda-forge libstdcxx-ng 9.1.0 hdf63c60_0 mpi 1.0 mpich conda-forge mpi4py 2.0.0 py36_2 conda-forge mpich 3.2.1 hc99cbb1_1014 conda-forge ncurses 6.1 hf484d3e_1002 conda-forge neuron 7.6.7 mpi_mpich_py36h25c11df_3 conda-forge numpy 1.17.3 py36h95a1406_0 conda-forge openssl 1.1.1d h516909a_0 conda-forge pip 19.3.1 py36_0 conda-forge python 3.6.7 h357f687_1006 conda-forge readline 8.0 hf8c457e_0 conda-forge scipy 1.3.2 py36h921218d_0 conda-forge setuptools 41.6.0 py36_1 conda-forge six 1.13.0 py36_0 conda-forge sqlite 3.30.1 hcee41ef_0 conda-forge tk 8.6.9 hed695b0_1003 conda-forge wheel 0.33.6 py36_0 conda-forge xz 5.2.4 h14c3975_1001 conda-forge zlib 1.2.11 h516909a_1006 conda-forge
(mearec) neuroelectronics@neuroelectronics-desktop:~$ python Python 3.6.8 (default, Oct 7 2019, 12:59:55) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.
import neuron neuron.test() testBytesize (neuron.tests.test_vector.VectorTestCase) Test that Vector.array_interface__ returns the proper bytesize (of a double) ... ok testEndian (neuron.tests.test_vector.VectorTestCase) Test that Vector.array_interface__ returns the proper byteorder (endian) ... ok testNumpyInteraction (neuron.tests.test_vector.VectorTestCase) Testing numpy.array <=> hoc.Vector interaction ... ok testPerformance (neuron.tests.test_vector.VectorTestCase) Test performance of Vector<->list,array ...
Executed "l = range(1000000)". Elapsed = 0.000018 s Executed "v = h.Vector(l)". Elapsed = 0.102303 s inplace: Executed "v.from_python(l)". Elapsed = 0.099789 s Executed "a = numpy.array(v)". Elapsed = 0.001772 s inplace: Executed "v.to_python(a)". Elapsed = 0.001407 s Executed "v2 = h.Vector(a)". Elapsed = 0.002680 s inplace: Executed "v2.from_python(a)". Elapsed = 0.001422 s Executed "l2 = list(v2)". Elapsed = 0.035279 s inplace: Executed "v.to_python(l2)". Elapsed = 0.009300 s Executed "v2 = h.Vector(a[::-1])". Elapsed = 0.002338 s Executed "a2 = numpy.array(v2)". Elapsed = 0.001735 s ok testABI (neuron.tests.test_neuron.NeuronTestCase) Test use of some Py_LIMITED_API for python3. ... ok testExtendedSection (neuron.tests.test_neuron.NeuronTestCase) ... test: ok testHClass (neuron.tests.test_neuron.NeuronTestCase) Test subclass of hoc class. ... ok testRxDexistence (neuron.tests.test_neuron.NeuronTestCase) ... has_geometry3d is False 'basicRxD3D()' failed ok testpsection (neuron.tests.test_neuron.NeuronTestCase) ... ok
Ran 9 tests in 1.487s
OK
import LFPy [neuroelectronics-desktop:21334] Process received signal [neuroelectronics-desktop:21334] Signal: Floating point exception (8) [neuroelectronics-desktop:21334] Signal code: Integer divide-by-zero (1) [neuroelectronics-desktop:21334] Failing at address: 0x7f3d7042639c [neuroelectronics-desktop:21334] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7f3d7578ef20] [neuroelectronics-desktop:21334] [ 1] /usr/lib/x86_64-linux-gnu/libopen-pal.so.20(opal_hash_table_get_value_ptr+0x5c)[0x7f3d7042639c] [neuroelectronics-desktop:21334] [ 2] /usr/lib/x86_64-linux-gnu/libopen-pal.so.20(+0x46b11)[0x7f3d7044db11] [neuroelectronics-desktop:21334] [ 3] /usr/lib/x86_64-linux-gnu/libopen-pal.so.20(mca_base_var_register+0x27)[0x7f3d7044ebb7] [neuroelectronics-desktop:21334] [ 4] /usr/lib/x86_64-linux-gnu/libopen-pal.so.20(mca_base_component_var_register+0x3e)[0x7f3d7044ebfe] [neuroelectronics-desktop:21334] [ 5] /home/neuroelectronics/anaconda3/envs/new/lib/openmpi/mca_shmem_mmap.so(+0x21cf)[0x7f3d75d571cf] [neuroelectronics-desktop:21334] [ 6] /home/neuroelectronics/anaconda3/envs/new/lib/./libopen-pal.so.40(mca_base_framework_components_register+0x180)[0x7f3d70dd1fc0] [neuroelectronics-desktop:21334] [ 7] /home/neuroelectronics/anaconda3/envs/new/lib/./libopen-pal.so.40(mca_base_framework_register+0x255)[0x7f3d70dd2355] [neuroelectronics-desktop:21334] [ 8] /home/neuroelectronics/anaconda3/envs/new/lib/./libopen-pal.so.40(mca_base_framework_open+0x12)[0x7f3d70dd23b2] [neuroelectronics-desktop:21334] [ 9] /home/neuroelectronics/anaconda3/envs/new/lib/./libopen-pal.so.40(opal_init+0x162)[0x7f3d70da93b2] [neuroelectronics-desktop:21334] [10] /home/neuroelectronics/anaconda3/envs/new/lib/./libopen-rte.so.40(orte_init+0xca)[0x7f3d70e9e49a] [neuroelectronics-desktop:21334] [11] /usr/lib/x86_64-linux-gnu/libmpi.so.20(ompi_mpi_init+0x30e)[0x7f3d70f8927e] [neuroelectronics-desktop:21334] [12] /usr/lib/x86_64-linux-gnu/libmpi.so.20(PMPI_Init_thread+0x79)[0x7f3d70faa439] [neuroelectronics-desktop:21334] [13] /usr/local/lib/python3.6/dist-packages/mpi4py/MPI.cpython-36m-x86_64-linux-gnu.so(+0x2e4a9)[0x7f3d5d2ef4a9] [neuroelectronics-desktop:21334] [14] /usr/bin/python3.6(PyModule_ExecDef+0x14b)[0x56667b] [neuroelectronics-desktop:21334] [15] /usr/bin/python3.6[0x4fb884] [neuroelectronics-desktop:21334] [16] /usr/bin/python3.6(PyCFunction_Call+0xd5)[0x567375] [neuroelectronics-desktop:21334] [17] /usr/bin/python3.6(_PyEval_EvalFrameDefault+0x54af)[0x5115af] [neuroelectronics-desktop:21334] [18] /usr/bin/python3.6[0x5081d5] [neuroelectronics-desktop:21334] [19] /usr/bin/python3.6[0x50a020] [neuroelectronics-desktop:21334] [20] /usr/bin/python3.6[0x50aa1d] [neuroelectronics-desktop:21334] [21] /usr/bin/python3.6(_PyEval_EvalFrameDefault+0x449)[0x50c549] [neuroelectronics-desktop:21334] [22] /usr/bin/python3.6[0x509ce8] [neuroelectronics-desktop:21334] [23] /usr/bin/python3.6[0x50aa1d] [neuroelectronics-desktop:21334] [24] /usr/bin/python3.6(_PyEval_EvalFrameDefault+0x449)[0x50c549] [neuroelectronics-desktop:21334] [25] /usr/bin/python3.6[0x509ce8] [neuroelectronics-desktop:21334] [26] /usr/bin/python3.6[0x50aa1d] [neuroelectronics-desktop:21334] [27] /usr/bin/python3.6(_PyEval_EvalFrameDefault+0x449)[0x50c549] [neuroelectronics-desktop:21334] [28] /usr/bin/python3.6[0x509ce8] [neuroelectronics-desktop:21334] [29] /usr/bin/python3.6[0x50aa1d] [neuroelectronics-desktop:21334] End of error message Floating point exception (core dumped)
Hi. You have to use the python executable in the conda mearec
environment. The command $ which python
should return /home/neuroelectronics/anaconda3/envs/mearec/bin/python
.
From those errors you are using the system /usr/bin/python3.6
still.
Hi @espenhgn
The command $which python
is returning
(mearec) neuroelectronics@neuroelectronics-desktop:~$ which python
/home/neuroelectronics/anaconda3/envs/mearec/bin/python
I am not understanding why the system /usr/bin/python3.6
is coming in the way. How to solve this?
The error encountered with import LFPy
makes no sense to me. It doesn't appear to be from the mearec
env you created, but another env new
. What happens if you issue:
conda activate mearec
python -c "import LFPy"
You can also run the LFPy test suite (granted that LFPy imports without problems):
python -c "import LFPy; LFPy.run_tests()"
test.sh contains: `#!/bin/bash
python3.6m -c "import LFPy; LFPy.run_tests()" > output.txt`
I wrote python3.6m because it is referring to python 3.6.7 (which is found to be inside conda list for mearec environment and hence is not giving error in importing LFPy, whereas which python
gives /home/neuroelectronics/anaconda3/envs/mearec/bin/python
which refers to python 3.6.8 (its giving error while importing LFPy )
output.txt file is attached. output.txt
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_c ell.py", line 1172, in test_cell_simulate_current_dipole_moment_00
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_c ell.py", line 1208, in test_cell_simulate_current_dipole_moment_01
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_c ell.py", line 1272, in test_cell_tstart_00
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_c ell.py", line 1327, in test_cell_with_recextelectrode_00
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_c ell.py", line 1377, in test_cell_with_recextelectrode_01
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_c ell.py", line 1426, in test_cell_with_recextelectrode_02
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_c ell.py", line 1475, in test_cell_with_recextelectrode_03
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Ran 79 tests in 22.991s
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_t emplatecell.py", line 974, in test_cell_simulate_current_dipole_moment_00
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_t emplatecell.py", line 1013, in test_cell_simulate_current_dipole_moment_01
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_t emplatecell.py", line 1083, in test_cell_tstart_00
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_t emplatecell.py", line 1141, in test_cell_with_recextelectrode_00
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_t emplatecell.py", line 1194, in test_cell_with_recextelectrode_01
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_t emplatecell.py", line 1246, in test_cell_with_recextelectrode_02
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_t emplatecell.py", line 1298, in test_cell_with_recextelectrode_03
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last): File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_t emplatecell.py", line 735, in test_cell_set_point_process_00 self.assertEqual(cell.stimlist[0].hname(), 'IClamp[0]') AssertionError: 'IClamp[1]' != 'IClamp[0]'
Ran 57 tests in 20.041s
Ran 22 tests in 0.029s
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_r ecextelectrode.py", line 580, in test_compare_anisotropic_lfp_methods
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_r ecextelectrode.py", line 525, in test_isotropic_version_of_anisotropic_methods
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_r ecextelectrode.py", line 60, in test_method_linesource
LFP_LFPy = stickSimulation(method='linesource')
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/common .py", line 67, in stickSimulation
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_r ecextelectrode.py", line 165, in test_method_linesource_contact_average_r10n100
contactRadius=10, contactNPoints=100, method='linesource')
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/common .py", line 119, in stickSimulationAveragingElectrode
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_r ecextelectrode.py", line 112, in test_method_linesource_dotprodcoeffs
LFP_LFPy = stickSimulationDotprodcoeffs(method='linesource')
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/common .py", line 174, in stickSimulationDotprodcoeffs
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_r ecextelectrode.py", line 44, in test_method_pointsource
LFP_LFPy = stickSimulation(method='pointsource')
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/common .py", line 67, in stickSimulation
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_r ecextelectrode.py", line 147, in test_method_pointsource_contact_average_r10n100
contactRadius=10, contactNPoints=100, method='soma_as_point')
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/common .py", line 119, in stickSimulationAveragingElectrode
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_r ecextelectrode.py", line 95, in test_method_pointsource_dotprodcoeffs
LFP_LFPy = stickSimulationDotprodcoeffs(method='pointsource')
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/common .py", line 174, in stickSimulationDotprodcoeffs
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_r ecextelectrode.py", line 77, in test_method_soma_as_point
LFP_LFPy = stickSimulation(method='soma_as_point')
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/common .py", line 67, in stickSimulation
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_r ecextelectrode.py", line 183, in test_method_soma_as_point_contact_average_r10n100
contactRadius=10, contactNPoints=100, method='soma_as_point')
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/common .py", line 119, in stickSimulationAveragingElectrode
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_r ecextelectrode.py", line 129, in test_method_soma_as_point_dotprodcoeffs
LFP_LFPy = stickSimulationDotprodcoeffs(method='soma_as_point')
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/common .py", line 174, in stickSimulationDotprodcoeffs
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_r ecextelectrode.py", line 456, in test_slice_shift_invariance_pointsource
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Ran 17 tests in 0.049s
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_n etworkcell.py", line 974, in test_cell_simulate_current_dipole_moment_00
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_n etworkcell.py", line 1013, in test_cell_simulate_current_dipole_moment_01
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_n etworkcell.py", line 1083, in test_cell_tstart_00
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_n etworkcell.py", line 1141, in test_cell_with_recextelectrode_00
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_n etworkcell.py", line 1194, in test_cell_with_recextelectrode_01
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_n etworkcell.py", line 1246, in test_cell_with_recextelectrode_02
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_n etworkcell.py", line 1298, in test_cell_with_recextelectrode_03
stimParams)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 286, in init
kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 664, in set_point_process
exec(command, locals(), globals())
File "
Traceback (most recent call last): File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_n etworkcell.py", line 735, in test_cell_set_point_process_00 self.assertEqual(cell.stimlist[0].hname(), 'IClamp[0]') AssertionError: 'IClamp[2]' != 'IClamp[0]'
Ran 57 tests in 20.257s
Ran 1 test in 0.013s
Ran 6 tests in 0.896s
Ran 6 tests in 0.011s
Ran 18 tests in 0.403s
Ran 4 tests in 0.479s
Ran 5 tests in 0.198s
Ran 1 test in 0.001s
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_p ointprocess.py", line 57, in test_Synapse_00
record_potential=True)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 129, in init
**kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 586, in set_synapse
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_p ointprocess.py", line 73, in test_Synapse_01
record_potential=True)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 129, in init
**kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 586, in set_synapse
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_p ointprocess.py", line 120, in test_Synapse_02
record_potential=True)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 129, in init
**kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 586, in set_synapse
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_p ointprocess.py", line 151, in test_Synapse_03
record_potential=True)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 129, in init
**kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 586, in set_synapse
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_p ointprocess.py", line 182, in test_Synapse_04
record_potential=True)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 129, in init
**kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 586, in set_synapse
exec(command, locals(), globals())
File "
Traceback (most recent call last):
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/test/test_p ointprocess.py", line 214, in test_Synapse_05
record_potential=True)
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/pointproces s.py", line 129, in init
**kwargs))
File "/home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy-2.0.3-py3.6-linux-x86_64.egg/LFPy/cell.py", l ine 586, in set_synapse
exec(command, locals(), globals())
File "
Ran 6 tests in 0.007s
Ran 4 tests in 0.042s
Ran 1 test in 0.002s
Ran 2 tests in 0.872s
OK
[1]+ Done ./test.sh > /dev/null `
@alejoe91 @espenhgn I think I am making some stupid mistakes which I am not being able to understand, since no one else has faced the installation problem that I am facing. Kindly advice on what can be the way forward. This package is really important to me.
Things are being confused a bit. Both /home/neuroelectronics/anaconda3/envs/mearec/bin/python
and .../python3.6m
symlinks /home/neuroelectronics/anaconda3/envs/mearec/bin/python3.6
so it both options execute python v3.6.7. Python 3.6.8 is being provided with your OS.
The LFPy test errors are caused by the fact that your mearec
env is not properly isolated. LFPy is being found in /home/neuroelectronics/.local/lib/python3.6/site-packages/
, which has been installed using the system pip executable (with the --user
argument). Both the conda and system Python looks here because they are the same major version. Look at https://github.com/conda/conda/issues/7173 and see if you understand the problem. One quick fix may be to remove LFPy from the system (rm -r /home/neuroelectronics/.local/lib/python3.6/site-packages/LFPy*
), and possibly other packages that may conflict. You want to use conda installed packages if possible. Then pip-install MEArec without the --user
argument such that it and dependencies ends up in the correct conda environment.
Thank you. Now it works.
I have another question. Is there any way to specify and hence make sure about the number of spikes to be obtained at particular electrode numbers for a chosen probe while generating recordings?
HI @paglabhola
Glad that it works. Unfortunately, you can't specify the number of spikes on a particulare electrode, but you can specify the average frequency of the neurons using the params file.
Code run and error obtained are given below. It seems that temporary template files are not getting generated resulting in: FileNotFoundError: [Errno 2] No such file or directory: '/home/neuroelectronics/.config/spyder-py3/physrot/tmp_30_Neuronexus-32' Kindly help me to resolve this issue.
Code Run: import MEArec as mr import MEAutility
generate templates
templates_params = mr.get_default_templates_params() cell_models_folder = mr.get_default_cell_models_folder()
templates_params['probe']='Neuronexus-32' templates_params['n']=30 templates_params['seed']=0 tempgen = mr.gen_templates(cell_models_folder=cell_models_folder, params= templates_params, verbose=True, delete_tmp=True)
mr.save_template_generator(tempgen, '/home/neuroelectronics/path_to_templates.h5')
generate recordings
recordings_params= mr.get_default_recordings_params() recordings_params['spiketrains']['n_exc'] = 4 recordings_params['spiketrains']['n_inh'] = 2 recordings_params['spiketrains']['duration'] = 30 recordings_params['spiketrains']['seed'] = 0 recordings_params['templates']['seed'] = 1 recordings_params['recordings']['seed'] = 2
recgen= mr.gen_recordings(params=recordings_params, templates='path_to_templates.h5') mr.save_recording_generator(recgen,'path_to_recordings.h5')
Error Obtained:
runfile('/home/neuroelectronics/.config/spyder-py3/temp.py', wdir='/home/neuroelectronics/.config/spyder-py3') Compiling NEURON models Starting 1
Starting 2 L5_TTPC2_cADpyr232_1 1 / 13
L5_NGC_bNAC219_1 2 / 13
Starting 3
L5_TTPC1_cADpyr232_1 3 / 13
Starting 4
Starting 5 L5_STPC_cADpyr232_1 4 / 13
Starting 6
L5_SBC_bNAC219_1 5 / 13
L5_BP_bAC217_1 6 / 13
Starting 8 Starting 7
L5_DBC_bAC217_1 8 / 13
Starting 9 Starting 11 L5_NBC_bAC217_1 7 / 13
Starting 10
L5_BTC_bAC217_1 11 / 13
L5_MC_bAC217_1 10 / 13
Starting 13
Starting 12 L5_UTPC_cADpyr232_1 13 / 13
L5_ChC_cACint209_1 9 / 13
L5_LBC_bAC217_1 12 / 13
Exiting 1 Exiting 2 Exiting 3 Exiting 7 Exiting 5 Exiting 8 Exiting 4 Exiting 6 Exiting 13 Exiting 10 Exiting 11 Exiting 12 Exiting 9
Simulation time: 0.7660350799560547
Traceback (most recent call last):
File "", line 1, in
runfile('/home/neuroelectronics/.config/spyder-py3/temp.py', wdir='/home/neuroelectronics/.config/spyder-py3')
File "/usr/lib/python3/dist-packages/spyder/utils/site/sitecustomize.py", line 705, in runfile execfile(filename, namespace)
File "/usr/lib/python3/dist-packages/spyder/utils/site/sitecustomize.py", line 102, in execfile exec(compile(f.read(), filename, 'exec'), namespace)
File "/home/neuroelectronics/.config/spyder-py3/temp.py", line 18, in
tempgen = mr.gen_templates(cell_models_folder=cell_models_folder, params= templates_params, verbose=True, delete_tmp=True)
File "/usr/local/lib/python3.6/dist-packages/MEArec/generation_tools.py", line 198, in gen_templates tempgen.generate_templates()
File "/usr/local/lib/python3.6/dist-packages/MEArec/generators/templategenerator.py", line 188, in generate_templates templates, locations, rotations, celltypes = load_tmp_eap(tmp_folder)
File "/usr/local/lib/python3.6/dist-packages/MEArec/tools.py", line 148, in load_tmp_eap eaplist = [f for f in os.listdir(templates_folder) if f.startswith('eap')]
FileNotFoundError: [Errno 2] No such file or directory: '/home/neuroelectronics/.config/spyder-py3/physrot/tmp_30_Neuronexus-32'