Closed kdheepak closed 1 week ago
Version 1.32.0 appears to be working fine:
Hi @kdheepak!
I tried in fresh environments, as well as upgrading from an old version, using both pip
and conda
, but everything seemed to work as expected. I didn't try using poetry, so it could be that the issue is isolated to poetry. I'll give that a try soon. Is the project you experienced this with new, or did you upgrade from a previous version of Solara?
I upgraded from a previous version but also deleted the poetry.lock file and was still able to reproduce this issue, so that was effectively a new project.
This was happening on Windows btw
I tried it on windows and couldn't reproduce the issue. This worked for me:
micromamba create -n poetry-solara -c conda-forge python=3.11 pip poetry
micromamba activate poetry-solara
poetry new poetry-solara
cd .\poetry-solara\
poetry add solara
notepad app.py
solara run app.py
From your screenshot, Python thinks solara is a namespace package (probably an empty directory left over for unknown reasons?). You can take a look at solara.__path__
to debug this yourself, possibly remove this directory by hand.
I have the following project:
however when I try to import solara, I have issues:
Is there an issue with bundling perhaps?