aws configure命令失败 – ImportError未定义的符号:sqlite3_deserialize

huangapple go评论82阅读模式
英文:

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 &quot;${AWS_ACCESS_KEY}&quot;
Traceback (most recent call last):
  File &quot;/usr/bin/aws&quot;, line 19, in &lt;module&gt;
    import awscli.clidriver
  File &quot;/usr/lib/python3/dist-packages/awscli/clidriver.py&quot;, line 62, in &lt;module&gt;
    from awscli.autoprompt.core import AutoPromptDriver
  File &quot;/usr/lib/python3/dist-packages/awscli/autoprompt/core.py&quot;, line 16, in &lt;module&gt;
    from awscli.autoprompt.prompttoolkit import PromptToolkitPrompter
  File &quot;/usr/lib/python3/dist-packages/awscli/autoprompt/prompttoolkit.py&quot;, line 25, in &lt;module&gt;
    from awscli.autocomplete.local import model
  File &quot;/usr/lib/python3/dist-packages/awscli/autocomplete/local/model.py&quot;, line 20, in &lt;module&gt;
    from awscli.autocomplete import db
  File &quot;/usr/lib/python3/dist-packages/awscli/autocomplete/db.py&quot;, line 3, in &lt;module&gt;
    import sqlite3
  File &quot;/usr/lib/python3.11/sqlite3/__init__.py&quot;, line 57, in &lt;module&gt;
    from sqlite3.dbapi2 import *
  File &quot;/usr/lib/python3.11/sqlite3/dbapi2.py&quot;, line 27, in &lt;module&gt;
    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?
aws configure命令失败 – ImportError未定义的符号:sqlite3_deserialize

答案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?

huangapple
  • 本文由 发表于 2023年6月15日 21:40:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/76483094.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定