alberto-antonietti/CerebNEST

CereNEST does not compile for Python 3.8+, missing function cgi.escape()

cristianoalessandro opened this issue ยท 7 comments

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

Supervisor/supervisor#1257

@cristianoalessandro is for sure @Helveg's fault if you switched to Python3.8+ instead of the good old 3.6 ๐Ÿ‘…

Where does this generate_help.py come from, it doesn't seem to be in the source code?

Ok, so it's an upstream bug? Could you report it Albe if there's nothing to be done about it?

nest/nest-simulator@4d8d7dc

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

Good move! ๐Ÿ‘ ๐Ÿ‘