PyNode icon indicating copy to clipboard operation
PyNode copied to clipboard

Fails to install with Python 3.9

Open apowers313 opened this issue 2 years ago • 1 comments

Apparently Python deprecated some functions that PyNode is using:

Py_DEPRECATED(3.9) PyAPI_FUNC(int) PyEval_ThreadsInitialized(void); Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);

Full gyp error log is here: 2023-05-29T21_24_06_268Z-debug.log

apowers313 avatar May 29 '23 22:05 apowers313

Turns out the deprecated functions are a red herring. The actual problem is this:

ld: -stack_size option can only be used when linking a main executable

If I edit build/PyNode.target.mk and remove the flag -Wl,-stack_size,1000000 then node-gyp build completes successfully. Note that the build/PyNode.target.mk file is automatically generated. No idea what is adding that flag to the make file.

apowers313 avatar May 29 '23 22:05 apowers313