Unity Tweak Tool crashes with ImportError: No module named 'xdg.BaseDirectory'; 'xdg' is not a package

Bug #1659890 reported by Dan Darie
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Unity Tweak Tool
New
Undecided
Unassigned

Bug Description

Unity Tweak Tool crashes on start:

Traceback (most recent call last):
  File "./unity-tweak-tool", line 33, in <module>
    import UnityTweakTool
  File "/home/dan/unity-tweak-tool/UnityTweakTool/__init__.py", line 46, in <module>
    from UnityTweakTool.config.logging import LOGFILE,LOGFMT,LOGLVL,CACHEDIR
  File "/home/dan/unity-tweak-tool/UnityTweakTool/config/logging.py", line 35, in <module>
    import xdg.BaseDirectory
ImportError: No module named 'xdg.BaseDirectory'; 'xdg' is not a package

OS: Ubuntu 16.10
Kernel: 4.10.0-041000rc5-generic

unity-tweak-tool/yakkety,yakkety,now 0.0.7ubuntu2 all [installed]
python/yakkety,now 2.7.11-2 amd64 [installed,automatic]
python3/yakkety,now 3.5.1-4 amd64 [installed]
python-xdg/yakkety,yakkety,now 0.25-4 all [installed]
python3-xdg/yakkety,yakkety,now 0.25-4 all [installed]

Revision history for this message
Rico Tiongson (hikari9) wrote :

Having a similar problem on Ubuntu 16.04 LTS. The module "UnityTweakTool" being missing seems to be the problem, even after reinstall. Here is my traceback:

$ unity-tweak-tool

Traceback (most recent call last):
  File "/usr/bin/unity-tweak-tool", line 33, in <module>
    import UnityTweakTool
ImportError: No module named UnityTweakTool

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.