CereNEST does not compile for Python 3.8+, missing function cgi.escape()
cristianoalessandro opened this issue ยท 7 comments
cristianoalessandro commented
Looks like cgi.escape() was removed in Python 3.8+, so CerebNEST does not compile
Traceback (most recent call last):
File "generate_help.py", line 135, in <module>
line = cgi.escape(line)
AttributeError: module 'cgi' has no attribute 'escape'
CMakeFiles/generate_help.dir/build.make:57: recipe for target 'generate_help' failed
make[2]: *** [generate_help] Error 1
CMakeFiles/Makefile2:173: recipe for target 'CMakeFiles/generate_help.dir/all' failed
make[1]: *** [CMakeFiles/generate_help.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
alberto-antonietti commented
@cristianoalessandro is for sure @Helveg's fault if you switched to Python3.8+ instead of the good old 3.6 ๐
Helveg commented
Where does this generate_help.py
come from, it doesn't seem to be in the source code?
alberto-antonietti commented
It's the NEST help generator:
https://github.com/nest/nest-simulator/blob/master/extras/help_generator/generate_help.py
Helveg commented
Ok, so it's an upstream bug? Could you report it Albe if there's nothing to be done about it?
alberto-antonietti commented
Already fixed in the master, but we are using NEST 2.18.
@cristianoalessandro I suggest to just comment that line out when compiling on your PC
cristianoalessandro commented
Python 3.8+ also breaks the make of Nest (they are also fixing it already
according to the github). I have switched back to Python 3.6, which works
just fine.
โฆOn Tue, Jul 21, 2020 at 9:47 AM Alberto Antonietti ***@***.***> wrote:
***@***.***
<nest/nest-simulator@4d8d7dc>
Already fixed in the master, but we are using NEST 2.18.
@cristianoalessandro <https://github.com/cristianoalessandro> I suggest
to just comment that line out when compiling on your PC
โ
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJNSRLGQL7JROIEPXLXCHADR4VBX7ANCNFSM4O7NEXVQ>
.
alberto-antonietti commented
Good move! ๐ ๐