Web服务端打开报错(提示缺少文件)
- Dominant language
- Python
- Stars
- 36.9k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
在MockingBird根目录下有这个路径跟文件,但运行python3 web.py后打开网页时候显示找不到该文件
FileNotFoundError: [Errno 2] No such file or directory: '.\\mkgui\\static\\mb.png'
Traceback:
File "/usr/local/lib/python3.8/dist-packages/streamlit/scriptrunner/script_runner.py", line 443, in _run_script
exec(code, module.__dict__)
File "/tmp/tmpi1hir5nj.py", line 14, in
render_streamlit_ui()
File "/root/MockingBird/mkgui/base/ui/streamlit_ui.py", line 848, in render_streamlit_ui
image = Image.open('.\\mkgui\\static\\mb.png')
File "/usr/local/lib/python3.8/dist-packages/PIL/Image.py", line 3092, in open
fp = builtins.open(filename, "rb")
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the problem with `python3 web.py`, then inspect `mkgui/base/ui/streamlit_ui.py` at `render_streamlit_ui()` and the referenced `mkgui/static/mb.png` asset. Done means the web UI can open the existing image without raising `FileNotFoundError` in the reported environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, streamlit
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100