Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kazam fails to start #61

Open
pradipcyb opened this issue May 28, 2021 · 2 comments
Open

kazam fails to start #61

pradipcyb opened this issue May 28, 2021 · 2 comments

Comments

@pradipcyb
Copy link

pradipcyb commented May 28, 2021

The full traceback
/usr/bin/kazam:32: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded. from gi.repository import Gtk Traceback (most recent call last): File "/usr/bin/kazam", line 146, in <module> from kazam.app import KazamApp File "/usr/lib/python3/dist-packages/kazam/app.py", line 35, in <module> from kazam.backend.prefs import * File "/usr/lib/python3/dist-packages/kazam/backend/prefs.py", line 26, in <module> from xdg.BaseDirectory import xdg_config_home ModuleNotFoundError: No module named 'xdg.BaseDirectory'
I tried installing python3-gi and python3-xdg but it didn't go away.

@niknah
Copy link

niknah commented May 29, 2021

You might have another xdg folder somewhere else.

See where python is getting xdg from and if that folder has BaseDirectory.py

PYTHONVERBOSE=2 python3
import xdg.BaseDirectory

@andras-tim
Copy link

I have the same issue on Ubuntu 20.04.

The /usr/local/lib/python3.8/dist-packages/xdg package has overridden the /usr/lib/python3/dist-packages/xdg package...

I don't know how could it be (maybe xdg VS pyxdg?), but I renamed it and then things started to work:

sudo mv /usr/local/lib/python3.8/dist-packages/xdg{,.orig}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants