Compiz does not work in 11.4

Compiz does not work completely in 11.4 even ccsm does not start with the following output:

anixx@anixx-desktop:~> ccsm
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/init.py:40: RuntimeWarning: tp_compare didn’t return -1 or -2 for exception
from gtk import _gtk
ImportError: PyCapsule_Import could not import module “gi”
Backend : ini
Integration : true
Profile : default
Adding plugins
Initializing core options…done
Traceback (most recent call last):
File “/usr/bin/ccsm”, line 120, in <module>
mainWin = ccm.MainWin(context, plugin, category)
File “/usr/lib/python2.7/site-packages/ccm/Window.py”, line 59, in init
self.MainPage = MainPage(self, self.Context)
File “/usr/lib/python2.7/site-packages/ccm/Pages.py”, line 1188, in init
pluginWindow = PluginWindow(self.Context)
File “/usr/lib/python2.7/site-packages/ccm/Widgets.py”, line 1608, in init
self.props.hscrollbar_policy = gtk.POLICY_NEVER
ImportError: PyCapsule_Import could not import module “gi”

I have tried different Compiz versions. From other threads I found that people have Compiz working under 11.4. So what should I do to get it working as well?

Working fine for me with no issues from this Compiz 0.8.6 and emerald repo:

Index of /repositories/home:/Herbster0815/openSUSE_11.4

Many thanks to Herbster for his compilation work.

What video drivers are you using ? I’m using the Nvidia binary blob.

I am also using Nvidia proprietary. Under 11.3 worked well with no issues.

Installed from your repository - the same result.

I take it you completely deleted all previous config files of compiz before installing and double check installed versions ?

Ah, are you using Gnome ?

I tried under different DEs. Nothing helps. Even the ccsm does not start.

Removing config directory does not help either.

What version of python-ccm and python-compizconfig do you have installed ?

Mine is 0.8.4-5.1 and 0.8.4-4.1 respectively.

Ansus wrote:

>
> Removing config directory does not help either.
>
Of course not because that has absolutely nothing todo with compiz. Looking
at the error you posted some python package can not be loaded.

self.props.hscrollbar_policy = gtk.POLICY_NEVER
ImportError: PyCapsule_Import could not import module “gi”

I have no clue what might be screwed but on my 11.4 system with gnome and
proprietary nvidia compiz and ccsm works.

So we could try to figure out what might be different on yours.


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.1 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | Gnome 2.32 | nVidia
ION | 3GB Ram

Dragon32 wrote:

>
> What version of python-ccm and python-compizconfig do you have installed
> ?
>
> Mine is 0.8.4-5.1 and 0.8.4-4.1 respectively.
>
Just to add the settings from another working 11.4 system (see below) for
comparism:
compizconfig-settings-manager 0.9.2.1-4.1
libcompizconfig 0.9.2.1-5.1
python-ccm 0.9.2.1-4.1
python-compizconfig 0.9.2.1-5.5

everything from standard repos, no special fancy things from other
repositories.


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.1 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | Gnome 2.32 | nVidia
ION | 3GB Ram

compizconfig-settings-manager 0.9.2.1-4.1
libcompizconfig 0.9.2.1-5.1
python-ccm 0.9.2.1-4.1
python-compizconfig 0.9.2.1-5.5

All these packages are installed.

I have tried 0.8.4, 0.9.2 and 0.9.4. Nothing worked.

I also have the same error when trying to use Itmages upload tool:

anixx@anixx-desktop:~> upload-picture
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/init.py:40: RuntimeWarning: tp_compare didn’t return -1 or -2 for exception
from gtk import _gtk
ImportError: PyCapsule_Import could not import module “gi”

(upload-picture:3959): libnotify-WARNING **: Missing symbol ‘gdk_screen_make_display_name’
Traceback (most recent call last):
File “/usr/bin/upload-picture”, line 142, in <module>
else: daemon.run()
File “/usr/bin/upload-picture”, line 91, in run
main(self.filelist)
File “/usr/bin/upload-picture”, line 75, in main
dialog = SummaryDialog(argv)
File “/usr/lib/python2.7/site-packages/itmages/widgets.py”, line 1009, in init
self.show_notify_message(message, ‘nc’)
File “/usr/lib/python2.7/site-packages/itmages/widgets.py”, line 1023, in show_notify_message
self.notification.props.icon_name = icon
ImportError: PyCapsule_Import could not import module “gi”

Although the author says all works for him in 11.4

What version has your package python-gobject, that seems to be the package
which contains the python gi module?
And from which repository is it?

Can you post a list of your repositories?

zypper lr


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.1 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | Gnome 2.32 | nVidia
ION | 3GB Ram

What version has your package python-gobject, that seems to be the package

python-gobject-2.26.0-5.1-x86_64

Can you post a list of your repositories?

----±------------------------------------------------------------------±------ - Pastebin.com](----+-------------------------------------------------------------------+------- - Pastebin.com)

I spotted the problem, and now ccsm works well.

It seems that when updating from 11.3 to 11.4 the system did not remove the package
libgirepository-1_0-0-0.6.9-1.10.x86_64.rpm
from 11.3 repository while installed
libgirepository-1_0-1-0.10.1-3.1.x86_64.rpm
from 11.4

The packages have common files.

It seems the system interpreted the -0 as a part of the name rather than version number.

Ansus wrote:

>
> I spotted the problem, and now ccsm works well.
>
Glad to see you solved it.
I just this moment looked at your repository list: 105 repos!
Don’t you think you should clean that a little bit?

Just out of curiousity, why are all that fedora repositories in your list?


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.1 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | Gnome 2.32 | nVidia
ION | 3GB Ram

Hi,
OSS11.4
KDE 4.6.00 (4.6.0) “release 6”
Compiz 0.9.2.1.5.5 (standard OS repo)
python-gobject-2.26.0-5.1
libgirepository-1_0-1-0.10.1-3.1.

got compiz to work with no big problems. But the problem is that it does not work properly afterward.
Title bar bottoms are frozen (close minimize/mazimize don’t work). Windows switch Plug in (with toolbox kit plugin)
kills my title bar, task bar and leave me with no responding keyboard, so i have only mouse to close windows and relogin
to have everything back. Have you any idea what could be the problem.

Cheers

Just out of curiousity, why are all that fedora repositories in your list?

For different purposes. For example, they have much faster Spring engine, some programs distributed as .rpms require libs found only in old Fedora (for example, Energy Tycoon), some old software requires say, glibc-compat which also I found only for Fedora (for instance Rollemup game which is distributed as .rpm as well as well as old Loki software). .rpms converted from debs with alien also often require libs versions found in Fedora, and not openSUSE.

Ansus wrote:

>
>> Just out of curiousity, why are all that fedora repositories in your
>> list?
>
> For different purposes. For example, they have much faster Spring
> engine, some programs distributed as .rpms require libs found only in
> old Fedora (for example, Energy Tycoon), some old software requires say,
> glibc-compat which also I found only for Fedora (for instance Rollemup
> game which is distributed as .rpm as well as well as old Loki software).
> .rpms converted from debs with alien also often require libs versions
> found in Fedora, and not openSUSE.
>
I justed wondered how your system works at all. Is that at the moment the
high score > 100 repositories? Though I did not count how many are active.
:wink:


PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.1 | GeForce
9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | Gnome 2.32 | nVidia
ION | 3GB Ram