containers / containers/podman-compose
ModuleNotFoundError: No module named 'dotenv' - right after pip3 install podman-compose inside a conda environment?
- Dominant language
- Python
- Stars
- 6.2k
- Forks
- 622
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
I am installing podman-compose for the first time inside my conda environment.
I did a `pip3 install podman-compose`
But when I run any podman-compose command, for example `podman-compose --version`, I get a:
```
$ podman-compose --version
Traceback (most recent call last):
File "/Users/dayson/code/localschengenappointments/.conda/bin/podman-compose", line 5, in
from podman_compose import main
File "/Users/dayson/code/localschengenappointments/.conda/lib/python3.11/site-packages/podman_compose.py", line 39, in
from dotenv import dotenv_values
ModuleNotFoundError: No module named 'dotenv'
```
I then installed `pip3 install python-dotenv` and confirmed I have `python-dotenv 1.0.0` in my pip3 list, and its the same pip that's associated with the python in the conda environment. Still running into the same error.
**Output**
**Environment:**
- OS: Mac
- podman version: l 4.9.0
- podman compose version: 1.0.6
What am I doing incorrectly? Shouldn't all dependencies be autoinstalled if I use the pip approach for installing podman-compose
Thanks!
Contributor guide
Assessment
This issue has not been assessed yet.