英文:
aws configure command failing - ImportError undefined symbol: sqlite3_deserialize
问题
当运行我们的Bitbucket管道以针对所有环境执行时,aws configure
命令失败,并显示以下错误:
+ 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问题,还是其他问题?
英文:
When running our bitbucket pipeline for all environments, the aws configure command is failing with the following error
+ 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
We are unable to complete builds in all of our environments due to this AWS issue.
Is this a AWS CLI issue that we should report to AWS or something else?
答案1
得分: 0
清除Bitbucket Pipelines的缓存依赖项解决了问题。
也许是aws-cli
的版本稍旧,导致失败并被使用?
英文:
Clearing the bitbucket pipelines cached dependencies fixed the issue.
Maybe it was a slightly older version of the aws-cli
that was failing and was being used?
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论