本帖最后由 missy0u 于 2018-11-29 16:11 编辑
安装qcloud模块后报 ImportError: cannot import name HeaderParsingError,奇怪的是进去宝塔的文件管理看不到qcloud_cos目录,在Xshell下可以。。
- 抱歉,出错了:
- Traceback (most recent call last):
- File "/www/server/panel/class/panelPlugin.py", line 1429, in a
- plugin_main = __import__(get.name+'_main');
- File "/usr/lib64/python2.7/site-packages/gevent/builtins.py", line 96, in __import__
- result = _import(*args, **kwargs)
- File "plugin/txcos/txcos_main.py", line 13, in
- from qcloud_cos import CosConfig
- File "/usr/lib64/python2.7/site-packages/gevent/builtins.py", line 96, in __import__
- result = _import(*args, **kwargs)
- File "/usr/lib/python2.7/site-packages/qcloud_cos/__init__.py", line 1, in
- from .cos_client import CosS3Client
- File "/usr/lib64/python2.7/site-packages/gevent/builtins.py", line 96, in __import__
- result = _import(*args, **kwargs)
- File "/usr/lib/python2.7/site-packages/qcloud_cos/cos_client.py", line 3, in
- import requests
- File "/usr/lib64/python2.7/site-packages/gevent/builtins.py", line 96, in __import__
- result = _import(*args, **kwargs)
- File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 43, in
- import urllib3
- File "/usr/lib64/python2.7/site-packages/gevent/builtins.py", line 96, in __import__
- result = _import(*args, **kwargs)
- File "/usr/lib/python2.7/site-packages/urllib3/__init__.py", line 8, in
- from .connectionpool import (
- File "/usr/lib64/python2.7/site-packages/gevent/builtins.py", line 96, in __import__
- result = _import(*args, **kwargs)
- File "/usr/lib/python2.7/site-packages/urllib3/connectionpool.py", line 11, in
- from .exceptions import (
- ImportError: cannot import name HeaderParsingError
复制代码
|