[Bug 2131131] [NEW] podman-compose cannot open relative file path

Floris Luiten 2131131 at bugs.launchpad.net
Wed Nov 12 07:04:46 UTC 2025


Public bug reported:

podman-compose v1.3.0 cannot resolve relative file paths when passing a
file. This is a known bug in v1.3.0
(https://github.com/containers/podman-compose/issues/1109). As far as I
can read from the release notes and replies in this issue it can be
fixed by upgrading to v1.4.0.

Steps to reproduce:

1. Install docker-compose v1.3.0
2. Run `podman-compose -f container/compose.yaml down`
3. Output:

```
Traceback (most recent call last):
  File "/usr/bin/podman-compose", line 33, in <module>
    sys.exit(load_entry_point('podman-compose==1.3.0', 'console_scripts', 'podman-compose')())
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/podman_compose.py", line 3711, in main
    asyncio.run(async_main())
    ~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/asyncio/runners.py", line 195, in run
    return runner.run(main)
           ~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.13/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.13/asyncio/base_events.py", line 725, in run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/podman_compose.py", line 3707, in async_main
    await podman_compose.run()
  File "/usr/lib/python3/dist-packages/podman_compose.py", line 1859, in run
    self._parse_compose_file()
    ~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/podman_compose.py", line 1954, in _parse_compose_file
    with open(filename, "r", encoding="utf-8") as f:
         ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'container/compose.yaml'
```

** Affects: ubuntu-release-upgrader (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/2131131

Title:
  podman-compose cannot open relative file path

Status in ubuntu-release-upgrader package in Ubuntu:
  New

Bug description:
  podman-compose v1.3.0 cannot resolve relative file paths when passing
  a file. This is a known bug in v1.3.0
  (https://github.com/containers/podman-compose/issues/1109). As far as
  I can read from the release notes and replies in this issue it can be
  fixed by upgrading to v1.4.0.

  Steps to reproduce:

  1. Install docker-compose v1.3.0
  2. Run `podman-compose -f container/compose.yaml down`
  3. Output:

  ```
  Traceback (most recent call last):
    File "/usr/bin/podman-compose", line 33, in <module>
      sys.exit(load_entry_point('podman-compose==1.3.0', 'console_scripts', 'podman-compose')())
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
    File "/usr/lib/python3/dist-packages/podman_compose.py", line 3711, in main
      asyncio.run(async_main())
      ~~~~~~~~~~~^^^^^^^^^^^^^^
    File "/usr/lib/python3.13/asyncio/runners.py", line 195, in run
      return runner.run(main)
             ~~~~~~~~~~^^^^^^
    File "/usr/lib/python3.13/asyncio/runners.py", line 118, in run
      return self._loop.run_until_complete(task)
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
    File "/usr/lib/python3.13/asyncio/base_events.py", line 725, in run_until_complete
      return future.result()
             ~~~~~~~~~~~~~^^
    File "/usr/lib/python3/dist-packages/podman_compose.py", line 3707, in async_main
      await podman_compose.run()
    File "/usr/lib/python3/dist-packages/podman_compose.py", line 1859, in run
      self._parse_compose_file()
      ~~~~~~~~~~~~~~~~~~~~~~~~^^
    File "/usr/lib/python3/dist-packages/podman_compose.py", line 1954, in _parse_compose_file
      with open(filename, "r", encoding="utf-8") as f:
           ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  FileNotFoundError: [Errno 2] No such file or directory: 'container/compose.yaml'
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2131131/+subscriptions




More information about the foundations-bugs mailing list