1. Oben Sonne
  2. gnome-encfs
  3. Issues
Issue #17 invalid

ImportError: No module named gnomekeyring

created an issue

Mounting an encrypted directory isn't possible anymore. Since a while I get this error message when I try to mount such a directory:

$ ENCFS6_CONFIG=/path/to/encfs.xml gnome-encfs -m /path/to/encrypted/.directory
Traceback (most recent call last):
  File "/usr/bin/gnome-encfs", line 34, in <module>
    import gnomekeyring as gk
ImportError: No module named gnomekeyring

Comments (16)

  1. cyberpatrol reporter

    I'm using Gentoo (~amd64), and I've installed gnome-encfs with an ebuild I found in an external portage overlay for the hg version. I can't tell you the exact version number due to this bug, but I reinstalled gnome-encfs yesterday again. So it's the current hg version of gnome-encfs.

  2. cyberpatrol reporter

    No, I already have gnome-keyring-python installed. I have in the RDEPEND array of the ebuild. Latest version installed is 2.32.0-r1. So that's not the reason.

  3. Oben Sonne repo owner

    You could check if import gnomekeyring works in an interactive Python session. Once for the system Python (e.g. /usr/bin/python) and once for the Python interpreter specified in the first line of your installed gnome-encfs script. There seems to be a Python path issue on your system.

  4. cyberpatrol reporter

    There is no Python path issue on my system. /usr/bin/python2 which is called by gnome-encfs does exist.

    import gnomekeyring failed in all interactive Python sessions.

    $ /usr/bin/python Python 3.3.5 (default, Aug 10 2014, 05:30:59) [GCC 4.8.3] on linux Type "help", "copyright", "credits" or "license" for more information.

    import gnomekeyring Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named 'gnomekeyring'

    $ /usr/bin/python2 Python 2.7.9 (default, Feb 10 2015, 03:43:19) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information.

    import gnomekeyring Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named gnomekeyring

    Those packages are installed: dev-python/gnome-keyring-python 2.32.0-r1 gnome-base/gnome-keyring 3.14.0 gnome-base/libgnome-keyring 3.12.0

  5. Oben Sonne repo owner

    If gnome-keyring-python is installed, then somewhere on your system should be a file named gnomekeyring.so. In my case it is at /usr/lib64/python2.7/site-packages/gtk-2.0/gnomekeyring.so. You could use locate to find that file. If it is there, you should have an idea which Python interpreter has to be used so that the module is available. Sorry, I have no experience with Gentoo, so I cannot provide more support right now.

  6. cyberpatrol reporter

    I have gnome-keyring-python installed but no file gnomekeyring.so on my system. But I will check if this is a bug in Gentoo's gnome-keyring-python ebuild.

  7. Andrew Sabelhaus

    Hi all - a note on this for others who arrive here. On Ubuntu Vivid 15.04, the package needed to let python use gnome-keyring is called python-gnomekeyring. Installing fixes this error.

  8. Log in to comment