WARNING Cannot use Cython, a test compilation failed: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ (DistutilsPlatformError) [brian2.codegen.runtime.cython_rt.cython_rt.failed_compile_test]
INFO Cannot use compiled code, falling back to the numpy code generation target. Note that this will likely be slower than using compiled code. Set the code generation to numpy manually to avoid this message:
prefs.codegen.target = "numpy" [brian2.devices.device.codegen_fallback]
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 <http://brian.discourse.group/>, or to the issue tracker at <https://github.com/brian-team/brian2/issues>. Please include this file with debug information in your report: C:\Users\ADMINI~1\AppData\Local\Temp\brian_debug_5kbgoqf9.log Additionally, you can also include a copy of the script that was run, available at: C:\Users\ADMINI~1\AppData\Local\Temp\brian_script_4o_qvvt_.py You can also include a copy of the redirected std stream outputs, available at C:\Users\ADMINI~1\AppData\Local\Temp\brian_stdout_tn2txiom.log and C:\Users\ADMINI~1\AppData\Local\Temp\brian_stderr_tt_5xzh5.log Thanks! [brian2]
Traceback (most recent call last):
File "F:\Anaconda3\envs\mybrain\lib\site-packages\brian2\core\network.py", line 897, in before_run
obj.before_run(run_namespace)
File "F:\Anaconda3\envs\mybrain\lib\site-packages\brian2\groups\group.py", line 1143, in before_run
self.create_code_objects(run_namespace)
File "F:\Anaconda3\envs\mybrain\lib\site-packages\brian2\groups\group.py", line 1136, in create_code_objects
code_object = self.create_default_code_object(run_namespace)
File "F:\Anaconda3\envs\mybrain\lib\site-packages\brian2\groups\group.py", line 1129, in create_default_code_object
codeobj_class=self.codeobj_class
File "F:\Anaconda3\envs\mybrain\lib\site-packages\brian2\codegen\codeobject.py", line 396, in create_runner_codeobj
check_units_statements(c, variables)
File "F:\Anaconda3\envs\mybrain\lib\site-packages\brian2\equations\unitcheck.py", line 99, in check_units_statements
expr_unit = parse_expression_dimensions(expr, variables)
File "F:\Anaconda3\envs\mybrain\lib\site-packages\brian2\parsing\expressions.py", line 375, in parse_expression_dimensions
raise DimensionMismatchError(error_msg)
brian2.units.fundamentalunits.DimensionMismatchError: Expression "g_ampa + int(incoming_spikes > 3) * 0.1" uses inconsistent units ("g_ampa" has unit S; "int(incoming_spikes > 3) * 0.1" has unit 1)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:/Users/Administrator/Desktop/brian2_demo.py", line 91, in <module>
run(1*second)
File "F:\Anaconda3\envs\mybrain\lib\site-packages\brian2\units\fundamentalunits.py", line 2434, in new_f
result = f(*args, **kwds)
File "F:\Anaconda3\envs\mybrain\lib\site-packages\brian2\core\magic.py", line 374, in run
namespace=namespace, profile=profile, level=2+level)
File "F:\Anaconda3\envs\mybrain\lib\site-packages\brian2\core\magic.py", line 232, in run
namespace=namespace, profile=profile, level=level+1)
File "F:\Anaconda3\envs\mybrain\lib\site-packages\brian2\core\base.py", line 278, in device_override_decorated_function
return func(*args, **kwds)
File "F:\Anaconda3\envs\mybrain\lib\site-packages\brian2\units\fundamentalunits.py", line 2434, in new_f
result = f(*args, **kwds)
File "F:\Anaconda3\envs\mybrain\lib\site-packages\brian2\core\network.py", line 1008, in run
self.before_run(namespace)
File "F:\Anaconda3\envs\mybrain\lib\site-packages\brian2\core\base.py", line 278, in device_override_decorated_function
return func(*args, **kwds)
File "F:\Anaconda3\envs\mybrain\lib\site-packages\brian2\core\network.py", line 899, in before_run
raise BrianObjectException("An error occurred when preparing an object.", obj) from ex
brian2.core.base.BrianObjectException: Error encountered with object named "synapses_run_regularly".
Object was created here (most recent call only, full details in debug log):
File "C:/Users/Administrator/Desktop/brian2_demo.py", line 53, in <module>
incoming_spikes = 0''', when='after_synapses')
An error occurred when preparing an object. (See above for original error message and traceback.)
Process finished with exit code 1