ImportError: No module named couchdb

Bug #572502 reported by Greg Grossmeier
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
GTG
Invalid
Undecided
Unassigned
gtg (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: gtg

Admittedly, I haven't tested GTG during the Lucid development process much, but wanted to switch back to it.

I have experienced the same result after mv .config/gtg to a backup dir.

greg@zen:~$ gtg -d
2010-04-30 13:09:21,148 - DEBUG - gtg:main:105 - Debug output enabled.
Traceback (most recent call last):
  File "/usr/bin/gtg", line 52, in <module>
    sys.exit(GTG.gtg.main(options, args))
  File "/usr/share/gtg/GTG/gtg.py", line 109, in main
    backends_list = config.get_backends_list()
  File "/usr/share/gtg/GTG/core/__init__.py", line 138, in get_backends_list
    module = __import__(module_name)
ImportError: No module named couchdb

greg@zen:~/.config$ apt-cache policy python-couchdb python-desktopcouch gtg
python-couchdb:
  Installed: 0.6-1
  Candidate: 0.6-1
  Version table:
 *** 0.6-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status
python-desktopcouch:
  Installed: 0.6.4-0ubuntu3
  Candidate: 0.6.4-0ubuntu3
  Version table:
 *** 0.6.4-0ubuntu3 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status
gtg:
  Installed: 0.2.4-1ubuntu1
  Candidate: 0.2.4-1ubuntu1
  Version table:
 *** 0.2.4-1ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: gtg 0.2.4-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic x86_64
Architecture: amd64
CheckboxSubmission: 728e74e7cabefd6ace4aa97ae53a1ff2
CheckboxSystem: bb422ca46d02494cdbc459927a98bc2f
Date: Fri Apr 30 13:10:15 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha amd64 (20100113)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: gtg

Revision history for this message
Greg Grossmeier (greg.grossmeier) wrote :
Revision history for this message
Luca Invernizzi (invernizzi) wrote :

which gtg version is this?
in latest gtg (0.2.4) and the precedent version, there is no mention of couchdb:

/usr/share/gtg/$ grep -Ri couchdb *
/usr/share/gtg/$

Perhaps you installed the branch with the experimental couchdb support?

Changed in gtg (Ubuntu):
status: New → Incomplete
Changed in gtg:
milestone: none → 0.3
status: New → Incomplete
Changed in gtg (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Luca Invernizzi (invernizzi) wrote :

eh, I didn't read the report till the end. Still, "gtg 0.2.4-1ubuntu1", which is the same as my version, do not mention couchdb. The only implemented backend is "localfile".
It seems you have a spurious file under /usr/share/gtg/GTG/backends/.

Try to remove anything which is not in here:

/usr/share/gtg/GTG/backends/$ ls
__init__.py __init__.pyc localfile.py localfile.pyc

Revision history for this message
Greg Grossmeier (greg.grossmeier) wrote :

So, I have again purged gtg via aptitude. rm'd everything I could find related to gtg including the .config/gtg directory. And then reinstalled.

I'm still getting the same error.

I am really confused as this seems it is looking for a backend list from the gtg.conf file in .config/gtg or in /usr/share/gtg/ and there is nothing there mentioning couchdb (I only have the files you mentioned above).

Additionally, python-couchdb is installed.

So I'm at a loss of what is going on.

Revision history for this message
Luca Invernizzi (invernizzi) wrote :

Very strange. I currently don't have a clue.
Maybe some other developer is smarter :-)
I suggest you to downgrade to 0.23, as 0.24 has some bug fixed, but nothing more.

Revision history for this message
Greg Grossmeier (greg.grossmeier) wrote :

Ok, sorry for all of the confusion all. Luca and I figured it out on IRC. I had some old projects.xml files in .local/share/gtg when I was testing the couchdb branch (apparently).

Thanks for the help debugging and sorry for the noise.

Changed in gtg:
status: Incomplete → Invalid
Izidor Matušov (izidor)
Changed in gtg:
milestone: 0.3 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.