网站,无法创建node项目
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:系统版本:
问题描述:
相关截图(日志、错误):REQUEST_DATE: 2025-01-07 18:03:32
PAN_VERSION: 8.2.2
OS_VERSION: Windows Server 2019 Standard (build 17763) x64 (Py3.8.6)
REMOTE_ADDR: 127.0.0.1
REQUEST_URI: POST /project/nodejs/create_project?
REQUEST_FORM: {'data': '{"project_cwd":"C:/workspace/github/qq-music-api","project_name":"qqMusicApi","project_script":"start","port":"5000","run_user":"root","pkg_manager":"npm","not_install_pkg":1,"nodejs_version":"v18.16.1","project_ps":"qq music api","domains":"","release_firewall":false,"bind_extranet":0,"is_power_on":1,"max_memory_limit":4096,"project_env":""}'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0
Traceback (most recent call last):
File "C:\Program Files\python\lib\site-packages\win32com\client\dynamic.py", line 89, in _GetGoodDispatch
IDispatch = pythoncom.connect(IDispatch)
pywintypes.com_error: (-2147221008, '尚未调用 CoInitialize。', None, None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\BtSoft\panel\BTPanel\__init__.py", line 1584, in publicObject
return run_exec().run(toObject, defs, get)
File "C:\BtSoft\panel\BTPanel\__init__.py", line 1825, in run
result = resobj(get)
File "C:\BtSoft\panel/class\panelProjectController.py", line 93, in model
result = PluginLoader.module_run(module_name, def_name, pdata)
File "C:\BtSoft\panel/class/projectModel/nodejsModel.py", line 732, in create_project
self.create_shortcut(script_path, task_path)
File "C:\BtSoft\panel/class/projectModel/nodejsModel.py", line 2569, in create_shortcut
shell = win32com.client.Dispatch("WScript.Shell")
File "C:\Program Files\python\lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch
dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
File "C:\Program Files\python\lib\site-packages\win32com\client\dynamic.py", line 114, in _GetGoodDispatchAndUserName
return (_GetGoodDispatch(IDispatch, clsctx), userName)
File "C:\Program Files\python\lib\site-packages\win32com\client\dynamic.py", line 91, in _GetGoodDispatch
IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch)
pywintypes.com_error: (-2147221008, '尚未调用 CoInitialize。', None, None)
页:
[1]