Dear Hans,

Thank you for your answer and your various pieces of advice! I understand these problems are quite basic, but I still have a problem when doing all the steps you suggested earlier. 
Everything went correctly until I ran ake and make install (see the whole terminal script attached) where I got the following error message:

(nest-simulator-dev) julienballbe@MacBook-Pro-de-Julien NEST % sudo make install

Password:

[  2%] Built target nestutil

[ 25%] Built target sli_lib

[ 53%] Built target nestkernel

[ 94%] Built target models

[ 95%] Built target sli_readline

[ 95%] Built target sli

[ 96%] Built target nest_lib

[ 97%] Built target nest

[ 98%] Built target run_all_cpptests

[100%] Built target pynestkernel

Install the project...

-- Install configuration: ""

Extracting help information. This may take a little while.

-- Installing: /share/doc/nest/help

CMake Error at doc/cmake_install.cmake:56 (file):

  file INSTALL cannot make directory "/share/doc/nest/help": No such file or

  directory.

Call Stack (most recent call first):

  cmake_install.cmake:42 (include)



make: *** [install] Error 1


----------


Can you help me with this issue please? I have been looking for this file but I couldn't find it either. Am I supposed to create it myself? 

Thank you for all the help you can give me,


Best feelings,


Julien BALLBÉ



Le mar. 16 nov. 2021 à 08:10, Hans Ekkehard Plesser <hans.ekkehard.plesser@nmbu.no> a écrit :

 

Dear Julien,

 

As a starting doctoral student in the field of computational neurosciences, I am particularly interested in using NEST in my research works. However, I am a bit confused about the procedure to install NEST on a M1 macbook pro, therefore, I prefer to ask you before doing anything. From what I understood from your website here are the steps that, I suppose, I should do to install NEST properly:

- as I use a M1MAX Mac (MacOS 12.0) , I can't just install nest, I have to build it. To do so:

 

- Download Miniforge for arm64 (from which I will be able to use Conda right?)

 

Yes.

 

- NOT NECESSARY: Install Python 3.9.4 for arm Mac macOS 64-bit universal2 installer

 

- Download the nest source code directly from github (https://github.com/nest/nest-simulator)

 

Yes. Use the most recent released tarball/zip archive of NEST.

 

- Create a conda environment using the following command conda env create -f extras/conda-nest-simulator-dev.yml

 

Yes. IMPORTANT: Since you are using Apple Silicon, you must open the conda-nest-simulator-dev.yml file and remove the following lines:

 

  # Running NEST Server ----

  - flask

  - flask_cors

  - requests

  - uwsgi

  - werkzeug

 

This is because some packages (uwsgi) is not available for M1 yet (last checked two weeks ago).

 

- Activate this environment (  conda activate...)

- Create a build directory outside the NEST source and go into it

- Install cmake package using conda ( conda install -c anaconda cmake)

- Configure NEST by running: cmake -DCMAKE_INSTALL_PREFIX:PATH=<nest_install_dir> <nest_source_dir>

- Once done I can run make. make install. make installcheck

 

Yes to the five above.

 

Here are my questions:

- Is this installation procedure correct?

- Once installed, how can I launch NEST from a python interpreter such as Spyder? Or is it only possible to launch it within a terminal window?

 

You need to make sure that the path to the NEST installation is in your PYTHONPATH. In the Terminal, that is handled by sourcing `nest_vars.sh`. I am off-hand not entirely certain how to make it work in Spyder.

 

- I am quite new to managing packages, so correct me if I am wrong, but have I to install everything using exclusively Conda ?

 

Installing all via Conda makes things a lot easier.

 

- What is the purpose of creating a new environment to build NEST

 

Very briefly, to have all in place you need without cluttering your overall Python setup. There are many more answers to that out on the net, see eg

 

https://www.freecodecamp.org/news/why-you-need-python-environments-and-how-to-manage-them-with-conda-85f155f4353c/

 

I realize how many questions I ask you, and I am very grateful for every advice you could give me.

If it is more convenient for you, we can have a phone call when you want.

 

We can help with NEST-specific issues, but for basic issues of how to install, build and run software it might be more productive to see if you can get help locally?

 

Best,

Hans Ekkehard

 

 

--

Julien BALLBÉ Y SABATÉ

Étudiant en thèse - PhD student

Neurophysiology of Visual Computation

Centre Giovanni Borelli - CNRS UMR 9010

Université de Paris

45 rue des Saint-Pères, 75006 Paris, France

Tel: +33 6 79 03 40 35

_______________________________________________
NEST Users mailing list -- users@nest-simulator.org
To unsubscribe send an email to users-leave@nest-simulator.org


--

Julien BALLBÉ Y SABATÉ

Étudiant en thèse - PhD student

Neurophysiology of Visual Computation

Centre Giovanni Borelli - CNRS UMR 9010

Université de Paris

45 rue des Saint-Pères, 75006 Paris, France

Tel: +33 6 79 03 40 35