microsoft / microsoft/pxt

Please deprecate Python2

Open
#6,021 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

setup
Dominant language
TypeScript
Stars
2.3k
Forks
641
Avg merge
12h 4m
Merged PRs (30d)
57

Description

When I try building PXT after cloning the following error is generated during npm install after
> node-pre-gyp install --fallback-to-build

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 "3.7.4"
gyp ERR! find Python - version is 3.7.4 - should be >=2.6.0 <3.0.0
gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED

Can you please switch to Python 3? Node-gyp already supports it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the npm install entry point and the node-pre-gyp/node-gyp error shown in the issue, then inspect the build configuration that selects Python. Done means a fresh PXT clone completes npm install using Python 3 without the reported version error.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.