You are not logged in.

#1 2015-09-22 19:38:00

Raphi111
Member
Registered: 2012-07-28
Posts: 12

[SOLVED] udiskie won't start without gtk

Hello,

Today, as I did a fresh install of Arch Linux on an old laptop, I'm trying to set up a sumple way to automount usb devices. I read on the wiki that diskie with udikise might be a good option. However, I can't get udiskie to work. Every time I try to laucnh it in a terminal, I get an error. I also tried adding it to my .xinitrc but it doesn't work either.
Here is the error I'm getting:

Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 2158, in _find_spec
AttributeError: 'DynamicImporter' object has no attribute 'find_spec'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/udiskie", line 9, in <module>
    load_entry_point('udiskie==1.3.0', 'console_scripts', 'udiskie')()
  File "/usr/lib/python3.4/site-packages/udiskie/cli.py", line 205, in main
    return cls(argv).run()
  File "/usr/lib/python3.4/site-packages/udiskie/cli.py", line 179, in __init__
    self._init(config, options)
  File "/usr/lib/python3.4/site-packages/udiskie/cli.py", line 309, in _init
    import udiskie.prompt
  File "/usr/lib/python3.4/site-packages/udiskie/prompt.py", line 11, in <module>
    from gi.repository import Gtk
  File "/usr/lib/python3.4/site-packages/gi/importer.py", line 144, in find_module
    'introspection typelib not found' % namespace)
ImportError: cannot import name Gtk, introspection typelib not found

It seems that udiskie is missing a gtk lib or the whole gtk package but I don't want to install it and gtk isn't listed as a udiskie depedency.
Can anyone help me figuring out the solution ? Is gtk necessary to run uskie ?

Please apology my aproximate english.

Raphi111

Last edited by Raphi111 (2015-09-23 14:51:40)

Offline

#2 2015-09-22 21:11:56

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,422
Website

Re: [SOLVED] udiskie won't start without gtk

According to the udiskie site:

"GTK3 (+introspection). GTK2 also works if not using the tray icon."

If you don't want either, just use the 5-liner (inotifywait) from that same wiki. wink

Last edited by Alad (2015-09-22 21:12:15)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#3 2015-09-23 14:49:38

Raphi111
Member
Registered: 2012-07-28
Posts: 12

Re: [SOLVED] udiskie won't start without gtk

I gave up on udiskie as I found the package udevil to be what I was really looking for. I'm now able to automount devices with devmon even without starting an X session.

I think the udisks wiki page isn't so clear about how to easily set up automounting with udisks as it suggests quite a lot of udisks wrappers and doesn't give much details about them or which one is the easiest to use/most frequently used.
About udiskie I don't know if gtk2 should be added to the depedencies or not but on my side the problem is solved.

Thank you for your help.

Last edited by Raphi111 (2015-09-23 14:50:01)

Offline

Board footer

Powered by FluxBB