Monday, 15 February 2010

Karmic and Pulseaudio

I have been bitten by the bug reported at https://bugs.launchpad.net/pulseaudio/+bug/352732 . In fact, I was bitten by this back in Jaunty. There the problem was isolated to logging out of a non-Gnome session (and into Gnome? I forget exactly). In Jaunty I solved the problem by killing pulseaudio before terminating non-Gnome sessions. Now in Karmic this solution doesn’t seem to work in all situations, so I am trying the suggestion in post #77. Namely, in /etc/pulse/default.pa, comment out the line load-module module-device-restore

Here is the snippet from my /etc/pulse/default.pa:

### mfk addition: comment out "load-module module-device-restore"
### see https://bugs.launchpad.net/pulseaudio/+bug/352732 #77
#load-module module-device-restore

We’ll see how it goes.

Saturday, 13 February 2010

python3 basics

I discovered a couple of gotchas in getting python3 up and running in Ubuntu 9.10 (and probably Lenny and Squeeze as well).

Install python3.

Install python3-tk. (This one is easy to miss.)

Add to source files:

#!/usr/bin/python3

To invoke, at the command line do

$ python3 foobar.py

Geany’s F5 doesn’t work because it makes compile and execute calls using python rather than python3. I am loathe to change it at this point because it may wreak havok on python2.6 stuff.

As potential alternatives there are idle-python3.0 and idle-python3.1 packages, which I will be evaluating todayish.