当前位置:论坛首页 > Linux面板 > 讨论

【已解答】出错了,[tencent]运行时发生错误!

发表在 Linux面板昨天 21:45 [复制链接] 1 33

<div class="pd20">
    <h3>出错了,[tencent]运行时发生错误!</h3>
    <div style="margin-bottom: 15px;margin-top: 15px;color: red;">
        <h4 style="font-size: none;">TypeError: get_run_pip() takes 0 positional arguments but 1 was given</h4>
    </div>
    <pre style="height:165px;word-wrap: break-word;white-space: pre-wrap;margin: 0 0 10px;overflow: auto;">REQUEST_DATE: 2026-08-24 21:45:03
PAN_VERSION: 13.0.0
  OS_VERSION: OpenCloudOS 9.4 x86_64(Py3.13.14)
REMOTE_ADDR: 120.43.155.214
REQUEST_URI: POST /plugin%3Faction%3Da%26name%3Dtencent%26s%3Dget_config
REQUEST_FORM: {}
  USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36</pre>
    <pre style="height:330px;word-wrap: break-word;white-space: pre-wrap;margin: 0 0 0px;overflow: auto;">Traceback (most recent call last):
  File "/www/server/panel/class/panelPlugin.py", line 3830, in a
    return p.exec_fun(get)
           ~~~~~~~~~~^^^^^
  File "/www/server/panel/class/pluginAuth.py", line 67, in exec_fun
    raise public.PanelError(res['msg'])
public.PanelError: 面板运行时发生错误: Traceback (most recent call last):
  File "/www/server/panel/plugin/tencent/tencent_main.py", line 21, in <module>
    import tencentcloud
ModuleNotFoundError: No module named 'tencentcloud'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/www/server/panel/plugin/tencent/tencent_main.py", line 23, in <module>
    os.system(public.get_run_pip('[PIP] install tencentcloud-sdk-python'))
              ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: get_run_pip() takes 0 positional arguments but 1 was given</pre>
    <ul class="help-info-text">
        <li style="list-style: none;"><b>很抱歉,您在访问[tencent]插件时,意外发生错误,请尝试按以下顺序尝试解除此错误:</b></li>
        <li style="list-style: none;">1、在[首页]右上角点击修复面板,并退出面板重新登录。</li>
        <li style="list-style: none;">2、若此插件不是最新版,尝试更新到最新版,若已是最新版,请尝试重装此插件,若为测试版,请尝试切换为正式版</li>
        <li style="list-style: none;">3、若此插件为第三方插件,请在插件窗口中找到插件作者联系方式,尝试联系作者寻求帮助</li>
        <li style="list-style: none;">4、如上述尝试未能解除此错误,请截图此窗口到宝塔论坛发贴寻求帮助, 论坛地址:<a class="btlink" href="https://www.bt.cn/bbs" target="_blank">https://www.bt.cn/bbs</a></li>
    </ul>
</div>
<div class="pd20">
    <h3>出错了,[tencent]运行时发生错误!</h3>
    <div style="margin-bottom: 15px;margin-top: 15px;color: red;">
        <h4 style="font-size: none;">TypeError: get_run_pip() takes 0 positional arguments but 1 was given</h4>
    </div>
    <pre style="height:165px;word-wrap: break-word;white-space: pre-wrap;margin: 0 0 10px;overflow: auto;">REQUEST_DATE: 2026-08-24 21:45:03
PAN_VERSION: 13.0.0
  OS_VERSION: OpenCloudOS 9.4 x86_64(Py3.13.14)
REMOTE_ADDR: 120.43.155.214
REQUEST_URI: POST /plugin%3Faction%3Da%26name%3Dtencent%26s%3Dget_config
REQUEST_FORM: {}
  USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36</pre>
    <pre style="height:330px;word-wrap: break-word;white-space: pre-wrap;margin: 0 0 0px;overflow: auto;">Traceback (most recent call last):
  File "/www/server/panel/class/panelPlugin.py", line 3830, in a
    return p.exec_fun(get)
           ~~~~~~~~~~^^^^^
  File "/www/server/panel/class/pluginAuth.py", line 67, in exec_fun
    raise public.PanelError(res['msg'])
public.PanelError: 面板运行时发生错误: Traceback (most recent call last):
  File "/www/server/panel/plugin/tencent/tencent_main.py", line 21, in <module>
    import tencentcloud
ModuleNotFoundError: No module named 'tencentcloud'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/www/server/panel/plugin/tencent/tencent_main.py", line 23, in <module>
    os.system(public.get_run_pip('[PIP] install tencentcloud-sdk-python'))
              ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: get_run_pip() takes 0 positional arguments but 1 was given</pre>
    <ul class="help-info-text">
        <li style="list-style: none;"><b>很抱歉,您在访问[tencent]插件时,意外发生错误,请尝试按以下顺序尝试解除此错误:</b></li>
        <li style="list-style: none;">1、在[首页]右上角点击修复面板,并退出面板重新登录。</li>
        <li style="list-style: none;">2、若此插件不是最新版,尝试更新到最新版,若已是最新版,请尝试重装此插件,若为测试版,请尝试切换为正式版</li>
        <li style="list-style: none;">3、若此插件为第三方插件,请在插件窗口中找到插件作者联系方式,尝试联系作者寻求帮助</li>
        <li style="list-style: none;">4、如上述尝试未能解除此错误,请截图此窗口到宝塔论坛发贴寻求帮助, 论坛地址:<a class="btlink" href="https://www.bt.cn/bbs" target="_blank">https://www.bt.cn/bbs</a></li>
    </ul>
</div>

使用道具 举报 只看该作者 回复
发表于 半小时前 | 显示全部楼层
您好,从报错日志来看,似乎是你的服务器上缺少腾讯云SDK(tencentcloud-sdk-python),所以插件启动时报错 ModuleNotFoundError。
您可以使用以下方案解决问题:
1.手动安装缺少的依赖:btpip install tencentcloud-sdk-python
2.卸载重装对应的插件

如果问题依然没有解决,您可以通过客服咨询宝塔面板相关问题:https://docs.bt.cn/wechat-service
操作方式:复制链接在微信打开,即可在线咨询客服。
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表