[Bug]: Can't import file via pyscript_config.toml using [files], ModuleNotFoundError #1869
Open
1 task done
Labels
bug
Something isn't working
What happened?
I'm trying to configure pyscript-react using a pyscript_config.toml file which imports a python library file (geometry_generator.py) using [files]. It seems to load the config file but when I try to import from geometry_generator I get "ModuleNotFoundError: No module named 'geometry_generator'"
I have tried every different combination of file location and paths I can think of but I have not been able to load the geometry_generator file successfully. Currently it's located in public.
Below is the contents of my pyscript_config.toml file:
Here is the relevant content of the page.tsx file where I use pyscript-react:
Version
0.0.4
Relevant log output
How to reproduce?
Create Next.js project (using TypeScript), install pyscript-react and its dependencies, create a pyscript_config.toml file and include a python library file using [files] in the config file and try to import from that python library file in the python script within PyScript tags
Code of Conduct
The text was updated successfully, but these errors were encountered: