myQLM / myqlm-issues

4 stars 1 forks source link

`qat` cannot be imported on Ubuntu 20.04 with glibc 2.31 #23

Closed daanish-qb closed 11 months ago

daanish-qb commented 1 year ago

Describe the bug When importing qat or some sub-module on Ubuntu 20.04, there is an ImportError which indicates that GLIBC 2.32 is not found.

To Reproduce Steps to reproduce the behavior:

  1. Start a Python session or create a .py file on Ubuntu 20.04
  2. Attempt to import qat or some other sub-module
  3. Error appears: ImportError: /lib/x86_64-linux-gnu/libc.so.6: versionGLIBC_2.32' not found (required by /path/to/py/env/lib/python3.8/site-packages/qat/comm/map_converter.so)`

Expected behavior The import should be successful with the latest GLIBC version available through apt on Ubuntu 20.04 (2.31).

Full error

Python 3.8.10 (default, May 26 2023, 14:05:08) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import qat
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "__init__.py", line 19, in init qat.__init__
  File "__init__.py", line 55, in init qat.modules.__init__
  File "__init__.py", line 16, in init qat.core.__init__
  File "__init__.py", line 16, in init qat.core.wrappers.__init__
  File "job.py", line 29, in init qat.core.wrappers.job
  File "res_data.py", line 17, in init qat.core.wrappers.res_data
  File "utils.py", line 15, in init qat.comm.utils
ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/daanish/qb/py_qb/lib/python3.8/site-packages/qat/comm/map_converter.so)

Desktop (please complete the following information):

JayaPoluri commented 11 months ago

Myqlm 1.9.4 is based on GLIBC_2.32. Therefore, you need at least Ubuntu 22.04.