ImportError: No module named extras

Bug #561997 reported by leigh123linux on 2010-04-13
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Awn Extras
Medium
Michal Hruby

Bug Description

I can't run most of the applets ( awn-extras-0.4.0 ) , heres the error output.

** (avant-window-navigator:27433): DEBUG: Spawned awn-applet[28506] for "quit-log-out.desktop", UID: 1271130231, XID: 56642457
Traceback (most recent call last):
  File "/usr/share/avant-window-navigator/applets/quit/quit.py", line 28, in <module>
    from awn.extras import awnlib, __version__
ImportError: No module named extras
** (avant-window-navigator:27433): DEBUG: Spawned awn-applet[28508] for "mail.desktop", UID: 1271130237, XID: 56643542
Traceback (most recent call last):
  File "/usr/share/avant-window-navigator/applets/mail/mail.py", line 28, in <module>
    from awn import extras
ImportError: cannot import name extras
** (avant-window-navigator:27433): DEBUG: Spawned awn-applet[28592] for "mimenu.desktop", UID: 1271130252, XID: 56644810
** (avant-window-navigator:27433): DEBUG: Spawned awn-applet[28593] for "mount.desktop", UID: 1271130259, XID: 56646886
Traceback (most recent call last):
  File "/usr/share/avant-window-navigator/applets/mount/mount.py", line 26, in <module>
    from awn.extras import awnlib, __version__
ImportError: No module named extras
** (avant-window-navigator:27433): DEBUG: Spawned awn-applet[28595] for "notification-area.desktop", UID: 1271130268, XID: 56647999

** ERROR **: notification-area.vala:644: There is already another notification area running on this screen!
aborting...
** (avant-window-navigator:27433): DEBUG: Spawned awn-applet[28597] for "pandora.desktop", UID: 1271130285, XID: 56651457
Traceback (most recent call last):
  File "/usr/share/avant-window-navigator/applets/pandora/pandora.py", line 26, in <module>
    from awn.extras import awnlib
ImportError: No module named extras

Related branches

Michal Hruby (mhr3) wrote :

And is the extras module from shared/python directory installed in proper location?

Changed in awn-extras:
status: New → Incomplete

Well I checked the location and it looked OK

/usr/lib/python2.6/site-packages/awn/extras
/usr/lib/python2.6/site-packages/awn/extras/__init__.py
/usr/lib/python2.6/site-packages/awn/extras/__init__.pyc
/usr/lib/python2.6/site-packages/awn/extras/__init__.pyo
/usr/lib/python2.6/site-packages/awn/extras/awnlib.py
/usr/lib/python2.6/site-packages/awn/extras/awnlib.pyc
/usr/lib/python2.6/site-packages/awn/extras/awnlib.pyo
/usr/lib/python2.6/site-packages/awn/extras/awnmediaplayers.py
/usr/lib/python2.6/site-packages/awn/extras/awnmediaplayers.pyc
/usr/lib/python2.6/site-packages/awn/extras/awnmediaplayers.pyo
/usr/lib/python2.6/site-packages/awn/extras/configbinder.py
/usr/lib/python2.6/site-packages/awn/extras/configbinder.pyc
/usr/lib/python2.6/site-packages/awn/extras/configbinder.pyo
/usr/lib/python2.6/site-packages/awn/extras/threadqueue.py
/usr/lib/python2.6/site-packages/awn/extras/threadqueue.pyc
/usr/lib/python2.6/site-packages/awn/extras/threadqueue.pyo
/usr/lib64/awn
/usr/lib64/awn/applets
/usr/lib64/awn/applets/awnsystemmonitor
/usr/lib64/awn/applets/awnsystemmonitor/awnsystemmonitor.so
/usr/lib64/awn/applets/awnterm
/usr/lib64/awn/applets/awnterm/awnterm.so
/usr/lib64/awn/applets/cairo-menu
/usr/lib64/awn/applets/cairo-menu/cairo-menu.so
/usr/lib64/awn/applets/cairo-menu/gnome-menu-builder.so
/usr/lib64/awn/applets/digital-clock
/usr/lib64/awn/applets/digital-clock/digital-clock.so
/usr/lib64/awn/applets/garbage
/usr/lib64/awn/applets/garbage/garbage.so
/usr/lib64/awn/applets/main-menu
/usr/lib64/awn/applets/main-menu/main-menu.so
/usr/lib64/awn/applets/notification-area
/usr/lib64/awn/applets/notification-area/notification-area.so
/usr/lib64/awn/applets/notification-daemon
/usr/lib64/awn/applets/notification-daemon/notification-daemon.so
/usr/lib64/awn/applets/places
/usr/lib64/awn/applets/places/places.so
/usr/lib64/awn/applets/shinyswitcher
/usr/lib64/awn/applets/shinyswitcher/shinyswitcher.so
/usr/lib64/awn/applets/showdesktop
/usr/lib64/awn/applets/showdesktop/showdesktop.so
/usr/lib64/awn/applets/sysmon
/usr/lib64/awn/applets/sysmon/sysmon.so
/usr/lib64/awn/applets/webapplet
/usr/lib64/awn/applets/webapplet/webapplet.so

It works if I swap to /usr/lib64/python2.6/site-packages/awn/extras ( IMO these are noarch bits and should belong in /usr/lib/python2.6/site-packages/awn/extras )

Is this a suitable fix?

daniel (daniel-solgalov) wrote :

I also have such a bug, I'm on OpenSuse 64 so i configured both awn and awn-extras with --libdir=/usr/local/lib64
I tried to apply patch but the result is the same.

Traceback (most recent call last):
  File "/usr/local/share/avant-window-navigator/applets/battery/battery.py", line 26, in <module>
    from awn.extras import awnlib, __version__
ImportError: No module named extras
** (avant-window-navigator:22248): DEBUG: Spawned awn-applet[22274] for "calendar.desktop", UID: 1271166858, XID: 62940252
Traceback (most recent call last):
  File "/usr/local/share/avant-window-navigator/applets/calendar/clockcal.py", line 36, in <module>
    from awn.extras import _
ImportError: No module named extras

Michal Hruby (mhr3) wrote :

This is the correct patch.

Your patch doesn't work for me ( Fedora )

[leigh@localhost ~]$ avant-window-navigatorScreen is composited
** (avant-window-navigator:20545): DEBUG: Updating gtk theme colours
** (avant-window-navigator:20545): DEBUG: Updating dialog colours
** (avant-window-navigator:20545): DEBUG: Spawned awn-applet[20546] for "quick-prefs.desktop", UID: 1, XID: 92274733
** (avant-window-navigator:20545): DEBUG: Spawned awn-applet[20548] for "taskmanager.desktop", UID: 3, XID: 92274734
** (avant-window-navigator:20545): DEBUG: Spawned awn-applet[20549] for "cpufreq.desktop", UID: 1271147268, XID: 92274735
** (avant-window-navigator:20545): DEBUG: Spawned awn-applet[20550] for "battery.desktop", UID: 1271176746, XID: 92274736

** (awn-applet:20548): CRITICAL **: File not found: '/usr/share/applications/firefox.desktop'
** (awn-applet:20548): DEBUG: task_manager_refresh_launcher_paths: Bad desktop file '/usr/share/applications/firefox.desktop'
Traceback (most recent call last):
  File "/usr/share/avant-window-navigator/applets/cpufreq/cpufreq.py", line 26, in <module>
    from awn.extras import awnlib, __version__
ImportError: No module named extras
Traceback (most recent call last):
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 26, in <module>
    from awn.extras import awnlib, __version__
ImportError: No module named extras

** (awn-applet:20548): CRITICAL **: File not found: '/usr/share/applications/firefox.desktop'
** (awn-applet:20548): DEBUG: task_manager_refresh_launcher_paths: Bad desktop file '/usr/share/applications/firefox.desktop'
Applet [1] flags: 1024: DockletHandlesPositionChange
** (avant-window-navigator:20545): DEBUG: Spawned awn-applet[20562] for "battery.desktop", UID: 1271176844, XID: 92301441
Traceback (most recent call last):
  File "/usr/share/avant-window-navigator/applets/battery/battery.py", line 26, in <module>
    from awn.extras import awnlib, __version__
ImportError: No module named extras
** (avant-window-navigator:20545): DEBUG: Spawned awn-applet[20566] for "cpufreq.desktop", UID: 1271176852, XID: 92304795
Traceback (most recent call last):
  File "/usr/share/avant-window-navigator/applets/cpufreq/cpufreq.py", line 26, in <module>
    from awn.extras import awnlib, __version__
ImportError: No module named extras

Michal Hruby (mhr3) wrote :

Did you run autogen after applying it? Of course you're free to use your patch for the package, but if my patch doesn't work then we should find another solution.

No I didn't run autogen, after adding this

%build
intltoolize -f || exit 1
autoreconf -v --install || exit 1
%configure --enable-maintainer-mode \
           --disable-static \
           --disable-pymod-checks \
           --with-webkit \
           --enable-shave \
           --with-gnu-ld
make %{?_smp_mflags}

%install

your patch works.

Michal Hruby (mhr3) on 2010-04-14
Changed in awn-extras:
status: Incomplete → Confirmed
assignee: nobody → Michal Hruby (mhr3)
importance: Undecided → Medium
Michal Hruby (mhr3) on 2010-04-19
Changed in awn-extras:
milestone: none → 0.4.2
Michal Hruby (mhr3) on 2010-04-22
Changed in awn-extras:
status: Confirmed → Fix Committed
Povilas Kanapickas (p12) on 2013-11-17
Changed in awn-extras:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers