Package: docker-compose
Version: 1.25.0-1
Severity: normal
X-Debbugs-Cc: edo...@gmail.com

Hi,

When I try to run the "exec" command of docker-compose on any running
container, Python throws:

WARNING: The b'PATH' variable is not set. Defaulting to a blank string.
Traceback (most recent call last):
  File "/usr/bin/docker-compose", line 11, in <module>
    load_entry_point('docker-compose==1.25.0', 'console_scripts', 'docker-
compose')()
  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 72, in main
    command()
  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 128, in
perform_command
    handler(command, command_options)
  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 522, in
exec_command
    sys.exit(call_docker(
  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 1498, in
call_docker
    return subprocess.call(args, env=environment)
  File "/usr/lib/python3.8/subprocess.py", line 340, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1634, in _execute_child
    for dir in os.get_exec_path(env))
  File "/usr/lib/python3.8/os.py", line 645, in get_exec_path
    raise ValueError(
ValueError: env cannot contain 'PATH' and b'PATH' keys

Downgrading to 1.21.0-3 solves the problem so I don't know if the issue is with
docker-compose or some dependencies.

Let me know if you need any other information about this problem.

Greets.
Ernesto



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

Kernel: Linux 5.9.0-3-amd64 (SMP w/4 CPU threads)
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8), 
LANGUAGE=es_AR:es
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages docker-compose depends on:
ii  python3                  3.8.6-1
ii  python3-cached-property  1.5.1-4
ii  python3-distutils        3.8.6-1
ii  python3-docker           4.1.0-1.2
ii  python3-dockerpty        0.4.1-2
ii  python3-docopt           0.6.2-2.2
ii  python3-jsonschema       3.2.0-3
ii  python3-requests         2.24.0+dfsg-1
ii  python3-six              1.15.0-2
ii  python3-texttable        1.6.3-1
ii  python3-websocket        0.57.0-1
ii  python3-yaml             5.3.1-3

Versions of packages docker-compose recommends:
ii  docker.io  19.03.13+dfsg2-1

docker-compose suggests no packages.

-- no debconf information

Reply via email to