nest / nest-simulator

The NEST simulator
http://www.nest-simulator.org
GNU General Public License v2.0
544 stars 370 forks source link

When run csa_example.py unknow Python type<class 'csa.connset.ConnectionSet'> #2358

Open yourssmile opened 2 years ago

yourssmile commented 2 years ago

I want to build a network connection through CSA

But when i run csa_example.py

I've come across an error.

File "csa_example.py", line 93, in nest.Connect(pre, post, connspec) File "/home/xc/Desktop/nest-3.2-build/lib/python3.8/site-packages/nest/ll_api.py", line 227, in stack_checker_func return f(*args, **kwargs) File "/home/xc/Desktop/nest-3.2-build/lib/python3.8/site-packages/nest/lib/hl_api_connections.py", line 281, in Connect sps(processed_conn_spec) File "pynestkernel.pyx", line 232, in pynestkernel.NESTEngine.push File "pynestkernel.pyx", line 396, in pynestkernel.python_object_to_datum File "pynestkernel.pyx", line 465, in pynestkernel.python_object_to_datum nest.lib.hl_api_exceptions.PyNESTError: unknown Python type: <class 'csa.connset.ConnectionSet'>

My NEST version is 3.2 installed through source code.

I have installed libneurosim through source code.

hakonsbm commented 2 years ago

PyNEST not recognizing the ConnectionSet object could mean that NEST did not properly link to libneurosim during compilation. Did you use the -Dwith-libneurosim=<path_to_libneurosim_installation> flag when running CMake before compiling NEST? And if so, please paste the "NEST Configuration Summary" that is printed at the end of the CMake output.

github-actions[bot] commented 2 years ago

Issue automatically marked stale!