INFO The following preferences have been changed for Brian2GeNN, reset them manually if you use a different device later in the same script: codegen.loop_invariant_optimisations, core.network.default_schedule [brian2.devices.genn] running brian code generation ... building genn executable ... ERROR Brian 2 encountered an unexpected error. If you think this is bug in Brian 2, please report this issue either to the mailing list at , or to the issue tracker at . Please include this file with debug information in your report: /tmp/brian_debug_zftk8ara.log Additionally, you can also include a copy of the script that was run, available at: /tmp/brian_script_fc3nyjs_.py You can also include a copy of the redirected std stream outputs, available at /tmp/brian_stdout_wvefnbs6.log and /tmp/brian_stderr_y8gyjw51.log Thanks! [brian2] Traceback (most recent call last): File "Brian2Cuda.py", line 21, in run(duration) File "/home/ahish/.local/lib/python3.6/site-packages/brian2/units/fundamentalunits.py", line 2375, in new_f result = f(*args, **kwds) File "/home/ahish/.local/lib/python3.6/site-packages/brian2/core/magic.py", line 371, in run namespace=namespace, profile=profile, level=2+level) File "/home/ahish/.local/lib/python3.6/site-packages/brian2/core/magic.py", line 231, in run namespace=namespace, profile=profile, level=level+1) File "/home/ahish/.local/lib/python3.6/site-packages/brian2/core/base.py", line 274, in device_override_decorated_function return getattr(curdev, name)(*args, **kwds) File "/home/ahish/.local/lib/python3.6/site-packages/brian2genn/device.py", line 1634, in network_run level=level + 1) File "/home/ahish/.local/lib/python3.6/site-packages/brian2/devices/cpp_standalone/device.py", line 1376, in network_run self.build(direct_call=False, **self.build_options) File "/home/ahish/.local/lib/python3.6/site-packages/brian2genn/device.py", line 782, in build self.compile_source(debug, directory, use_GPU) File "/home/ahish/.local/lib/python3.6/site-packages/brian2genn/device.py", line 1000, in compile_source check_call(args, cwd=directory, env=env) File "/usr/lib/python3.6/subprocess.py", line 306, in check_call retcode = call(*popenargs, **kwargs) File "/usr/lib/python3.6/subprocess.py", line 287, in call with Popen(*popenargs, **kwargs) as p: File "/usr/lib/python3.6/subprocess.py", line 729, in __init__ restore_signals, start_new_session) File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: '/home/ahish/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ahish/SNN_MNIST/Brian2GeNN/genn/bin/lib/bin/genn-buildmodel.sh': '/home/ahish/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ahish/SNN_MNIST/Brian2GeNN/genn/bin/lib/bin/genn-buildmodel.sh' ahish@aeoonlabpc:~/SNN_MNIST/Brian2GeNN$ python2 Brian2Cuda.py