When installing both awscli2 and aws-sam-cli via a devbox plugin (plugin.json's packages entry), the aws command fails to start in the main project's devbox shell:
(devbox) ❯ aws
Traceback (most recent call last):
File "/nix/store/xm88si6rhf8vrnlfxnpabsmlgfxiqa47-awscli2-2.15.38/bin/.aws-wrapped", line 20, in <module>
import awscli.clidriver
File "/nix/store/xm88si6rhf8vrnlfxnpabsmlgfxiqa47-awscli2-2.15.38/lib/python3.11/site-packages/awscli/clidriver.py", line 21, in <module>
import botocore.session
File "/nix/store/xm88si6rhf8vrnlfxnpabsmlgfxiqa47-awscli2-2.15.38/lib/python3.11/site-packages/awscli/botocore/session.py", line 27, in <module>
import botocore.client
File "/nix/store/xm88si6rhf8vrnlfxnpabsmlgfxiqa47-awscli2-2.15.38/lib/python3.11/site-packages/awscli/botocore/client.py", line 16, in <module>
from botocore import UNSIGNED, waiter, xform_name
File "/nix/store/xm88si6rhf8vrnlfxnpabsmlgfxiqa47-awscli2-2.15.38/lib/python3.11/site-packages/awscli/botocore/waiter.py", line 17, in <module>
from botocore.docs.docstring import WaiterDocstring
File "/nix/store/xm88si6rhf8vrnlfxnpabsmlgfxiqa47-awscli2-2.15.38/lib/python3.11/site-packages/awscli/botocore/docs/__init__.py", line 15, in <module>
from botocore.docs.service import ServiceDocumenter
File "/nix/store/xm88si6rhf8vrnlfxnpabsmlgfxiqa47-awscli2-2.15.38/lib/python3.11/site-packages/awscli/botocore/docs/service.py", line 14, in <module>
from botocore.docs.client import ClientDocumenter, ClientExceptionsDocumenter
File "/nix/store/xm88si6rhf8vrnlfxnpabsmlgfxiqa47-awscli2-2.15.38/lib/python3.11/site-packages/awscli/botocore/docs/client.py", line 16, in <module>
from botocore.docs.example import ResponseExampleDocumenter
File "/nix/store/xm88si6rhf8vrnlfxnpabsmlgfxiqa47-awscli2-2.15.38/lib/python3.11/site-packages/awscli/botocore/docs/example.py", line 13, in <module>
from botocore.docs.shape import ShapeDocumenter
File "/nix/store/xm88si6rhf8vrnlfxnpabsmlgfxiqa47-awscli2-2.15.38/lib/python3.11/site-packages/awscli/botocore/docs/shape.py", line 19, in <module>
from botocore.utils import is_json_value_header
File "/nix/store/xm88si6rhf8vrnlfxnpabsmlgfxiqa47-awscli2-2.15.38/lib/python3.11/site-packages/awscli/botocore/utils.py", line 35, in <module>
import botocore.httpsession
File "/nix/store/xm88si6rhf8vrnlfxnpabsmlgfxiqa47-awscli2-2.15.38/lib/python3.11/site-packages/awscli/botocore/httpsession.py", line 21, in <module>
from urllib3.util.ssl_ import (
ImportError: cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' (/nix/store/brmihk12wdrnh5awyqzj42kf6jqdpcip-python3.11-urllib3-2.2.1/lib/python3.11/site-packages/urllib3/util/ssl_.py)
Steps to reproduce
git clone https://github.com/adamdicarlo0/devbox-plugin-issue.git
cd devbox-plugin-issue
devbox run -- aws
Comparing the entries in PYTHONPATH when installing the packages directly via devbox.json (see the non-plugin-example folder), and installing the packages through the plugin, they are the same, but in a different order:
What happened?
When installing both
awscli2
andaws-sam-cli
via a devbox plugin (plugin.json'spackages
entry), theaws
command fails to start in the main project's devbox shell:Steps to reproduce
Comparing the entries in PYTHONPATH when installing the packages directly via
devbox.json
(see thenon-plugin-example
folder), and installing the packages through the plugin, they are the same, but in a different order:Output of compare-pythonpath.sh
Command
shell
devbox.json
See https://github.com/adamdicarlo0/devbox-plugin-issue
Devbox version
0.10.5
Nix version
nix (Nix) 2.18.2
What system does this bug occur on?
Linux (x86-64)
Debug logs
No response