You are not logged in.

#1 2015-02-09 13:08:42

pstree
Member
From: Paris, France
Registered: 2013-02-24
Posts: 37

[SOLVED] Can't start udiskie

Hello,
I used udiskie for a while as an automounting tool, but since I've reinstalled Arch from scratch I can't get it to work.
Here is what I get :

~ $ udiskie &
[1] 573
~ $ 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.1.2', 'console_scripts', 'udiskie')()
  File "/usr/lib/python3.4/site-packages/udiskie/cli.py", line 204, in main
    return cls(argv).run()
  File "/usr/lib/python3.4/site-packages/udiskie/cli.py", line 178, in __init__
    self._init(config, options)
  File "/usr/lib/python3.4/site-packages/udiskie/cli.py", line 319, in _init
    from gi.repository import Notify
  File "/usr/lib/python3.4/site-packages/gi/importer.py", line 53, in find_module
    'introspection typelib not found' % namespace)
ImportError: cannot import name Notify, introspection typelib not found

[1]+  Exit 1                  udiskie

Maybe I should install this "introspection" library but I've no idea what it is. Any help ?

Last edited by pstree (2015-02-09 16:03:37)


: (){ : |:& };:

Offline

#2 2015-02-09 15:53:21

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: [SOLVED] Can't start udiskie

ImportError: cannot import name Notify, introspection typelib not found

This means that the udiskie --notify option is enabled (which is default), so you need:
libnotify 0.7.6-1

and a notification package:
notification-daemon 3.14.1-1
or
notify-osd 0.9.34-2

But I think the first error is this one:

  File "<frozen importlib._bootstrap>", line 2158, in _find_spec
AttributeError: 'DynamicImporter' object has no attribute 'find_spec'

I don't know what it is, but maybe the notification message, when it will be working, will tell you more about the error.

Offline

#3 2015-02-09 16:03:19

pstree
Member
From: Paris, France
Registered: 2013-02-24
Posts: 37

Re: [SOLVED] Can't start udiskie

Installing libnotify and notification-daemon solved the problem, though they were only mentioned as optional dependencies.
Thank you very much !


: (){ : |:& };:

Offline

#4 2015-02-09 16:04:42

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Can't start udiskie

man udiskie

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB