Hi Alberto,

it looks like you're using a version of PyNN that does not support NEST 2.20. We'd recommend you upgrade to NEST 3, otherwise you'll have to downgrade PyNN to a version that was written to support NEST2.20. PyNN is a tool independent of NEST and we cannot support you further there.

Best of luck

On Fri, 5 Nov 2021 at 16:09, Alberto <vergani.aa@gmail.com> wrote:
I solved the issue before by changing the NEST_PYTHON_PREFIX with python3.8 path,
but now I am receiving another error and I dont know if the error is more related to PyNN or still to nest installation

Thanks for any hints

In [1]: import pyNN.nest
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
~/.local/lib/python3.8/site-packages/pyNN/nest/simulator.py in __init__(self)
     56         try:
---> 57             nest.Install('pynn_extensions')
     58             self.extensions_loaded = True

AttributeError: module 'nest' has no attribute 'Install'

During handling of the above exception, another exception occurred:

AttributeError                            Traceback (most recent call last)
<ipython-input-1-a37af9de74cb> in <module>
----> 1 import pyNN.nest

~/.local/lib/python3.8/site-packages/pyNN/nest/__init__.py in <module>
     16 import nest
     17
---> 18 from . import simulator
     19 from pyNN import common, recording, errors, space, __doc__
     20 from pyNN.common.control import DEFAULT_MAX_DELAY, DEFAULT_TIMESTEP, DEFAULT_MIN_DELAY

~/.local/lib/python3.8/site-packages/pyNN/nest/simulator.py in <module>
    323 # --- Initialization, and module attributes ------------------------------------
    324
--> 325 state = _State()  # a Singleton, so only a single instance ever exists
    326 del _State

~/.local/lib/python3.8/site-packages/pyNN/nest/simulator.py in __init__(self)
     57             nest.Install('pynn_extensions')
     58             self.extensions_loaded = True
---> 59         except nest.kernel.NESTError as err:
     60             self.extensions_loaded = False
     61         self.initialized = False

AttributeError: module 'nest' has no attribute 'kernel'


Il giorno gio 4 nov 2021 alle ore 14:47 Alberto <vergani.aa@gmail.com> ha scritto:
OK, thanks,

I have installed nest 2.20, but now having this issue related the calling with pyNN

the idea is to use python3.8, but seems it's going to use python2.7, is this the possible issue?

Thanks
Alberto

Python 3.8.10 (default, Sep 28 2021, 16:10:42)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyNN
>>> import pyNN.nest
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/alberto/.local/lib/python3.8/site-packages/pyNN/nest/__init__.py", line 16, in <module>
    import nest
  File "/home/alberto/nest-simulator-2.20.0-build/lib/python2.7/site-packages/nest/__init__.py", line 26, in <module>
    from . import ll_api      # noqa
  File "/home/alberto/nest-simulator-2.20.0-build/lib/python2.7/site-packages/nest/ll_api.py", line 72, in <module>
    from . import pynestkernel as kernel      # noqa
ImportError: dynamic module does not define module export function (PyInit_pynestkernel)

Il giorno gio 4 nov 2021 alle ore 09:54 Robin Gilbert De Schepper <robingilbert.deschepper@unipv.it> ha scritto:
Sorry,the "sudoku" is a typo on my tiny phone keyboard;) that should be:

sudo apt-get install python3-dev

On Thu, 4 Nov 2021, 09:52 Robin Gilbert De Schepper, <robingilbert.deschepper@unipv.it> wrote:
You will have to install the Python development libraries on your system (sudoku apt-get , and/or use the CMake configuration option -DPYTHON_INCLUDE_DIR to point to the folder containing it.

Lucky you, it is also a highly Google-able error: "missing Python.h" should help you out!

Best regards 

On Thu, 4 Nov 2021, 09:49 Alberto, <vergani.aa@gmail.com> wrote:
Dear experts,

I am trying to install nest 2.20.0 from source, but I am receving this error. It seems related to pynest.

Any hints?

Thanks
Alberto

Scanning dependencies of target nest
[ 97%] Building CXX object nest/CMakeFiles/nest.dir/neststartup.cpp.o
[ 97%] Linking CXX executable nest
[ 99%] Built target nest
[ 99%] Building CXX object pynest/CMakeFiles/pynestkernel.dir/pynestkernel.cxx.o
/home/alberto/nest-simulator-2.20.0-build/pynest/pynestkernel.cxx:4:10: fatal error: Python.h: No such file or directory
    4 | #include "Python.h"
      |          ^~~~~~~~~~
compilation terminated.
make[2]: *** [pynest/CMakeFiles/pynestkernel.dir/build.make:68: pynest/CMakeFiles/pynestkernel.dir/pynestkernel.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1030: pynest/CMakeFiles/pynestkernel.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Virus-free. www.avast.com

Il giorno gio 14 ott 2021 alle ore 17:10 Jochen Martin Eppler <j.eppler@fz-juelich.de> ha scritto:

Dear Alberto,

the old releases are still available on GitHub. This includes v2.20.1, which I would recommend over 2.20.0, as it contains a fix for #1394, which could lead to wrong simulation results under certain circumstances.

Cheers,
Jochen!

On 14.10.21 16:35, Alberto wrote:

Dear experts,

I'd like to install the Nest version 2.20.0 instead of the last 3.1.

Is it still available for download?

Thanks
Alberto


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

-- 
Dr. Jochen Martin Eppler
Phone: +49(2461)61-96653
----------------------------------
Simulation Laboratory Neuroscience
Jülich Supercomputing Centre
Institute for Advanced Simulation


------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Volker Rieke
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Dr. Astrid Lambrecht,
Prof. Dr. Frauke Melchior
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------



--
Vergani, AA


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


--
Vergani, AA




--
Vergani, AA


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


--
Robin De Schepper, MSc
Department of Brain and Behavioral Sciences
Unit of Neurophysiology
University of Pavia, Italy
Via Forlanini 6, 27100 Pavia - Italy
Tel: (+39) 038298-7607
http://www-5.unipv.it/dangelo/

Interested in network modelling?
Discover our framework: