python-3.x aws configure命令失败- ImportError未定义符号:sqlite3_serialize

mnowg1ta  于 2023-06-25  发布在  Python
关注(0)|答案(1)|浏览(67)

在所有环境中运行我们的bitbucket管道时,awsconfigure命令失败,并出现以下错误

+ aws configure set aws_access_key_id "${AWS_ACCESS_KEY}"
Traceback (most recent call last):
  File "/usr/bin/aws", line 19, in <module>
    import awscli.clidriver
  File "/usr/lib/python3/dist-packages/awscli/clidriver.py", line 62, in <module>
    from awscli.autoprompt.core import AutoPromptDriver
  File "/usr/lib/python3/dist-packages/awscli/autoprompt/core.py", line 16, in <module>
    from awscli.autoprompt.prompttoolkit import PromptToolkitPrompter
  File "/usr/lib/python3/dist-packages/awscli/autoprompt/prompttoolkit.py", line 25, in <module>
    from awscli.autocomplete.local import model
  File "/usr/lib/python3/dist-packages/awscli/autocomplete/local/model.py", line 20, in <module>
    from awscli.autocomplete import db
  File "/usr/lib/python3/dist-packages/awscli/autocomplete/db.py", line 3, in <module>
    import sqlite3
  File "/usr/lib/python3.11/sqlite3/__init__.py", line 57, in <module>
    from sqlite3.dbapi2 import *
  File "/usr/lib/python3.11/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
ImportError: /usr/lib/python3.11/lib-dynload/_sqlite3.cpython-311-x86_64-linux-gnu.so: undefined symbol: sqlite3_deserialize

由于此AWS问题,我们无法在所有环境中完成构建。
这是我们应该向AWS报告的AWS CLI问题还是其他问题?

kxeu7u2r

kxeu7u2r1#

清除bitbucket管道缓存依赖项修复了该问题。
也许是一个稍微旧一点的aws-cli版本出现了故障,正在使用?

相关问题