When installing Nest, I encountered the following error " Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/yao/Documents/nest-simulator-2.16.0-build/lib/python2.7/site-packages/nest/__init__.py", line 70, in <module> from . import pynestkernel as _kernel # noqa ImportError: dynamic module does not define module export function (PyInit_pynestkernel) " I tried nest 2.16.0, nest 2.20.0, and nest 2.18.0, but all encountered this error. I haven't encountered it before, so I would like to ask for advice on how to do it
Hi,
Can you give me a few more insights: What operating system are you using? Are you using any form of virtualization?
Python 2.7 has reached the end of its lifetime. NEST v3.6 is our most current release, which supports the latest versions of Python. We recommend using this.
Best
Steffen
Am 23.11.23 um 03:54 schrieb 1538356357@qq.com:
When installing Nest, I encountered the following error " Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/yao/Documents/nest-simulator-2.16.0-build/lib/python2.7/site-packages/nest/__init__.py", line 70, in <module> from . import pynestkernel as _kernel # noqa ImportError: dynamic module does not define module export function (PyInit_pynestkernel) " I tried nest 2.16.0, nest 2.20.0, and nest 2.18.0, but all encountered this error. I haven't encountered it before, so I would like to ask for advice on how to do it _______________________________________________ NEST Users mailing list -- users@nest-simulator.org To unsubscribe send an email to users-leave@nest-simulator.org
Thank you very much for your reply. I downloaded the source code from Github and installed it on the Ubuntu system. My Python environment is 3.8.10. I also installed Nest3.3 and it ran successfully. Only Nest2. X series will have this issue。
Actually, there will be no errors during the installation process. After completing the environment configuration and testing in the Python environment, I will encounter this error when import Nest Python 3.8.10 (default, May 26 2023, 14:05:08) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.
import nest
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/yao/Documents/nest-simulator-2.18.0-build/lib/python2.7/site-packages/nest/__init__.py", line 26, in <module> from . import ll_api # noqa File "/home/yao/Documents/nest-simulator-2.18.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)
Hi
there may be a version mix-up of Python. It seems that you have built NEST with python 2.7, but you want to run it with python 3.8. This leads to problems. These old NEST versions do not support the latest python.
Best
Steffen
Am 23.11.23 um 07:50 schrieb 1538356357@qq.com:
Thank you very much for your reply. I downloaded the source code from Github and installed it on the Ubuntu system. My Python environment is 3.8.10. I also installed Nest3.3 and it ran successfully. Only Nest2. X series will have this issue。
Actually, there will be no errors during the installation process. After completing the environment configuration and testing in the Python environment, I will encounter this error when import Nest Python 3.8.10 (default, May 26 2023, 14:05:08) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.
import nest
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/yao/Documents/nest-simulator-2.18.0-build/lib/python2.7/site-packages/nest/__init__.py", line 26, in <module> from . import ll_api # noqa File "/home/yao/Documents/nest-simulator-2.18.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) _______________________________________________ NEST Users mailing list -- users@nest-simulator.org To unsubscribe send an email to users-leave@nest-simulator.org