为了能快速了解并处理您的问题,请提供以下基础信息:
9.3
CentOS 7.9.2009 x86_64(Py3.7.9)
宝塔文件管理进入有图片的目录就报错
尝试过修复宝塔,无效相关截图(日志、错误):- ImportError: cannot import name '_imaging' from 'PIL' (/www/server/panel/pyenv/lib/python3.7/site-packages/PIL/__init__.py)
- REQUEST_DATE: 2024-12-17 15:52:35
- VERSION: CentOS 7.9.2009 x86_64(Py3.7.9) - 9.3.0
- REMOTE_ADDR: 117.24.53.255
- REQUEST_URI: POST /files?action=get_images_resize
- REQUEST_FORM: {'return_type': 'base64', 'height': '45', 'width': '45', 'files': 'favicon.ico', 'path': '/www/wwwroot/workflow.test.zxwc.com.cn'}
- USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36
- Traceback (most recent call last):
- File "/www/server/panel/class/files.py", line 4836, in get_images_resize
- from PIL import Image
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/PIL/Image.py", line 103, in
- from . import _imaging as core
- ImportError: cannot import name '_imaging' from 'PIL' (/www/server/panel/pyenv/lib/python3.7/site-packages/PIL/__init__.py)
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/www/server/panel/BTPanel/__init__.py", line 2537, in publicObject
- res = run_obj.run(toObject, defs, get)
- File "/www/server/panel/BTPanel/__init__.py", line 2484, in run
- result = getattr(toObject, get.action)(get)
- File "/www/server/panel/class/files.py", line 4839, in get_images_resize
- from PIL import Image
- File "/www/server/panel/pyenv/lib/python3.7/site-packages/PIL/Image.py", line 103, in
- from . import _imaging as core
- ImportError: cannot import name '_imaging' from 'PIL' (/www/server/panel/pyenv/lib/python3.7/site-packages/PIL/__init__.py)
复制代码
|
|