I'm trying to create an executable from a streamlit app using stlite. I need the app to read and write files on the local filesystem, so I followed these explanations. Even with the example provided here, I always get an error like this:
Error during boot up
Only URLs with a scheme in: file, data, node, and electron are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
A popup also shows the trace (sorry for the screenshot, the popup doesn't let me select the text):
I thought that this had to do with the way the path is specified in package.json:
"nodefsMountpoints": {
"/mnt": "."
}
so I tried a few variants, with file:///c:/...
but it always ended with the same error.
Any suggestion welcome, thanks!
This error was solved in stlite 0.58.1, thanks to the author!