Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run build:py error on Mac #56

Open
yiliang114 opened this issue Sep 5, 2023 · 1 comment
Open

npm run build:py error on Mac #56

yiliang114 opened this issue Sep 5, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@yiliang114
Copy link

Description

image

Reproduce

  1. Git clone this repo
  2. npm run bootstrap
  3. npm run build

Expected behavior

Context

  • JupyterLite version: Version 0.1.2
  • Operating System and version: Mac 12.2.1 (21D62)
  • Browser and version: Chrome 115.0.5790.170
Browser Output
➜  pyodide-kernel git:(main) ✗ npm run build:py

@jupyterlite/pyodide-kernel@0.1.1 build:py
python scripts/generate-wheels-js.py

File "scripts/generate-wheels-js.py", line 16
or shutil.which(f"{cmd}.exe")
^
SyntaxError: invalid syntax
npm ERR! Lifecycle script build:py failed with error:
npm ERR! Error: command failed
npm ERR! in workspace: @jupyterlite/pyodide-kernel@0.1.1

@yiliang114 yiliang114 added the bug Something isn't working label Sep 5, 2023
@yiliang114
Copy link
Author

image

In the Mac environment, It seems that because the python2 is installed by default and cannot be modified, even if the python3 specified running file is used, it seems that it will go into the logic of python2 execution, resulting in syntax errors and unable to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant