You are not logged in.

#1 2012-01-16 18:39:28

s4ms3milia
Member
Registered: 2012-01-16
Posts: 24

[SOLVED] gnome-encfs ImportError: No module named xdg.DesktopEntry

Hi there. I just installed archlinux for the first time and so far I'm very happy. There is just one thing which I can't seem to fix:

I use gnome-encfs to encrypt data inside my dropbox as described in this blogpost on webupd8: http://www.webupd8.org/2011/06/encrypt- … -with.html

In ubuntu everything works fine, but I can't get it to work in Archlinux. I always get this error

Traceback (most recent call last):
  File "/usr/local/bin/gnome-encfs", line 30, in <module>
    from xdg.DesktopEntry import DesktopEntry as xdg_de
ImportError: No module named xdg.DesktopEntry

when I try to mount my encrypted folder like this:

gnome-encfs -a ~/Dropbox/.encrypted ~/Private

The error message looks like something is wrong with python-xdg respectively pyxdg. So I installed pyxdg but that didn't fix it.

Last edited by s4ms3milia (2012-01-16 19:04:55)

Offline

#2 2012-01-16 18:45:41

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] gnome-encfs ImportError: No module named xdg.DesktopEntry

install pyxdg


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2012-01-16 18:53:57

s4ms3milia
Member
Registered: 2012-01-16
Posts: 24

Re: [SOLVED] gnome-encfs ImportError: No module named xdg.DesktopEntry

Unfortunately that didn't fix it (as I said), but thx anyhow.

Offline

#4 2012-01-16 18:55:54

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] gnome-encfs ImportError: No module named xdg.DesktopEntry

/usr/local/bin/gnome-encfs

what's the shebang in this file? is in python2?


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2012-01-16 18:58:34

s4ms3milia
Member
Registered: 2012-01-16
Posts: 24

Re: [SOLVED] gnome-encfs ImportError: No module named xdg.DesktopEntry

#!/usr/bin/python

/usr/bin/python --version
Python 3.2.2

Offline

#6 2012-01-16 19:00:56

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] gnome-encfs ImportError: No module named xdg.DesktopEntry

change it to python2

#!/usr/bin/python2


Give what you have. To someone, it may be better than you dare to think.

Offline

#7 2012-01-16 19:04:03

s4ms3milia
Member
Registered: 2012-01-16
Posts: 24

Re: [SOLVED] gnome-encfs ImportError: No module named xdg.DesktopEntry

Thank you! That worked smile

Offline

#8 2016-05-26 21:48:06

exnanilid
Member
Registered: 2016-05-22
Posts: 4

Re: [SOLVED] gnome-encfs ImportError: No module named xdg.DesktopEntry

now the package to install seem to be
"python-xdg"
and there are /usr/local/bin/gnome-encfs (for me)
after install the package it works.

Offline

Board footer

Powered by FluxBB