Alright, thanks!
I have written a new wrapper_cli.py:
from streamlit.web.cli import main
import sys
sys.argv.append('run')
sys.argv.append('main_st.py')
main()
This works just fine locally.
When I package it the same way, and then run it by double clicking, nothing
happens. When I run it through the terminal as .\wrapper_cli.py, a browser
window opens, strangely pointing to localhost:3000, with the browser
showing "localhost refused to connect".
Any idea how I can start debugging this?
bwoodsend schrieb am Freitag, 29. März 2024 um 23:32:35 UTC+1:
> Never try to run a Python command line entry point from a subprocess. Even
> without PyInstaller involved, there’s no guarantee that it’ll be findable.
> Lookup what the entry point does (in this case calling from
> streamlit.web.cli.main()
> <https://github.com/streamlit/streamlit/blob/b573f8073245bf03e8698e8860bbe41e7938bd9e/lib/setup.py#L157>
>
> and put that in your code instead.
>
>
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyinstaller/0f54469d-9d61-4cc5-abfe-96fe79926916n%40googlegroups.com.