jupyterlite / jupyterlite/pyodide-kernel

pyodide option not work in jupyter lite serve

Open
#43 6 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
90
Forks
47
Avg merge
3d 13h
Merged PRs (30d)
11

Description

## Description

I tried to execute `jupyter lite serve --pyodide=pyodide --mathjax-dir=MathJax-2.7.5` after `jupyter lite init--pyodide=pyodide --mathjax-dir=MathJax-2.7.5`. The init command worked, but serve command failed with the following errors.

```
......
. build:pyodide:copy:pyodide
TaskError - taskid:build:pyodide:copy:pyodide
PythonAction Error
Traceback (most recent call last):
File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\doit\action.py", line 437, in execute
returned_value = self.py_callable(*self.args, **kwargs)
File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\jupyterlite\addons\base.py", line 65, in copy_one
shutil.copy2(src, dest)
File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\shutil.py", line 434, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\shutil.py", line 254, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\code\\python\\jupyterlite\\test\\.cache\\pyodide\\pyodide\\pyodide'
```

## Reproduce

1. unzip pyodide and mathjax to the cwd
2. jupyter lite int --pyodide=pyodide --mathjax-dir=MathJax-2.7.5
3. jupyter lite serve --pyodide=pyodide --mathjax-dir=MathJax-2.7.5

## Expected behavior

The `serve` command should work.

## Context

- JupyterLite version: 0.1.0b3
- Operating System and version: Microsoft Windows [Version 10.0.22000.556]
- Browser and version: Chrome 99

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.