kingmo888 / rustdesk-api-server

基于Django的RustDesk Api&Web Server,除了支持api所有功能,还支持web注册、管理、展示等。已支持到最新1.3.1版本。
989 stars 222 forks source link

ModuleNotFoundError: No module named 'api.util' #8

Closed Cp0204 closed 11 months ago

Cp0204 commented 11 months ago

docker运行,打开web页面出现

ModuleNotFoundError at /api/user_action
No module named 'api.util'
Request Method: GET
Request URL:    http://****.****.****:21114/api/user_action?action=login
Django Version: 5.0
Exception Type: ModuleNotFoundError
Exception Value:    
No module named 'api.util'
Exception Location: <frozen importlib._bootstrap>, line 1004, in _find_and_load_unlocked
Raised during:  api.views_front.user_action
Python Executable:  /usr/local/bin/python
Python Version: 3.10.3
Python Path:    
['/rustdesk-api-server',
 '/usr/local/lib/python310.zip',
 '/usr/local/lib/python3.10',
 '/usr/local/lib/python3.10/lib-dynload',
 '/usr/local/lib/python3.10/site-packages']
Server time:    Mon, 11 Dec 2023 17:12:03 +0800

https://github.com/kingmo888/rustdesk-api-server/blob/bb5dcfd488e9a870460673cf2f7acabe2a75ae37/rustdesk_server_api/settings.py#L66

注释掉这行就没问题

kingmo888 commented 11 months ago

docker运行,打开web页面出现

ModuleNotFoundError at /api/user_action
No module named 'api.util'
Request Method:   GET
Request URL:  http://****.****.****:21114/api/user_action?action=login
Django Version:   5.0
Exception Type:   ModuleNotFoundError
Exception Value:  
No module named 'api.util'
Exception Location:   <frozen importlib._bootstrap>, line 1004, in _find_and_load_unlocked
Raised during:    api.views_front.user_action
Python Executable:    /usr/local/bin/python
Python Version:   3.10.3
Python Path:  
['/rustdesk-api-server',
 '/usr/local/lib/python310.zip',
 '/usr/local/lib/python3.10',
 '/usr/local/lib/python3.10/lib-dynload',
 '/usr/local/lib/python3.10/site-packages']
Server time:  Mon, 11 Dec 2023 17:12:03 +0800

https://github.com/kingmo888/rustdesk-api-server/blob/bb5dcfd488e9a870460673cf2f7acabe2a75ae37/rustdesk_server_api/settings.py#L66

注释掉这行就没问题

紧急更新bug创造新的bug。 这是计划开发内容中的一个全局上下文登录检测的东西,脚本更新上去了。