Skip to content

A new Archer having some (possibly Python related) issues with CCSM seeking help.

I installed Arch Linux for the first time a few days ago. Consider me a "refugee" of sorts from Ubuntu who got tired of the drama (ie: OMG BANSHEE WILL BE THE NEW DEFAULT MUSIC WTF) and the direction they're taking. My feelings thusfar about Arch are extremely positive and cannot accurately be summed up without going into great detail, from which I will spare you for now.

Everything from my install went very smoothly, and I went from an "empty" root terminal to a fully fledged desktop very quickly. The only one of my installed programs that I'm having difficulty with is Compiz-Fusion (from which there are a few plugins which I find terribly handy).

I followed along the wiki step by step until I got to the part where I needed to modify Compiz's settings (using ccsm).

Launching ccsm via command line nets me this error: Traceback (most recent call last): File "/usr/bin/ccsm", line 126, in <module> context = compizconfig.Context(screens) File "compizconfig.pyx", line 1082, in compizconfig.Context.cinit (src/compizconfig.c:9077) TypeError: an integer is required

For the record: The code to which the error initially refers can be found here.

I'm really not sure where to go with debugging this one. The best guess that I have is that it is a Python issue caused by the recent conversion of the Arch Python package from 2.x to 3.x...but I really have nothing substantial to back that up with.

I would appreciate any help you'd be willing to give me!

1 points5 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
e4y64

Author

2
posts
2
comments
0
media
View profile

5 comments

It looks like CCSM is flagged as out of date : http://www.archlinux.org/packages/community/any/ccsm/

Compiz probably changed their configuration API and CCSM is still using an old API which does not work any more. Try installing a newer version or wait for the official update.

EDIT: http://cgit.compiz.org/compiz/compizconfig/compizconfig-python/commit/?id=a40079dcf4f647c85aadc8f07095f583939ec33d

This is probably the commit which is causing the error. compizconfig.Context now takes an integer, but CCSM is still passing a list.

3 points

Nice work. Now all you can do is email the maintainer to let him know that it's a critical update and needs to happen soon.

3 points

Thanks for your help (especially locating the actual commit which caused the error)!

I've been trying to install Compiz Fusion from source (but I keep running into various errors) to make up for the out of date package...I might just end up waiting for him to update the packages if I can't get it working properly on my lonesome (who knows how long that will take?).

1 points

If you haven't resolved this you might try using the archlinuxfr repository. It's an unofficial user repository, but it's very popular. It has working compiz listed under the package name 'compiz09'. It also is a popular source for yaourt.

1 points

edit /usr/bin/ccsm and change the top line to

#!/usr/bin/python2

instead of

#!/usr/bin/python
2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.