Hi,
I'm happy to hear that you're making some progress.
Actually, the warning is misleading and can be ignored (Ayssar was already kind enough to
open an issue about that,
https://github.com/nest/nestml/issues/731).
The actual error must be occurring in a part of the logs that we are not seeing here, in
particular the output of the C++ compiler. Sometimes, when you run in a Jupyter notebook,
this output is sent to the console that you started the Jupyter server from. Sometimes it
also appears as output text in one of the notebook cells. Could you post those additional
parts of the logs?
Cheers!
Charl
On Mon, Feb 28, 2022, at 13:38, Salvo T wrote:
Dear NESTML Users,
In the last post I fixed a problem that was related to the fact that in
the 'izhikevich_solution.nestml' the first line was commented.
Now, after following the guide in
"https://nestml.readthedocs.io/en/latest/installation.html" related to
the NESTML
installation, I tried to follow the NESTML Izhikevich tutorial in
"https://nestml.readthedocs.io/en/latest/tutorials/izhikevich/nestml_izhikevich_tutorial.html".
After installing the cmake with "pip install cmake", when I execute the
following part of the tutorial:
generate_nest_target(input_path="izhikevich_solution.nestml",
target_path="/tmp/nestml-component",
logging_level="ERROR",
codegen_opts={"nest_path":
NEST_SIMULATOR_INSTALL_LOCATION})
I obtain the following error:
Warning: PyGSL is not available. The stiffness test will be skipped.
Warning: No module named 'pygsl'
Option "nest_path" does not exist in builder
---------------------------------------------------------------------------
CalledProcessError Traceback (most recent call
last)
/opt/data/nestml/pynestml/codegeneration/nest_builder.py in build(self)
149 try:
--> 150 subprocess.check_call(make_all_cmd,
stderr=subprocess.STDOUT, shell=shell,
151
cwd=str(os.path.join(target_path)))
/usr/lib/python3.8/subprocess.py in check_call(*popenargs, **kwargs)
363 cmd = popenargs[0]
--> 364 raise CalledProcessError(retcode, cmd)
365 return 0
CalledProcessError: Command '['make', 'all']' returned non-zero
exit status 2.
During handling of the above exception, another exception occurred:
GeneratedCodeBuildException Traceback (most recent call last)
<ipython-input-2-f0909be085f4> in <module>
----> 1 generate_nest_target(input_path="izhikevich_solution.nestml",
2 target_path="/tmp/nestml-component",
3 module_name="nestml_izhikevich_module",
4 suffix="_nestml",
5 logging_level="ERROR",
/opt/data/nestml/pynestml/frontend/pynestml_frontend.py in
generate_nest_target(input_path, target_path, install_path,
logging_level, module_name, store_log, suffix, dev, codegen_opts)
181 A dictionary containing additional options for the
target code generator.
182 """
--> 183 generate_target(input_path, target_platform="NEST",
target_path=target_path, logging_level=logging_level,
184 module_name=module_name,
store_log=store_log, suffix=suffix, install_path=install_path,
185 dev=dev, codegen_opts=codegen_opts)
/opt/data/nestml/pynestml/frontend/pynestml_frontend.py in
generate_target(input_path, target_platform, target_path, install_path,
logging_level, module_name, store_log, suffix, dev, codegen_opts)
150 FrontendConfiguration.set_codegen_opts(codegen_opts)
151
--> 152 if not process() == 0:
153 raise Exception("Error(s) occurred while processing the
model")
154
/opt/data/nestml/pynestml/frontend/pynestml_frontend.py in process()
278
options=FrontendConfiguration.get_codegen_opts())
279 if _builder is not None:
--> 280 _builder.build()
281
282 if FrontendConfiguration.store_log:
/opt/data/nestml/pynestml/codegeneration/nest_builder.py in build(self)
151
cwd=str(os.path.join(target_path)))
152 except subprocess.CalledProcessError as e:
--> 153 raise GeneratedCodeBuildException('Error occurred
during \'make all\'! More detailed error messages can be found in
stdout.')
154
155 # finally execute make install
GeneratedCodeBuildException: Error occurred during 'make all'! More
detailed error messages can be found in stdout.
So, the "nest_path" keyword does not exist. Can anyone help me?
Best,
Salvo
_______________________________________________
NEST Users mailing list -- users(a)nest-simulator.org
To unsubscribe send an email to users-leave(a)nest-simulator.org