嗨,您已经用基本图片python3.6创建了一个 jetty 图片

我已经使用“pip install ifxpy”安装了ifxpy,并且在成功构建ifxpy-3.0.1之后,我尝试导入ifxpy lib,它给了我错误

成功构建flask-jwt idna-ssl
安装收集的软件包:单击,
ifxpy-3.0.1 itsdangerous-1.1.0 multidict-4.5.2 pytz-2019.1请求-2.22.0 schedule-0.6.0键入扩展名3.7.4 url​​lib3-1.25.3 yarl-1.3.0

来自docker的错误日志:-

Traceback (most recent call last):
  File "/home/pythonuser/Informix_Conn.py", line 3, in <module>
    import IfxPyDbi as dbapi2
  File "/usr/local/lib/python3.6/site-packages/IfxPyDbi.py", line 43, in <module>
    import IfxPy
ImportError: libifdmr.so: cannot open shared object file: No such file or directory

最佳答案

libifdmr.so是Informix Client SDK的库。

因此,首先安装Informix Client SDK。此外,您必须设置环境变量LD_LIBRARY_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:$INFORMIXDIR/lib/cli

08-28 15:18