Public bug reported:
Using boto3 (1.34.46+dfsg-1ubuntu1) on Orcular, I get the following
error when I try to create a client for the different AWS services:
$ python3 -c 'import boto3; client=boto3.client("ec2")'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3/dist-packages/boto3/__init__.py", line 16, in <module>
from boto3.compat import _warn_deprecated_python
File "/usr/lib/python3/dist-packages/boto3/compat.py", line 19, in <module>
from boto3.exceptions import PythonDeprecationWarning
File "/usr/lib/python3/dist-packages/boto3/exceptions.py", line 15, in
<module>
import botocore.exceptions
File "/usr/lib/python3/dist-packages/botocore/exceptions.py", line 15, in
<module>
import requests
File "/usr/lib/python3/dist-packages/requests/__init__.py", line 45, in
<module>
from .exceptions import RequestsDependencyWarning
File "/usr/lib/python3/dist-packages/requests/exceptions.py", line 9, in
<module>
from .compat import JSONDecodeError as CompatJSONDecodeError
File "/usr/lib/python3/dist-packages/requests/compat.py", line 55, in <module>
from simplejson import JSONDecodeError
ImportError: cannot import name 'JSONDecodeError' from 'simplejson' (unknown
location)
The reproducer is really just that single line.
ProblemType: Bug
DistroRelease: Ubuntu 24.10
Package: python3-boto3 1.34.46+dfsg-1ubuntu1
ProcVersionSignature: Ubuntu 6.11.0-8.8-generic 6.11.0
Uname: Linux 6.11.0-8-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.30.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Wed Sep 25 15:12:25 2024
InstallationDate: Installed on 2024-07-18 (69 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
PackageArchitecture: all
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/usr/bin/zsh
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
SourcePackage: python-boto3
UpgradeStatus: Upgraded to oracular on 2024-08-26 (30 days ago)
** Affects: python-boto3 (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug oracular wayland-session
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2081978
Title:
boto3 completely unusable: ImportError: cannot import name
'JSONDecodeError' from 'simplejson' (unknown location)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-boto3/+bug/2081978/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs