Bug ID 1208627
Summary python3-podman errors ModuleNotFoundError: No module named 'xdg.BaseDirectory'
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Containers
Assignee containers-bugowner@suse.de
Reporter david.mulder@suse.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

I installed python3-podman, then tried importing it, and got this:

>>> import podman
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.10/site-packages/podman/__init__.py", line 6, in
<module>
    from podman.client import PodmanClient, from_env
  File "/usr/lib/python3.10/site-packages/podman/client.py", line 8, in
<module>
    import xdg.BaseDirectory
ModuleNotFoundError: No module named 'xdg'
>>>

python310-xdg wasn't installed, so I installed it:

>>> import podman
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.10/site-packages/podman/__init__.py", line 6, in
<module>
    from podman.client import PodmanClient, from_env
  File "/usr/lib/python3.10/site-packages/podman/client.py", line 8, in
<module>
    import xdg.BaseDirectory
ModuleNotFoundError: No module named 'xdg.BaseDirectory'
>>> 

At a minimum, python3-podman clearly needs python3-xdg added as a
BuildRequires, but something else is still missing here (maybe there's an issue
with the version of python3-xdg?)


You are receiving this mail because: