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

【已回复】整站迁移后出现下列问题

发表在 Linux面板2026-9-27 11:34 [复制链接] 1 203

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:

13.1.0
系统版本:

OpenCloudOS 9.6 x86_64(Py3.13.14)
问题描述:

整站迁移后出现相关问题
相关截图(日志、错误):

<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-09-27 11:31:24
PAN_VERSION: 13.1.0
  OS_VERSION: OpenCloudOS 9.6 x86_64(Py3.13.14)
REMOTE_ADDR: 117.80.32.224
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/154.0.0.0 Safari/537.36 Edg/154.0.0.0</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-09-27 11:31:24
PAN_VERSION: 13.1.0
  OS_VERSION: OpenCloudOS 9.6 x86_64(Py3.13.14)
REMOTE_ADDR: 117.80.32.224
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/154.0.0.0 Safari/537.36 Edg/154.0.0.0</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>
使用道具 举报 只看该作者 回复
发表于 2026-9-28 10:38:15 | 显示全部楼层
btpython -m pip install tencentcloud-sdk-python
装完刷新页面重试。
然后面板设置里修复面板一下,再刷新。
迁移后出现这问题,大概率是:
· 新环境 Python 版本变了(你这是 Py3.13.14)
· 插件依赖没跟着迁,或者 site-packages 路径变了
上面两步搞定后,去插件页面检查下腾讯云插件有没有更新,有就更新到最新版。如果还是不行找微信客服 https://docs.bt.cn/wechat-service 跟进插件兼容性。
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术分析

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

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