ERROR Brian 2 encountered an unexpected error. If you think this is a bug in Brian 2, please report this issue either to the discourse forum at , or to the issue tracker at . Please include this file with debug information in your report: /tmp/brian_debug_uqjbzqto.log Additionally, you can also include a copy of the script that was run, available at: /tmp/brian_script_jlicglgz.py Thanks! [brian2]
Traceback (most recent call last):
File "/home/wxie/local_pkgs/brian2/brian2/groups/group.py", line 351, in state
var = self.variables[name]
File "/home/wxie/local_pkgs/brian2/brian2/core/variables.py", line 1453, in __getitem__
return self._variables[item]
KeyError: 'implementations'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/wxie/local_pkgs/brian2/brian2/groups/group.py", line 387, in __getattr__
return self.state(name, use_units)
File "/home/wxie/local_pkgs/brian2/brian2/groups/group.py", line 353, in state
raise KeyError(f"State variable {name} not found.") from exc
KeyError: 'State variable implementations not found.'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/wxie/local_pkgs/brian2/brian2/core/network.py", line 892, in before_run
obj.before_run(run_namespace)
File "/home/wxie/local_pkgs/brian2/brian2/groups/group.py", line 1137, in before_run
self.create_code_objects(run_namespace)
File "/home/wxie/local_pkgs/brian2/brian2/groups/group.py", line 1130, in create_code_objects
code_object = self.create_default_code_object(run_namespace)
File "/home/wxie/local_pkgs/brian2/brian2/groups/group.py", line 1112, in create_default_code_object
self.codeobj = create_runner_codeobj(group=self.group,
File "/home/wxie/local_pkgs/brian2/brian2/codegen/codeobject.py", line 424, in create_runner_codeobj
all_keywords = [_gather_compiler_kwds(var, codeobj_class)
File "/home/wxie/local_pkgs/brian2/brian2/codegen/codeobject.py", line 424, in
all_keywords = [_gather_compiler_kwds(var, codeobj_class)
File "/home/wxie/local_pkgs/brian2/brian2/codegen/codeobject.py", line 239, in _gather_compiler_kwds
all_kwds.append(_gather_compiler_kwds(dependency,
File "/home/wxie/local_pkgs/brian2/brian2/codegen/codeobject.py", line 235, in _gather_compiler_kwds
implementation = function.implementations[codeobj_class]
File "/home/wxie/local_pkgs/brian2/brian2/groups/group.py", line 390, in __getattr__
raise AttributeError(f"No attribute with name {name}")
AttributeError: No attribute with name implementations
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "example.py", line 25, in
run(0.35*ms, report='text')
File "/home/wxie/local_pkgs/brian2/brian2/units/fundamentalunits.py", line 2428, in new_f
result = f(*args, **kwds)
File "/home/wxie/local_pkgs/brian2/brian2/core/magic.py", line 377, in run
return magic_network.run(duration, report=report, report_period=report_period,
File "/home/wxie/local_pkgs/brian2/brian2/core/magic.py", line 230, in run
Network.run(self, duration, report=report, report_period=report_period,
File "/home/wxie/local_pkgs/brian2/brian2/core/base.py", line 291, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "/home/wxie/local_pkgs/brian2/brian2/devices/cpp_standalone/device.py", line 1420, in network_run
net.before_run(namespace)
File "/home/wxie/local_pkgs/brian2/brian2/core/base.py", line 293, in device_override_decorated_function
return func(*args, **kwds)
File "/home/wxie/local_pkgs/brian2/brian2/core/network.py", line 894, in before_run
raise BrianObjectException("An error occurred when preparing an object.", obj) from ex
brian2.core.base.BrianObjectException: Error encountered with object named 'neurongroup_run_regularly'.
Object was created here (most recent call only, full details in debug log):
File 'example.py', line 24, in
input_neurons.run_regularly('rate=spike_rate(t, i)*kHz', dt=DT)
An error occurred when preparing an object. (See above for original error message and traceback.)