[GH-ISSUE #33] Unable to use the web interface #20

Closed
opened 2026-10-29 14:32:43 +00:00 by bsakaguchi · 4 comments
Owner

Originally created by @xldistance on GitHub (Aug 12, 2024).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/33

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "E:\open-webui\backend\python311\Scripts\ktransformers.exe\__main__.py", line 7, in <module>
  File "E:\open-webui\backend\python311\Lib\site-packages\ktransformers\server\main.py", line 132, in main
    app = create_app()
          ^^^^^^^^^^^^
  File "E:\open-webui\backend\python311\Lib\site-packages\ktransformers\server\main.py", line 44, in create_app
    mount_index_routes(app)
  File "E:\open-webui\backend\python311\Lib\site-packages\ktransformers\server\main.py", line 61, in mount_index_routes
    update_web_port(web_config_file)
  File "E:\open-webui\backend\python311\Lib\site-packages\ktransformers\server\main.py", line 49, in update_web_port
    with open(config_file, "r", encoding="utf-8") as f_cfg:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'E:\\open-webui\\backend\\python311\\Lib\\site-packages\\ktransformers\\website/dist\\config.js'
Originally created by @xldistance on GitHub (Aug 12, 2024). Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/33 ``` Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "E:\open-webui\backend\python311\Scripts\ktransformers.exe\__main__.py", line 7, in <module> File "E:\open-webui\backend\python311\Lib\site-packages\ktransformers\server\main.py", line 132, in main app = create_app() ^^^^^^^^^^^^ File "E:\open-webui\backend\python311\Lib\site-packages\ktransformers\server\main.py", line 44, in create_app mount_index_routes(app) File "E:\open-webui\backend\python311\Lib\site-packages\ktransformers\server\main.py", line 61, in mount_index_routes update_web_port(web_config_file) File "E:\open-webui\backend\python311\Lib\site-packages\ktransformers\server\main.py", line 49, in update_web_port with open(config_file, "r", encoding="utf-8") as f_cfg: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'E:\\open-webui\\backend\\python311\\Lib\\site-packages\\ktransformers\\website/dist\\config.js' ```
Author
Owner

@Zongru-Wang commented on GitHub (Feb 14, 2025):

Got this error, how to fix it?

<!-- gh-comment-id:2658539926 --> @Zongru-Wang commented on GitHub (Feb 14, 2025): Got this error, how to fix it?
Author
Owner

@zengqingfu1442 commented on GitHub (Feb 14, 2025):

I also got this error with the latest ktransformers, git commit is 0a9c5992.

<!-- gh-comment-id:2658674032 --> @zengqingfu1442 commented on GitHub (Feb 14, 2025): I also got this error with the latest ktransformers, git commit is 0a9c5992.
Author
Owner

@Zongru-Wang commented on GitHub (Feb 17, 2025):

I also got this error with the latest ktransformers, git commit is 0a9c599.

it seems like the step of npm build web service didn't success, remember to got to /website dir and follow the npm build instruction.

<!-- gh-comment-id:2662177334 --> @Zongru-Wang commented on GitHub (Feb 17, 2025): > I also got this error with the latest ktransformers, git commit is [0a9c599](https://github.com/kvcache-ai/ktransformers/commit/0a9c59922abb7cf9c83ee3930aa3dddc21a14877). it seems like the step of npm build web service didn't success, remember to got to /website dir and follow the npm build instruction.
Author
Owner

@zengqingfu1442 commented on GitHub (Feb 21, 2025):

Need to build website dir before installing ktransformers. https://kvcache-ai.github.io/ktransformers/en/api/server/website.html

<!-- gh-comment-id:2673934834 --> @zengqingfu1442 commented on GitHub (Feb 21, 2025): Need to build website dir before installing ktransformers. https://kvcache-ai.github.io/ktransformers/en/api/server/website.html
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kvcache-ai/ktransformers#20
No description provided.