You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Users\vysok\python\python-webui\examples\text-editor>python main.py
Traceback (most recent call last):
File "C:\Users\vysok\python\python-webui\examples\text-editor\main.py", line 25, in
main()
File "C:\Users\vysok\python\python-webui\examples\text-editor\main.py", line 16, in main
window.set_root_folder("ui/")
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'window' object has no attribute 'set_root_folder'
The main core library webui (In C) is working fine and stable, but wrappers are still being developed.
To fix this issue just copy webui.py from this repo to PyPi package folder.
Copy C:\Users\vysok\python\python-webui\PyPI\Package\src\webui\webui.py To C:\_PATH_TO_PYTHON_INSTALL_FOLDER_HERE_\Lib\site-packages\webui\webui.py
Activity
AlbertShown commentedon Nov 28, 2023
The main core library webui (In C) is working fine and stable, but wrappers are still being developed.
To fix this issue just copy
webui.pyfrom this repo to PyPi package folder.Copy
C:\Users\vysok\python\python-webui\PyPI\Package\src\webui\webui.pyTo
C:\_PATH_TO_PYTHON_INSTALL_FOLDER_HERE_\Lib\site-packages\webui\webui.pyThank you @JerryFox for signaling this.
AlbertShown commentedon Nov 28, 2023
@hassandraga PyPi package needs to be updated.
JerryFox commentedon Nov 28, 2023
Thanks! I did it already.
J.
kvbik commentedon Nov 29, 2023
Hey @AlbertShown - instead of copy the
webui.pyfile, it is better practice for local development to do:pip install -e .The main trick is to do it from the directory where the
setup.pyorpyproject.tomlis. Which in this case isPyPI/Package/.