jupyterlite / xeus-python-kernel

xeus-python in JupyterLite
https://xeus-python-kernel.readthedocs.io
BSD 3-Clause "New" or "Revised" License
30 stars 19 forks source link

build fails on Windows11/conda FileNotFoundError #163

Open davidmnilsson opened 10 months ago

davidmnilsson commented 10 months ago

Description

Build fails with: FileNotFoundError: [Errno 2] No such file or directory: '\tmp\xeus-python-kernel\envs\xeus-python-kernel\Scripts/pip-script.py'

Reproduce

  1. conda install -c conda-forge jupyterlite-xeus-python
  2. jupyter lite build

Error: Executing transaction: done [LiteBuildApp] ERROR | [lite] [post_build] [jupyterlite-xeus-python] [ERR] [Errno 2] No such file or directory: '\tmp\xeus-python-kernel\envs\xeus-python-kernel\Scripts/pip-script.py' Traceback (most recent call last): File "C:\Users\DavidNilsson\anaconda3\envs\xeus-python-kernel\Lib\site-packages\doit\doit_cmd.py", line 294, in run return command.parse_execute(args) ... File "C:\Users\DavidNilsson\anaconda3\Lib\shutil.py", line 256, in copyfile with open(src, 'rb') as fsrc: ^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '\tmp\xeus-python-kernel\envs\xeus-python-kernel\Scripts/pip-script.py'

Expected behavior

Two issues,

  1. it's looking for a linux \tmp style path while on Windows it's on (in the log): environment location: C:\tmp\xeus-python-kernel\envs\xeus-python-kernel
  2. The folder and file Scripts/pip-script.py doesn't exist in C:\tmp\xeus-python-kernel...

Context

Building with the jupyterlite with pyodide-kernel works fine, but not with Xeus. Tried multiple conda env setups, same issue. Logs attached. Please advise. XeusBuildIssueFileNotFound.txt