cannot run 0.4.2 without compiz installed

Bug #298300 reported by Xu Zhen
28
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Tweak
Fix Released
High
Ding Zhou

Bug Description

I removed compiz. And I got these when I run ubuntu-tweak 0.4.2

Traceback (most recent call last):
  File "ubuntu-tweak.py", line 76, in <module>
    launcher = TweakLauncher()
  File "ubuntu-tweak.py", line 44, in __init__
    from mainwindow import MainWindow
  File "/usr/share/ubuntu-tweak/mainwindow.py", line 109, in <module>
    if module_check.has_right_compiz():
  File "/usr/share/ubuntu-tweak/common/systeminfo.py", line 71, in has_right_compiz
    if version.split(':')[1] >= '0.7.4':
IndexError: list index out of range

Revision history for this message
beudbeud (beudbeud) wrote :

i have the same probleme

Revision history for this message
MastroPino (and-one-tiscali) wrote :

Me too, I don't use compiz on my asus eee... and now I can't use ubuntu-tweak to

Revision history for this message
Ding Zhou (tualatrix) wrote :

Thanks!
Next version I'll improve the compiz status check!

Changed in ubuntu-tweak:
assignee: nobody → tualatrix
status: New → Confirmed
Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Confirmed → Fix Released
Revision history for this message
robsstartrek (robs-startrek) wrote :
Download full text (10.7 KiB)

I get this problem on current ubuntu 9.04 Jaunty version

I am using ubuntu 9.04 and getting the following from ubuntu tweak it, used it work in this version before a update to python I think

robert@robert-desktop:~/Desktop/ubuntu-tweak-0.4.4$ /usr/bin/ubuntu-tweak
/usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet
  warnings.warn("apt API not stable yet", FutureWarning)
Segmentation fault (core dumped)

or if I use the compile version instead of the deb version I get this

root@robert-desktop:/home/robert/Desktop/ubuntu-tweak-0.4.4# ubuntu-tweak
You must not launch Ubuntu Tweak as root, it is INSECURE
/usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet
  warnings.warn("apt API not stable yet", FutureWarning)
Segmentation fault (core dumped)
root@robert-desktop:/home/robert/Desktop/ubuntu-tweak-0.4.4# exit
exit
robert@robert-desktop:~/Desktop/ubuntu-tweak-0.4.4$ ubuntu-tweak
/usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet
  warnings.warn("apt API not stable yet", FutureWarning)
Segmentation fault (core dumped)
robert@robert-desktop:~/Desktop/ubuntu-tweak-0.4.4$

next I will post ./configure and make and install
 robsstartrek wrote 59 seconds ago: (permalink)

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.19... yes
checking for a Python interpreter with version >= 2.5... python
checking for python... /usr/bin/python
checking for python version... 2.5
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.5/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.5/site-packages
checking for TWEAK... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... none
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from......

Revision history for this message
robsstartrek (robs-startrek) wrote :

current build of ubuntu 9.04 has gotten this problem so far with compiz and I think it pointed to nvidia crashing it this time maybe , I posted my console output of current ubuntu tweak on ubuntu 9.04 version

Changed in ubuntu-tweak:
status: Fix Released → Incomplete
Revision history for this message
robsstartrek (robs-startrek) wrote :

https://bugs.launchpad.net/ubuntu-tweak/+bug/298068

first posts are here
copyed and reposted here

Revision history for this message
Zeev Tarantov (zeev-tarantov) wrote :

In version 0.4.5 on Jaunty, with compiz uninstalled:

Traceback (most recent call last):
  File "ubuntu-tweak.py", line 87, in <module>
    launcher = TweakLauncher()
  File "ubuntu-tweak.py", line 51, in __init__
    from mainwindow import MainWindow
  File "/usr/share/ubuntu-tweak/mainwindow.py", line 126, in <module>
    if module_check.has_right_compiz():
  File "/usr/share/ubuntu-tweak/common/systeminfo.py", line 70, in has_right_compiz
    version = str(worker.get_pkgversion('compiz'))
  File "/usr/share/ubuntu-tweak/common/package.py", line 141, in get_pkgversion
    return cache[pkg].installedVersion
  File "/usr/lib/python2.5/site-packages/apt/cache.py", line 104, in __getitem__
    return self._dict[key]
KeyError: 'compiz'

This is caused because you are accessing a key in the cache dict before you made sure it's there. Attached patch fixes this and allows the program to load and run.

Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
importance: Undecided → High
milestone: none → 0.4.6
status: Incomplete → Confirmed
Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Confirmed → Fix Committed
Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Fix Committed → Fix Released
Changed in ubuntu-tweak:
status: Fix Released → Fix Committed
Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Fix Committed → Fix Released
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.