Package: awscli
Version: 2.23.6-1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

The 'aws' command no longer functions in any way. Just running 'aws' without
arguments gives me an exception. Adding arguments does not change this. This
seems to be very early in initialization.

$ aws
Traceback (most recent call last):
  File "/usr/lib/python3.13/importlib/metadata/__init__.py", line 407, in
from_name
    return next(iter(cls.discover(name=name)))
StopIteration

During handling of the above exception, another exception occurred:

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 67, 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 18, in <module>
    from prompt_toolkit.application import Application
  File "/usr/lib/python3/dist-packages/prompt_toolkit/__init__.py", line 32, in
<module>
    __version__ = metadata.version("prompt_toolkit")
  File "/usr/lib/python3.13/importlib/metadata/__init__.py", line 987, in
version
    return distribution(distribution_name).version
           ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/importlib/metadata/__init__.py", line 960, in
distribution
    return Distribution.from_name(distribution_name)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/importlib/metadata/__init__.py", line 409, in
from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for
prompt_toolkit


If I just run a python console and run the import commands from top to bottom,
the first that does no longer throw is the "from prompt_toolkit.application"
one.
So I don't think its a general problem with prompt_toolkit? I am not that
fluent in python, though.

I am absolutely not sure if this is an awscli issue, so please feel free to re-
assign to the correct package.

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

A recent update of some python packages. I am not really sure which, but I
assume somewhere in the region of python3-prompt-toolkit?

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Run 'aws' to copy a local file to an S3 bucket.

   * What was the outcome of this action?

It failed with the above exception.

   * What outcome did you expect instead?

A working copy to the S3 bucket.

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.12.22-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages awscli depends on:
ii  groff-base                1.23.0-7
ii  python3                   3.13.3-1
ii  python3-awscrt            0.24.0+dfsg-1
ii  python3-colorama          0.4.6-4
ii  python3-cryptography      43.0.0-2
ii  python3-dateutil          2.9.0-4
ii  python3-distro            1.9.0-1
ii  python3-docutils          0.21.2+dfsg-2
ii  python3-jmespath          1.0.1-1
ii  python3-prompt-toolkit    3.0.51-1
ii  python3-pyasn1            0.6.1-1
ii  python3-ruamel.yaml       0.18.10+ds-1
ii  python3-ruamel.yaml.clib  0.2.12+ds-1+b1
ii  python3-urllib3           2.3.0-2
ii  python3-zipp              3.21.0-1

awscli recommends no packages.

awscli suggests no packages.

-- no debconf information

Reply via email to