containers / containers/podman-compose

Manual Install Fails

Open
#1,102 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
6.2k
Forks
622
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Following the [manual](https://github.com/containers/podman-compose?tab=readme-ov-file#manual) instructions then attempting to run `podman-compose --version` fails with missing dependencies.

```
$ podman-compose --version
Traceback (most recent call last):
File "/usr/local/bin/podman-compose", line 39, in
import yaml
```
All dependencies from [requirements.txt](https://github.com/containers/podman-compose/blob/main/requirements.txt) need to be installed.

```
python3 -m pip install pyyaml python-dotenv
```

**To Reproduce**
Steps to reproduce the behavior:
1. Follow the steps from the [manual](https://github.com/containers/podman-compose?tab=readme-ov-file#manual) install section.
2. Try to run `podman-compose --version`

**Expected behavior**
Expected podman-compose version to be displayed.

**Actual behavior**
Crash with missing dependency.

**Output**

```
$ podman-compose --version
Traceback (most recent call last):
File "/usr/local/bin/podman-compose", line 39, in
import yaml
...

```

**Environment:**
- OS: Linux
- podman version: lastest
- podman compose version: (git hex) latest

**Fix**
* I was able to get podman-compose to run once installed missing dependencies.
```
python3 -m pip install pyyaml python-dotenv
```
Then running
```
$ podman-compose --version
podman-compose version 1.3.0
podman version 4.3.1
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.