Hi, I'm getting a strange error when running the examples (stochkvcell.py and opt_l5pc.py).
After reaching the 'run' call, the program hangs for a while, then prints this error:
(bpopt_env) Amans-MacBook-Pro:stochkv amanaberra$ python stochkvcell.py
Exception in thread Thread-3:
Traceback (most recent call last):
File "/opt/anaconda3/envs/bpopt_env/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/opt/anaconda3/envs/bpopt_env/lib/python3.7/threading.py", line 870, in run
self._target(self._args, *self._kwargs)
File "/opt/anaconda3/envs/bpopt_env/lib/python3.7/site-packages/pebble/pool/process.py", line 178, in message_manager_loop
pool_manager.process_next_message(SLEEP_UNIT)
File "/opt/anaconda3/envs/bpopt_env/lib/python3.7/site-packages/pebble/pool/process.py", line 210, in process_next_message
message = self.worker_manager.receive(timeout)
File "/opt/anaconda3/envs/bpopt_env/lib/python3.7/site-packages/pebble/pool/process.py", line 342, in receive
return self.pool_channel.recv()
File "/opt/anaconda3/envs/bpopt_env/lib/python3.7/site-packages/pebble/pool/channel.py", line 63, in recv
return self.reader.recv()
File "/opt/anaconda3/envs/bpopt_env/lib/python3.7/multiprocessing/connection.py", line 250, in recv
buf = self._recv_bytes()
File "/opt/anaconda3/envs/bpopt_env/lib/python3.7/multiprocessing/connection.py", line 407, in _recv_bytes
buf = self._recv(4)
File "/opt/anaconda3/envs/bpopt_env/lib/python3.7/multiprocessing/connection.py", line 383, in _recv
raise EOFError
EOFError
Traceback (most recent call last):
File "stochkvcell.py", line 173, in <module>
main()
File "stochkvcell.py", line 135, in main
run_stochkv_model(deterministic=deterministic)
File "stochkvcell.py", line 103, in run_stochkv_model
sim=nrn)
File "/opt/anaconda3/envs/bpopt_env/lib/python3.7/site-packages/bluepyopt/ephys/evaluators.py", line 160, in run_protocol
timeout=timeout)
File "/opt/anaconda3/envs/bpopt_env/lib/python3.7/site-packages/bluepyopt/ephys/protocols.py", line 235, in run
responses = tasks.result()
File "/opt/anaconda3/envs/bpopt_env/lib/python3.7/concurrent/futures/_base.py", line 435, in result
return self.get_result()
File "/opt/anaconda3/envs/bpopt_env/lib/python3.7/concurrent/futures/_base.py", line 384, in get_result
raise self._exception
pebble.common.ProcessExpired: Abnormal termination
Hi, I get the following error after I run nrn = ephys.simulators.NrNSimulator() in simplecell.ipynb:
/Users/jyang/opt/anaconda3/lib/python3.7/site-packages/bluepyopt/ephys/simulators.py:75: UserWarning: Unable to find Neuron hoc shared library in /Applications/NEURON-7.7/nrn/lib/python/neuron, not disabling banner
'not disabling banner' % nrnpy_path)
Could you please look into it? Thanks in advance.
@wvangeit , thanks for the response. You're right-- it doesn't stop the execution itself, but I get the following error message when I run the next line 'responses = twostep_protocol.run(cell_model=simple_cell, param_values=default_params, sim=nrn)':
ProcessExpired Traceback (most recent call last)
<ipython-input-16-b41867be1955> in <module>
1 default_params = {'gnabar_hh': 0.1, 'gkbar_hh': 0.03}
----> 2 responses = twostep_protocol.run(cell_model=simple_cell, param_values=default_params, sim=nrn)
~/opt/anaconda3/lib/python3.7/site-packages/bluepyopt/ephys/protocols.py in run(self, cell_model, param_values, sim, isolate, timeout)
81 sim=sim,
82 isolate=isolate,
---> 83 timeout=timeout)
84 except TypeError as e:
85 if "unexpected keyword" in str(e):
~/opt/anaconda3/lib/python3.7/site-packages/bluepyopt/ephys/protocols.py in run(self, cell_model, param_values, sim, isolate, timeout)
233 timeout=timeout)
234 try:
--> 235 responses = tasks.result()
236 except TimeoutError:
237 logger.debug('SweepProtocol: task took longer than '
~/opt/anaconda3/lib/python3.7/concurrent/futures/_base.py in result(self, timeout)
433 raise CancelledError()
434 elif self._state == FINISHED:
--> 435 return self.__get_result()
436 else:
437 raise TimeoutError()
~/opt/anaconda3/lib/python3.7/concurrent/futures/_base.py in get_result(self)
382 def get_result(self):
383 if self._exception:
--> 384 raise self._exception
385 else:
386 return self._result
ProcessExpired: Abnormal termination
Hi @wvangeit and hi everyone, I have this strange error :
File "/home/miseno/.local/lib/python3.6/site-packages/bluepyopt/ephys/morphologies.py", line 128, in instantiate
imorphology.input(str(self.morphology_path))
RuntimeError: hoc error
when I run a code that works perfectly on another machine. Can you please point me to the right direction to solve the problem?
Thank you.
Ilaria