Now running "import desktopcouch" in python works fine. I don't know why this happened, but the desktop couch service now starts with "/usr/lib/desktopcouch/desktopcouch-service &".
Hopefully this helps those who know better to identify the source of the problem!
I came across this bug just now. Initially (and with the desktopcouch package installed):
$ ls /usr/lib/ python2. 6/dist- packages/ desktopcouch/ -l services
total 24
drwxr-xr-x 2 root root 4096 2010-10-09 11:11 bookmarks
drwxr-xr-x 3 root root 4096 2010-10-09 11:11 contacts
drwxr-xr-x 2 root root 4096 2010-10-09 11:11 notes
drwxr-xr-x 2 root root 4096 2010-10-09 11:11 records
drwxr-xr-x 2 root root 4096 2010-10-09 11:11 replication_
drwxr-xr-x 2 root root 4096 2010-10-09 11:11 tasks
I was expecting at least a __init__.py, so I then simply did "sudo aptitude reinstall desktopcouch", and then:
$ ls /usr/lib/ python2. 6/dist- packages/ desktopcouch/ -l pyshared/ desktopcouch/ __init_ _.py pyshared/ desktopcouch/ local_files. py pyshared/ desktopcouch/ replication. py services couchdb. py -> /usr/share/ pyshared/ desktopcouch/ start_local_ couchdb. py couchdb. pyc couchdb. py -> /usr/share/ pyshared/ desktopcouch/ stop_local_ couchdb. py couchdb. pyc
total 72
drwxr-xr-x 2 root root 4096 2010-11-20 10:55 bookmarks
drwxr-xr-x 3 root root 4096 2010-11-20 10:55 contacts
lrwxrwxrwx 1 root root 44 2010-11-20 10:55 __init__.py -> /usr/share/
-rw-r--r-- 1 root root 5958 2010-11-20 10:55 __init__.pyc
lrwxrwxrwx 1 root root 47 2010-11-20 10:55 local_files.py -> /usr/share/
-rw-r--r-- 1 root root 13173 2010-11-20 10:55 local_files.pyc
drwxr-xr-x 2 root root 4096 2010-11-20 10:55 notes
drwxr-xr-x 3 root root 4096 2010-11-20 10:55 pair
drwxr-xr-x 2 root root 4096 2010-11-20 10:55 records
lrwxrwxrwx 1 root root 47 2010-11-20 10:55 replication.py -> /usr/share/
-rw-r--r-- 1 root root 6478 2010-11-20 10:55 replication.pyc
drwxr-xr-x 2 root root 4096 2010-11-20 10:55 replication_
lrwxrwxrwx 1 root root 55 2010-11-20 10:55 start_local_
-rw-r--r-- 1 root root 7956 2010-11-20 10:55 start_local_
lrwxrwxrwx 1 root root 54 2010-11-20 10:55 stop_local_
-rw-r--r-- 1 root root 992 2010-11-20 10:55 stop_local_
drwxr-xr-x 2 root root 4096 2010-11-20 10:55 tasks
Now running "import desktopcouch" in python works fine. I don't know why this happened, but the desktop couch service now starts with "/usr/lib/ desktopcouch/ desktopcouch- service &".
Hopefully this helps those who know better to identify the source of the problem!