Comment 13 for bug 461356

Martin Pool (mbp) wrote :

The actual specific failure I get is

% python -c 'import desktopcouch'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.6/dist-packages/desktopcouch/__init__.py", line 20, in <module>
    from desktopcouch.start_local_couchdb import process_is_couchdb, read_pidfile
  File "/usr/lib/python2.6/dist-packages/desktopcouch/start_local_couchdb.py", line 42, in <module>
    from desktopcouch.records.server import CouchDatabase
ImportError: No module named records.server

I wonder if this is specific to the case of automatically starting the server at import time. (In my opinion starting a server as a side effect of importing a module is a bit questionable.) There are some limits here in python where if module x imports x.y which then tries to import x.z. (I don't recall the precise rule.)