(On using Compiz) Failed on initialization: launcher_autohide error

Bug #720960 reported by jimcox
This bug affects 374 people
Affects Status Importance Assigned to Milestone
Ubuntu Tweak
Fix Released
Critical
Ding Zhou

Bug Description

using daily build of natty (2/17). Message said Distribution: Ubuntu 11.04 natty
Application: Ubuntu Tweak 0.5.11
Desktop: gnome

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/mainwindow.py", line 502, in setup_notebook
    page = module()
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py", line 325, in __init__
    self.create_interface()
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py", line 351, in create_interface
    self.launcher_autohide = UnityLauncherAutoHide(_('Make the launcher hide automatically after some time inactive'))
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py", line 274, in __init__
    self.autohide_setting = CompizSetting(self.plugin, 'launcher_autohide')
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py", line 149, in __init__
    self.__setting = self.__plugin.create_setting(key, target)
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py", line 144, in create_setting
    return settings[key]
KeyError: 'launcher_autohide'

Ding Zhou (tualatrix)
summary: - tried to use compiz; faiiled on initialization.
+ tried to use compiz; faiiled on initialization: launcher_autohide error
Revision history for this message
J. Austin Rodriguez (jeanaustinr) wrote : Re: tried to use compiz; faiiled on initialization: launcher_autohide error

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue that you reported is one that should be reproducible with the live environment of the Desktop CD of the development release - Natty Narwhal. It would help us greatly if you could test with it so we can work on getting it fixed in the next release of Ubuntu. You can find out more about the development release at http://www.ubuntu.com/testing/ . Thanks again and we appreciate your help.

Revision history for this message
J. Austin Rodriguez (jeanaustinr) wrote :

Natty Narwhal is still in Alpha release as of this writing so it is still undergoing a lot of coding. Once the Beta is released, please verify this bug and report any issues you may encounter here. Thank you very much for your support.

summary: - tried to use compiz; faiiled on initialization: launcher_autohide error
+ (On using Compiz) Failed on initialization: launcher_autohide error
mody501 (a-mody-501)
Changed in ubuntu-tweak:
status: New → Confirmed
Revision history for this message
Lorenzo (lorped) wrote :

Bug confirmend in Natty Beta-1

Revision history for this message
Fabio Rotondo (fabio-rotondo) wrote :

Bug confirmend in Natty Beta-1

Revision history for this message
J. Austin Rodriguez (jeanaustinr) wrote :

I'm adding a number of duplicate bug reports here. This thing is hot! :-)

Revision history for this message
Drew Dormann (drew-pobox) wrote :

These are the details I can provide when I get this bug.

STR:

Open Ubuntu Tweak
At any time, click the "Compiz Settings" icon on the left panel
Crash report occurs, but Ubuntu Tweak itself doesn't crash.
The expected main panel is not shown. Instead, a simple "This Module Encountered An Error While Loading" panel.

(Reproduction rate is 100%)

All other panels in Ubuntu Tweak seem to work as expected.

Revision history for this message
lance j. misner (celeryman90) wrote : Re: [Bug 720960] Re: (On using Compiz) Failed on initialization: launcher_autohide error

That is exactly what happens. Any workaround for it? Thank you. And if I'm
not supposed to reply to these just let me know. Thanks again

On Apr 10, 2011 11:16 AM, "Drew Dormann" <email address hidden> wrote:

These are the details I can provide when I get this bug.

STR:

Open Ubuntu Tweak
At any time, click the "Compiz Settings" icon on the left panel
Crash report occurs, but Ubuntu Tweak itself doesn't crash.
The expected main panel is not shown. Instead, a simple "This Module
Encountered An Error While Loading" panel.

(Reproduction rate is 100%)

All other panels in Ubuntu Tweak seem to work as expected.

--
You received this bug notification because you are a direct subscriber
of a duplicate bug (7479...

Revision history for this message
jtlb (jt-lb) wrote :

this bug occurs in the function "UnityLauncherAutoHide" of file "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py" which is called from line 351.

if you do not require this specific feature, you can replace the code line 350 to 351

if system.CODENAME == 'natty':
    self.launcher_autohide = None
else:
    self.launcher_autohide = None

by this single line: self.launcher_autohide = None

Revision history for this message
jtlb (jt-lb) wrote :

here is a solution to fix this bug. Indeed, the property name changed. Just had to fix it along with it's associated logic.

Revision history for this message
jtlb (jt-lb) wrote :

Oops, just forgot to say that this patch invalidates the first workaround I published

Revision history for this message
Mihir Mone (monemihir) wrote :

This bug still exists...I am using the daily build of today i.e 19 Apr 2011 and just encountered it.

Revision history for this message
JarekJ83 (jarekj83) wrote :

yep, its still exist, ladies and gentls, we have just few days to world premiere, and u gonna put this out with such a big bug?

Revision history for this message
jtlb (jt-lb) wrote :

does my patch work for you both ?

Revision history for this message
JarekJ83 (jarekj83) wrote :

^but if i add this patch, launcher will not autohide anymore? if yes i dont want to try it:)

Revision history for this message
max3871 (max38711) wrote :

Sorry but no,

Distribution: Ubuntu 11.04 natty
Application: Ubuntu Tweak 0.5.11
Desktop: gnome

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/mainwindow.py", line
502, in setup_notebook
    page = module()
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
line 325, in __init__
    self.create_interface()
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
line 351, in create_interface
    self.launcher_autohide = UnityLauncherAutoHide(_('Make the launcher hide
automatically after some time inactive'))
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
line 274, in __init__
    self.autohide_setting = CompizSetting(self.plugin, 'launcher_autohide')
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
line 149, in __init__
    self.__setting = self.__plugin.create_setting(key, target)
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
line 144, in create_setting
    return settings[key]
KeyError: 'launcher_autohide'

2011/4/19 jtlb <email address hidden>

> does my patch work for you both ?
>
> --
> You received this bug notification because you are a direct subscriber
> of a duplicate bug (753396).
> https://bugs.launchpad.net/bugs/720960
>
> Title:
> (On using Compiz) Failed on initialization: launcher_autohide error
>
> Status in Ubuntu Tweak:
> Confirmed
>
> Bug description:
> using daily build of natty (2/17). Message said Distribution: Ubuntu
> 11.04 natty
> Application: Ubuntu Tweak 0.5.11
> Desktop: gnome
>
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/mainwindow.py", line
> 502, in setup_notebook
> page = module()
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 325, in __init__
> self.create_interface()
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 351, in create_interface
> self.launcher_autohide = UnityLauncherAutoHide(_('Make the launcher
> hide automatically after some time inactive'))
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 274, in __init__
> self.autohide_setting = CompizSetting(self.plugin,
> 'launcher_autohide')
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 149, in __init__
> self.__setting = self.__plugin.create_setting(key, target)
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 144, in create_setting
> return settings[key]
> KeyError: 'launcher_autohide'
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu-tweak/+bug/720960/+subscribe
>

Revision history for this message
max3871 (max38711) wrote :

sorry, I speak verry litle english, I don't understand the problem

2011/4/19 JarekJ83 <email address hidden>

> ^but if i add this patch, launcher will not autohide anymore? if yes i
> dont want to try it:)
>
> --
> You received this bug notification because you are a direct subscriber
> of a duplicate bug (753396).
> https://bugs.launchpad.net/bugs/720960
>
> Title:
> (On using Compiz) Failed on initialization: launcher_autohide error
>
> Status in Ubuntu Tweak:
> Confirmed
>
> Bug description:
> using daily build of natty (2/17). Message said Distribution: Ubuntu
> 11.04 natty
> Application: Ubuntu Tweak 0.5.11
> Desktop: gnome
>
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/mainwindow.py", line
> 502, in setup_notebook
> page = module()
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 325, in __init__
> self.create_interface()
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 351, in create_interface
> self.launcher_autohide = UnityLauncherAutoHide(_('Make the launcher
> hide automatically after some time inactive'))
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 274, in __init__
> self.autohide_setting = CompizSetting(self.plugin,
> 'launcher_autohide')
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 149, in __init__
> self.__setting = self.__plugin.create_setting(key, target)
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 144, in create_setting
> return settings[key]
> KeyError: 'launcher_autohide'
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu-tweak/+bug/720960/+subscribe
>

Revision history for this message
Lorenzo (lorped) wrote :

Il 15/04/2011 12:27, jtlb ha scritto:
> here is a solution to fix this bug. Indeed, the property name changed.
> Just had to fix it along with it's associated logic.
>
> ** Patch added: "key rename"
> https://bugs.launchpad.net/ubuntu-tweak/+bug/720960/+attachment/2039917/+files/compiz.diff
>
This works like a charm, thanks

Revision history for this message
JarekJ83 (jarekj83) wrote :

^what i must do with this file?

Revision history for this message
jtlb (jt-lb) wrote :

I just forked ubuntu-tweaks on git-hub to submit the correction. I just hope it will be merged soon !

https://github.com/tualatrix/ubuntu-tweak/pull/2

Revision history for this message
max3871 (max38711) wrote :

ok thanks !

2011/4/19, jtlb <email address hidden>:
> I just forked ubuntu-tweaks on git-hub to submit the correction. I just
> hope it will be merged soon !
>
> https://github.com/tualatrix/ubuntu-tweak/pull/2
>
> --
> You received this bug notification because you are a direct subscriber
> of a duplicate bug (753396).
> https://bugs.launchpad.net/bugs/720960
>
> Title:
> (On using Compiz) Failed on initialization: launcher_autohide error
>
> Status in Ubuntu Tweak:
> Confirmed
>
> Bug description:
> using daily build of natty (2/17). Message said Distribution: Ubuntu
> 11.04 natty
> Application: Ubuntu Tweak 0.5.11
> Desktop: gnome
>
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/mainwindow.py", line
> 502, in setup_notebook
> page = module()
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 325, in __init__
> self.create_interface()
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 351, in create_interface
> self.launcher_autohide = UnityLauncherAutoHide(_('Make the launcher
> hide automatically after some time inactive'))
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 274, in __init__
> self.autohide_setting = CompizSetting(self.plugin,
> 'launcher_autohide')
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 149, in __init__
> self.__setting = self.__plugin.create_setting(key, target)
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 144, in create_setting
> return settings[key]
> KeyError: 'launcher_autohide'
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu-tweak/+bug/720960/+subscribe
>

Revision history for this message
El Microvio (el-microvio) wrote :

The solution is ok. Edit line 351 on flie pyton 2.7

-----Mensaje original-----
De: jtlb <email address hidden>
Reply-to: Bug 720960 <email address hidden>
Para: <email address hidden>
Asunto: [Bug 720960] Re: (On using Compiz) Failed on initialization:
launcher_autohide error
Fecha: Tue, 19 Apr 2011 21:37:22 -0000

I just forked ubuntu-tweaks on git-hub to submit the correction. I just
hope it will be merged soon !

https://github.com/tualatrix/ubuntu-tweak/pull/2

Revision history for this message
susema (susema) wrote :

Same this and worked with "env LANG=tr" or "env LANG=C" for me.

Revision history for this message
max3871 (max38711) wrote :

It's works !!

2011/4/21 susema <email address hidden>

> Same this and worked with "env LANG=tr" or "env LANG=C" for me.
>
> --
> You received this bug notification because you are a direct subscriber
> of a duplicate bug (753396).
> https://bugs.launchpad.net/bugs/720960
>
> Title:
> (On using Compiz) Failed on initialization: launcher_autohide error
>
> Status in Ubuntu Tweak:
> Confirmed
>
> Bug description:
> using daily build of natty (2/17). Message said Distribution: Ubuntu
> 11.04 natty
> Application: Ubuntu Tweak 0.5.11
> Desktop: gnome
>
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/mainwindow.py", line
> 502, in setup_notebook
> page = module()
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 325, in __init__
> self.create_interface()
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 351, in create_interface
> self.launcher_autohide = UnityLauncherAutoHide(_('Make the launcher
> hide automatically after some time inactive'))
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 274, in __init__
> self.autohide_setting = CompizSetting(self.plugin,
> 'launcher_autohide')
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 149, in __init__
> self.__setting = self.__plugin.create_setting(key, target)
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 144, in create_setting
> return settings[key]
> KeyError: 'launcher_autohide'
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu-tweak/+bug/720960/+subscribe
>

Revision history for this message
armagedda (098098098tf) wrote :

I try to reinstall.
:)

Il giorno gio, 21/04/2011 alle 07.54 +0000, max3871 ha scritto:
> It's works !!
>
> 2011/4/21 susema <email address hidden>
>
> > Same this and worked with "env LANG=tr" or "env LANG=C" for me.
> >
> > --
> > You received this bug notification because you are a direct subscriber
> > of a duplicate bug (753396).
> > https://bugs.launchpad.net/bugs/720960
> >
> > Title:
> > (On using Compiz) Failed on initialization: launcher_autohide error
> >
> > Status in Ubuntu Tweak:
> > Confirmed
> >
> > Bug description:
> > using daily build of natty (2/17). Message said Distribution: Ubuntu
> > 11.04 natty
> > Application: Ubuntu Tweak 0.5.11
> > Desktop: gnome
> >
> > Traceback (most recent call last):
> > File "/usr/lib/python2.7/dist-packages/ubuntutweak/mainwindow.py", line
> > 502, in setup_notebook
> > page = module()
> > File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> > line 325, in __init__
> > self.create_interface()
> > File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> > line 351, in create_interface
> > self.launcher_autohide = UnityLauncherAutoHide(_('Make the launcher
> > hide automatically after some time inactive'))
> > File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> > line 274, in __init__
> > self.autohide_setting = CompizSetting(self.plugin,
> > 'launcher_autohide')
> > File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> > line 149, in __init__
> > self.__setting = self.__plugin.create_setting(key, target)
> > File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> > line 144, in create_setting
> > return settings[key]
> > KeyError: 'launcher_autohide'
> >
> > To unsubscribe from this bug, go to:
> > https://bugs.launchpad.net/ubuntu-tweak/+bug/720960/+subscribe
> >
>

Revision history for this message
El Microvio (el-microvio) wrote :

The solution that worked for me on python 2.7 bug was to edit, as root,
line 351 of "/
usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py"leaving
the value to "None". I tried it on different computers.

You can check the bug thread and that's the way to go.

-----Mensaje original-----
De: susema <email address hidden>
Reply-to: Bug 720960 <email address hidden>
Para: <email address hidden>
Asunto: [Bug 720960] Re: (On using Compiz) Failed on initialization:
launcher_autohide error
Fecha: Thu, 21 Apr 2011 07:38:13 -0000

"/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py"

Revision history for this message
El Microvio (el-microvio) wrote :

this bug occurs in the function "UnityLauncherAutoHide" of file
"/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py" which
is called from line 351.

if you do not require this specific feature, you can replace the code
line 350 to 351

if system.CODENAME == 'natty':
    self.launcher_autohide = None
else:
    self.launcher_autohide = None

by this single line: self.launcher_autohide = None

--
You received this bug notification because you are a direct subscriber
of a duplicate bug (754181).
https://bugs.launchpad.net/bugs/720960

Title:
  (On using Compiz) Failed on initialization: launcher_autohide error

Status in Ubuntu Tweak:
  Confirmed

Bug description:
  using daily build of natty (2/17). Message said Distribution: Ubuntu
11.04 natty
  Application: Ubuntu Tweak 0.5.11
  Desktop: gnome

  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/ubuntutweak/mainwindow.py",
line 502, in setup_notebook
      page = module()
    File
"/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py", line
325, in __init__
      self.create_interface()
    File
"/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py", line
351, in create_interface
      self.launcher_autohide = UnityLauncherAutoHide(_('Make the
launcher hide automatically after some time inactive'))
    File
"/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py", line
274, in __init__
      self.autohide_setting = CompizSetting(self.plugin,
'launcher_autohide')
    File
"/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py", line
149, in __init__
      self.__setting = self.__plugin.create_setting(key, target)
    File
"/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py", line
144, in create_setting
      return settings[key]
  KeyError: 'launcher_autohide'

-----Mensaje original-----
De: susema <email address hidden>
Reply-to: Bug 720960 <email address hidden>
Para: <email address hidden>
Asunto: [Bug 720960] Re: (On using Compiz) Failed on initialization:
launcher_autohide error
Fecha: Thu, 21 Apr 2011 07:38:13 -0000

Same this and worked with "env LANG=tr" or "env LANG=C" for me.

Revision history for this message
armagedda (098098098tf) wrote :

thank you very much.
I'll try to do it.
have a nice Easter.
Filippo
Il giorno gio, 21/04/2011 alle 18.28 +0000, El Microvio ha scritto:
> The solution that worked for me on python 2.7 bug was to edit, as root,
> line 351 of "/
> usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py"leaving
> the value to "None". I tried it on different computers.
>
> You can check the bug thread and that's the way to go.
>
>
> -----Mensaje original-----
> De: susema <email address hidden>
> Reply-to: Bug 720960 <email address hidden>
> Para: <email address hidden>
> Asunto: [Bug 720960] Re: (On using Compiz) Failed on initialization:
> launcher_autohide error
> Fecha: Thu, 21 Apr 2011 07:38:13 -0000
>
> "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py"
>

Revision history for this message
Jake (client-alive) wrote :

As of today, we're only days from the release of Ubuntu 11.04 (it isn't alpha any more) and I get this same bug/ error when trying to run compiz settings in Ubuntu Tweak. I thought maybe ccsm, having been on the machine also, was the problem - so uninstalled it and then restarted computer. When I tried to run compiz settings again in UT I got a prompt to install advanced settimgs so I did. Then the screen in the window was just blank (no settings or anything to see in it). I restarted UT and when clicking compiz settings again I got the same error message. It is the same error message as the one at the top of the page (the bug).

Btw: I went back into Synaptic after all was said and done and saw that ccsm is installed again. I guess that's what was installed when I accepted the prompt to install advanced settings in UT (described above).

Thanks

Revision history for this message
Jake (client-alive) wrote :

I see posts 17, 21, and 25 and I followed the link in post 17. Unfortunately, for me, seeing something like that is about like coming face to face with an extra terrestrial from mars! I wouldn't know what to do with something like that if my life depended on it. Guess I'm stuck with it the way it is for now. Sure hope it gets fixed. I just don't know if UT updates automatically or what I would have to do to get the update I'd need once it is fixed. I don't see any way to access that in UT and get it to look for an update.

:)

Revision history for this message
El Microvio (el-microvio) wrote :

The solution that worked for me on python 2.7 bug was to edit, as root,
line 351 of "/
usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py"leaving
the value to "None". I tried it on different computers.

You can check the bug thread and that's the way to go.

this bug occurs in the function "UnityLauncherAutoHide" of file
"/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py" which
is called from line 351.

if you do not require this specific feature, you can replace the code
line 350 to 351

if system.CODENAME == 'natty':
    self.launcher_autohide = None
else:
    self.launcher_autohide = None

by this single line: self.launcher_autohide = None

-----Mensaje original-----
De: Jake <email address hidden>
Reply-to: Bug 720960 <email address hidden>
Para: <email address hidden>
Asunto: [Bug 720960] Re: (On using Compiz) Failed on initialization:
launcher_autohide error
Fecha: Sat, 23 Apr 2011 22:16:25 -0000

I see posts 17, 21, and 25 and I followed the link in post 17.
Unfortunately, for me, seeing something like that is about like coming
face to face with an extra terrestrial from mars! I wouldn't know what
to do with something like that if my life depended on it. Guess I'm
stuck with it the way it is for now. Sure hope it gets fixed. I just
don't know if UT updates automatically or what I would have to do to get
the update I'd need once it is fixed. I don't see any way to access that
in UT and get it to look for an update.

:)

Revision history for this message
jtlb (jt-lb) wrote :

HI,

Here is a "one line command" to apply the previously supplied patch file.
Applying the patch file will restore the full featured version of ubuntu-tweaks for Natty (i.e. with the "panel autohide mode" control feature)

command line:

wget https://launchpadlibrarian.net/69480996/compiz.diff -qO - | sudo patch /usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py

This is the file attached to the thread

:)

Revision history for this message
JarekJ83 (jarekj83) wrote :

^it is workin, when u fix line 351 as stated.

Revision history for this message
Randall Lozano (randall-lozano) wrote :

Will this be automatic? No more manual tweak? Thank you.

Randall

On Sun, Apr 24, 2011 at 5:12 PM, jtlb <email address hidden> wrote:

> HI,
>
> Here is a "one line command" to apply the previously supplied patch file.
> Applying the patch file will restore the full featured version of
> ubuntu-tweaks for Natty (i.e. with the "panel autohide mode" control
> feature)
>
> command line:
>
> wget https://launchpadlibrarian.net/69480996/compiz.diff -qO - | sudo
> patch /usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py
>
>
> This is the file attached to the thread
>
> :)
>
> --
> You received this bug notification because you are a direct subscriber
> of a duplicate bug (748515).
> https://bugs.launchpad.net/bugs/720960
>
> Title:
> (On using Compiz) Failed on initialization: launcher_autohide error
>
> Status in Ubuntu Tweak:
> Confirmed
>
> Bug description:
> using daily build of natty (2/17). Message said Distribution: Ubuntu
> 11.04 natty
> Application: Ubuntu Tweak 0.5.11
> Desktop: gnome
>
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/mainwindow.py", line
> 502, in setup_notebook
> page = module()
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 325, in __init__
> self.create_interface()
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 351, in create_interface
> self.launcher_autohide = UnityLauncherAutoHide(_('Make the launcher
> hide automatically after some time inactive'))
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 274, in __init__
> self.autohide_setting = CompizSetting(self.plugin,
> 'launcher_autohide')
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 149, in __init__
> self.__setting = self.__plugin.create_setting(key, target)
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 144, in create_setting
> return settings[key]
> KeyError: 'launcher_autohide'
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu-tweak/+bug/720960/+subscribe
>

Revision history for this message
jtlb (jt-lb) wrote :

What do you mean by "automatic" ?

This command will "automatically" apply the "manual tweak" to get everything working back on the Natty version.
Btw, you won't have to edit any file manually !

Revision history for this message
El Microvio (el-microvio) wrote :

The solution that worked for me on python 2.7 bug was to edit, as root,
line 351 of "/
usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py"leaving
the value to "None". I tried it on different computers.

You can check the bug thread and that's the way to go.

this bug occurs in the function "UnityLauncherAutoHide" of file
"/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py" which
is called from line 351.

if you do not require this specific feature, you can replace the code
line 350 to 351

if system.CODENAME == 'natty':
    self.launcher_autohide = None
else:
    self.launcher_autohide = None

by this single line: self.launcher_autohide = None

-----Mensaje original-----
De: Jake <email address hidden>
Reply-to: Bug 720960 <email address hidden>
Para: <email address hidden>
Asunto: [Bug 720960] Re: (On using Compiz) Failed on initialization:
launcher_autohide error
Fecha: Sat, 23 Apr 2011 22:16:25 -0000

I see posts 17, 21, and 25 and I followed the link in post 17.
Unfortunately, for me, seeing something like that is about like coming
face to face with an extra terrestrial from mars! I wouldn't know what
to do with something like that if my life depended on it. Guess I'm
stuck with it the way it is for now. Sure hope it gets fixed. I just
don't know if UT updates automatically or what I would have to do to get
the update I'd need once it is fixed. I don't see any way to access that
in UT and get it to look for an update.

-----Mensaje original-----
De: jtlb <email address hidden>
Reply-to: Bug 720960 <email address hidden>
Para: <email address hidden>
Asunto: [Bug 720960] Re: (On using Compiz) Failed on initialization:
launcher_autohide error
Fecha: Sun, 24 Apr 2011 12:22:57 -0000

What do you mean by "automatic" ?

This command will "automatically" apply the "manual tweak" to get everything working back on the Natty version.
Btw, you won't have to edit any file manually !

Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
milestone: none → 0.5.12
importance: Undecided → Critical
assignee: nobody → Tualatrix Chou (tualatrix)
Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Confirmed → Fix Released
Revision history for this message
aye163 (a-yemelyanov) wrote :

Hello Chou,

Thank you for covering the issue with Compiz in Ubuntu Tweak.
After upgrading Ubuntu Tweak through its testing ppa Compiz currently
works good with it.

However, there are NO EMERALD effects with compiz in Ubuntu 11.04.

Thank you once again.

Sincerely,

Alex.

On Thu, 2011-04-28 at 12:08 +0000, Tualatrix Chou wrote:
> ** Changed in: ubuntu-tweak
> Milestone: None => 0.5.12
>
> ** Changed in: ubuntu-tweak
> Importance: Undecided => Critical
>
> ** Changed in: ubuntu-tweak
> Assignee: (unassigned) => Tualatrix Chou (tualatrix)
>

Revision history for this message
smoosh (lolomcdoo) wrote :

Compiz works well now for me too, after the Ubuntu-tweak update.

Thanks!

Revision history for this message
Robert Adonias Costa Gomes (bobppower) wrote :

fixed it here, too!

thanks!

Revision history for this message
13east (13east) wrote :

i experienced this error after removing unity software from my system...
but was able to fix it by following one of the above stated workarounds:

        jtlb wrote on 2011-04-15: #8
        this bug occurs in the function "UnityLauncherAutoHide" of file "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py" which is called from line 351.

        if you do not require this specific feature, you can replace the code line 350 to 351

        if system.CODENAME == 'natty':
            self.launcher_autohide = None
        else:
            self.launcher_autohide = None

     by this single line:
          self.launcher_autohide = None

->the only difference i saw was that this code occured on line 353 for me; copy and paste above code, and restart Ubuntu-Tweak

Revision history for this message
varun kumar (varunkumar-eie) wrote :

Hi,

For me this error has been resolved after updating the updates..I
think,now there is no issue for me..

On 5/4/11, 13east <email address hidden> wrote:
> i experienced this error after removing unity software from my system...
> but was able to fix it by following one of the above stated workarounds:
>
> jtlb wrote on 2011-04-15: #8
> this bug occurs in the function "UnityLauncherAutoHide" of file
> "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py" which is
> called from line 351.
>
> if you do not require this specific feature, you can replace the
> code line 350 to 351
>
> if system.CODENAME == 'natty':
> self.launcher_autohide = None
> else:
> self.launcher_autohide = None
>
> by this single line:
> self.launcher_autohide = None
>
> ->the only difference i saw was that this code occured on line 353 for
> me; copy and paste above code, and restart Ubuntu-Tweak
>
> --
> You received this bug notification because you are a direct subscriber
> of a duplicate bug (746211).
> https://bugs.launchpad.net/bugs/720960
>
> Title:
> (On using Compiz) Failed on initialization: launcher_autohide error
>
> Status in Ubuntu Tweak:
> Fix Released
>
> Bug description:
> using daily build of natty (2/17). Message said Distribution: Ubuntu
> 11.04 natty
> Application: Ubuntu Tweak 0.5.11
> Desktop: gnome
>
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/mainwindow.py", line
> 502, in setup_notebook
> page = module()
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 325, in __init__
> self.create_interface()
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 351, in create_interface
> self.launcher_autohide = UnityLauncherAutoHide(_('Make the launcher
> hide automatically after some time inactive'))
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 274, in __init__
> self.autohide_setting = CompizSetting(self.plugin,
> 'launcher_autohide')
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 149, in __init__
> self.__setting = self.__plugin.create_setting(key, target)
> File "/usr/lib/python2.7/dist-packages/ubuntutweak/modules/compiz.py",
> line 144, in create_setting
> return settings[key]
> KeyError: 'launcher_autohide'
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu-tweak/+bug/720960/+subscribe
>

Revision history for this message
Ranadip (ranadip-c) wrote :

Works for me after latest updates. Many thanks.

Revision history for this message
RalfKroke (ralfkroke) wrote :

Hi , i have downgrade Ubuntu to 10.10 thanks )

Am 07.05.2011 08:37, schrieb Ranadip:
> Works for me after latest updates. Many thanks.
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.