ImportError: cannot import name ResourceNotFound

Bug #763554 reported by Devil505
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dmedia
New
Undecided
Unassigned
Frugalware Linux
New
Undecided
Unassigned

Bug Description

devil505@frugalware ~ $ dmedia-gtk
Traceback (most recent call last):
  File "/usr/bin/dmedia-gtk", line 40, in <module>
    from dmedia.abstractcouch import get_env
  File "/usr/lib/python2.7/site-packages/dmedia/abstractcouch.py", line 42, in <module>
    from couchdb import Server, ResourceNotFound
ImportError: cannot import name ResourceNotFound

Any idea ? Maybe it's a problem with desktopcouchdb

Revision history for this message
Jason Gerard DeRose (jderose) wrote :

Hmm, what version of python-couchdb is this?

Revision history for this message
Jason Gerard DeRose (jderose) wrote :

This is a simple way to test just the python-couchdb part:

jderose@jgd-ws:~/bzr/dmedia/trunk$ python
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from couchdb import Server, ResourceNotFound
>>>

Revision history for this message
Jason Gerard DeRose (jderose) wrote :

Is Frugalware using a python-couchdb newer than the 0.8 stable release? Perhaps it's no longer importing `ResourceNotFound` into the `couchdb` namespace. If the above doesn't work, could you see if this works?

jderose@jgd-ws:~/bzr/dmedia/trunk$ python
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from couchdb.client import Server
>>> from couchdb.http import ResourceNotFound
>>>

For what it's worth, I think this is definitely an issue with python-couchdb, not desktopcouch.

Revision history for this message
Devil505 (devil505) wrote :

I have python-couchdb 0.7, I've some troubles to bump to version 0.8 in fact.

Revision history for this message
Devil505 (devil505) wrote :

OK now i have python-couchdb finally :)

The problem is now different:

$ dmedia-gtk
Traceback (most recent call last):
  File "/usr/bin/dmedia-gtk", line 44, in <module>
    env = get_env()
  File "/usr/lib/python2.7/site-packages/dmedia/abstractcouch.py", line 152, in get_env
    port = find_port()
  File "/usr/lib/python2.7/site-packages/desktopcouch/application/platform/__init__.py", line 48, in find_port
    return platform_find_port(pid, ctx)
  File "/usr/lib/python2.7/site-packages/desktopcouch/application/platform/linux/__init__.py", line 100, in platform_find_port
    proxy = bus.get_object('org.desktopcouch.CouchDB', '/')
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 244, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 241, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 183, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 281, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 630, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/lib/desktopcouch/desktopcouch-service exited with status 1

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.