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

packages required when using pyodideUrl mount option #1007

Closed
hoishing opened this issue Jul 8, 2024 · 2 comments · Fixed by #1010
Closed

packages required when using pyodideUrl mount option #1007

hoishing opened this issue Jul 8, 2024 · 2 comments · Fixed by #1010

Comments

@hoishing
Copy link

hoishing commented Jul 8, 2024

I tried to provide my own pyodide in order to minimize the first loading time using the pyodideUrl mount option. If I use the full distribution it's fine. However if I use the core pyodide, I will get module not found error for the following packages:

  • micorpip
  • packaging
  • typing_extensions
  • protobuf
  • cachetools

after copying these packages to the core pyodide folder everything run fine again.

I would like to ask, are these packages all I needed when using my own pyodide distribution? I seem can't find any documentation about it. Thanks ~

@whitphx
Copy link
Owner

whitphx commented Jul 8, 2024

Hi,

are these packages all I needed when using my own pyodide distribution?

Yes. micropip is used to install all the required packages including streamlit, and other packages are required by the streamlit package.

So, I recommend to serve the full distribution.
Even if the full ver. is used, only required packages are loaded to the stlite app, so it shouldn't affect the initial loading time anyway.

I will update the doc about this.

@hoishing
Copy link
Author

hoishing commented Jul 8, 2024

thanks a lot 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants