Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

bump all usages of python to at least 3.6 #375

Closed
wants to merge 4 commits into from

Conversation

shiftkey
Copy link
Contributor

@shiftkey shiftkey commented Apr 5, 2021

Found this error while trying to ship a new release:

prebuild-install WARN install No prebuilt binaries found (target=15.13.0 runtime=node arch=x64 libc= platform=linux)

> keytar@8.0.0 build
> node-gyp rebuild

gyp info it worked if it ends with ok
gyp info using node-gyp@8.0.0
gyp info using node@15.13.0 | linux | x64
gyp ERR! find Python 
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - executable path is "/usr/bin/python3"
gyp ERR! find Python - version is "3.5.2"
gyp ERR! find Python - version is 3.5.2 - should be >=3.6.0
gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - executable path is "/usr/bin/python"
gyp ERR! find Python - version is "2.7.12"
gyp ERR! find Python - version is 2.7.12 - should be >=3.6.0
gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
gyp ERR! find Python 
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
gyp ERR! find Python   (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python   npm config set python "/path/to/pythonexecutable"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python 
gyp ERR! configure error 
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack     at PythonFinder.fail (/home/runner/work/node-keytar/node-keytar/node_modules/node-gyp/lib/find-python.js:315:47)
gyp ERR! stack     at PythonFinder.runChecks (/home/runner/work/node-keytar/node-keytar/node_modules/node-gyp/lib/find-python.js:144:21)
gyp ERR! stack     at PythonFinder.<anonymous> (/home/runner/work/node-keytar/node-keytar/node_modules/node-gyp/lib/find-python.js:251:16)
gyp ERR! stack     at PythonFinder.execFileCallback (/home/runner/work/node-keytar/node-keytar/node_modules/node-gyp/lib/find-python.js:282:7)
gyp ERR! stack     at ChildProcess.exithandler (node:child_process:317:7)
gyp ERR! stack     at ChildProcess.emit (node:events:369:20)
gyp ERR! stack     at maybeClose (node:internal/child_process:1067:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)

I think this was missed on the PR or master as the prebuild-install step will skip building the native module, which I have to workaround currently for CodeQL analysis so I might need to re-add that to catch this...

@shiftkey shiftkey closed this Apr 12, 2021
@shiftkey shiftkey deleted the update-latest-python branch April 12, 2021 17:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant