Kazam doesn't start

Bug #1956472 reported by Erik Nijenhuis
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Kazam Screencaster
Invalid
Undecided
Unassigned
kazam (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

When I start kazam on Ubuntu 20.04 (tried version from snap and apt) the application crashes due to missing the xdg.BaseDirectory module.

The exact error message is:
WARNING Kazam - Failed to correctly detect operating system.
Traceback (most recent call last):
  File "/usr/bin/kazam", line 148, 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'

The python module version of xdg is 5.1.1 which seems the latest I can get (https://pypi.org/project/xdg/#history).

Regards,

Erik Nijenhuis

Tags: xdg
Revision history for this message
Erik Nijenhuis (maclotsen) wrote :

Forgot to mention the version of Kazam I used: kazam 1.4.5 'NCC-80102'

tags: added: xdg
Revision history for this message
niknah (hankin0) wrote :

kazam uses "pyxdg", not "xdg"

xdg.BaseDirectory is provided by the python3-xdg package. It should be installed with the kazam package.

Revision history for this message
Erik Nijenhuis (maclotsen) wrote :

I'm also using that package for a project I'm developing. Already have it installed.

apt -s install python3-xdg
OPMERKING: Dit is slechts een simulatie!
    Voor daadwerkelijke uitvoering heeft apt beheerdersrechten nodig.
    Houd er ook rekening mee dat vergrendeling is uitgeschakeld.
    Steun dus niet op haar relevantie voor de huidige concrete situatie!
Pakketlijsten worden ingelezen... Klaar
Boom van vereisten wordt opgebouwd
De statusinformatie wordt gelezen... Klaar
python3-xdg is reeds de nieuwste versie (0.26-1ubuntu1).
python3-xdg staat ingesteld op handmatig geïnstalleerd.
0 opgewaardeerd, 0 nieuw geïnstalleerd, 0 te verwijderen en 58 niet opgewaardeerd.

Revision history for this message
Erik Nijenhuis (maclotsen) wrote :

Sorry for the dutch.

apt -s install python3-xdg
NOTE: This is only a simulation!
      apt needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-xdg is already the newest version (0.26-1ubuntu1).
python3-xdg set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 58 not upgraded.

Revision history for this message
niknah (hankin0) wrote :

You may also have the "xdg" package installed somewhere else. Both pyxdg & xdg provide the "xdg" namespace. There is a conflict here...
https://github.com/srstevenson/xdg/issues/35

Either remove it or use python venv
sudo pip3 uninstall xdg

or venv...
https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/

Revision history for this message
Erik Nijenhuis (maclotsen) wrote :

Thanks, that did the job!

Changed in kazam:
status: New → Invalid
Changed in kazam (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.