Description
Description
Python3.10.12
import excelize 时,抛出以下错误,系统信息是: PRETTY_NAME="Ubuntu 22.04.3 LTS" , 要加载的是 libexcelize.amd64.linux.so 这个so文件
Traceback (most recent call last):
File "", line 1, in
File "/home/admin/zc_workspace/tabulating-python/.venv/lib/python3.10/site-packages/excelize.py", line 90, in
lib = CDLL(os.path.join(os.path.dirname(file), load_lib()))
File "/usr/lib/python3.10/ctypes/init.py", line 374, in init
self._handle = _dlopen(self._name, mode)
OSError: /lib/x86_64-linux-gnu/libc.so: invalid ELF header
Steps to reproduce the issue
- import excelize 就会报错
Describe the results you received
Traceback (most recent call last):
File "", line 1, in
File "/home/admin/zc_workspace/tabulating-python/.venv/lib/python3.10/site-packages/excelize.py", line 90, in
lib = CDLL(os.path.join(os.path.dirname(file), load_lib()))
File "/usr/lib/python3.10/ctypes/init.py", line 374, in init
self._handle = _dlopen(self._name, mode)
OSError: /lib/x86_64-linux-gnu/libc.so: invalid ELF header
Describe the results you expected
能正常import
Python version
3.10.12
Excelize version or commit ID
0.0.3
Environment
PRETTY_NAME="Ubuntu 22.04.3 LTS"
linux
要加载的是 libexcelize.amd64.linux.so
Validations
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.