Theme picker causes error
sebovzeoueb opened this issue · comments
I tried to use shinyswatch.theme_picker_ui()
and shinyswatch.theme_picker_server()
in my app but I got the following error:
File "F:\concierge\Lib\site-packages\starlette\staticfiles.py", line 59, in __init__
raise RuntimeError(f"Directory '{directory}' does not exist")
RuntimeError: Directory 'F:\concierge\Lib\site-packages\shinyswatch\picker' does not exist
I can confirm that that directory indeed does not exist on my machine
Any idea what could be causing this?
(also, the live demo linked on this repo shows the selector but it doesn't seem to do anything)
I can confirm the demo code is broken.
I believe this is a manifest bug. As local testing works but https://pypi.org/project/shinyswatch/#files does not contain shinyswatch/picker
folder.
Will fix and do a followup release
Hi! Which version of shinyswatch do you have installed? The picker
folder was introduced in 0.6.0.
Is F:\concierge\Lib\site-packages\shinyswatch
the location where the shinyswatch package is installed on your machine? Even more specifically, is it the location of the shinyswatch package used in the app where you called shinyswatch.theme_picker_ui()
? (I suspect the answer is no.)
Oops, marked as outdated because Barrett already answered
Thank you @sebovzeoueb !
The app on the readme works if the latest version is installed. Please update your code to install v0.6.1 instead of v0.6.0
Wow, fast fix, thanks, all working perfectly for me now!