GeezerVison is showing github.com — text editor example · Issue #6 · webui-dev/python-webui
Description
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'
Where is the problem???
Thanks!
Jaroslav Vysoký
Czech Republic
Activity
AlbertShown commented on 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.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
Thank you @JerryFox for signaling this.
AlbertShown commented on Nov 28, 2023
JerryFox commented on Nov 28, 2023
Thanks! I did it already.
J.
kvbik commented on Nov 29, 2023
Hey @AlbertShown - instead of copy the webui.py file, 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.py or pyproject.toml is. Which in this case is PyPI/Package/.
Metadata
Metadata
Development
No branches or pull requestsIssue actions