Hi Vittorio,
although I cannot help with the make error I might be able to help you troubleshoot the import issue. I'm assuming that the `nest-simulator` folder you work in is the cloned git repository or downloaded source folder. In this folder is another folder called "nest", and when you "import nest" from that directory, Python will assume that this is the Python module you are looking for. If you instead execute "import nest; print(dir(nest))" you will most likely find that to Python this does not contain any NEST specific attributes, it's an empty module, not the actual Python bindings of nest. It's just quite unfortunate that Python is pretty proud for "successfully importing" this irrelevant folder called "nest" ;)
Whatever you do going forward, avoid running Python inside of the `nest-simulator` source code folder!
You have either not succeeded in installing the Python bindings (check the CMake logs, seems most likely because of the make error), or you haven't succeeded in making the bindings discoverable (Try `source <nest-install>/bin/nest_vars.sh` then importing nest in Python again)
Il giorno mar 12 gen 2021 alle ore 15:55 Vittorio De Falco < deltafi.mat@live.it> ha scritto:
Dear Users of NEST,
I have downloaded and installed nest on my MAC. I was able to configure it. When I launch make I receive the following error
Undefined symbols for architecture x86_64:
"___kmpc_critical", referenced from:
SLIInterpreter::message(int, char const*, char const*, char const*)
const in interpret.cc.o
"___kmpc_end_critical", referenced from:
SLIInterpreter::message(int, char const*, char const*, char const*)
const in interpret.cc.o
"___kmpc_global_thread_num", referenced from:
SLIInterpreter::message(int, char const*, char const*, char const*)
const in interpret.cc.o
"_omp_in_parallel", referenced from:
Name::insert(std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&) in name.cc.o
ld: symbol(s) not found for architecture x86_64
clang: *error: *linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [sli/libsli.dylib] Error 1
make[1]: *** [sli/CMakeFiles/sli_lib.dir/all] Error 2
make: *** [all] Error 2
I have already installed it successfully the previous week, but for example I have problem when I launch an example code from NEST (one_neuron.py), because import nest is recognised, while "import nest.voltage_trace" is not found
ModuleNotFoundError: No module named 'nest.voltage_trace'
Sorry I am a little bit confused. When I try to launch a code in a folder different from the nest-simulator folder "import nest" is not recognised. Could you please explain me better how to solve such an issue?
Thank you very much for your support. Best, Vittorio
- Postdoctoral Researcher in Mathematics
- University of Naples "Federico II"
- Department of Mathematics and Application "R. Caccioppoli"
- Via Cintia, IT-80126 Naples, Italy
- *CELL*: +39 340 544 70 15
NEST Users mailing list -- users@nest-simulator.org To unsubscribe send an email to users-leave@nest-simulator.org