newsapps / tarbell-0.8

MIT License
30 stars 18 forks source link

`fab newproject`: creating spreadsheet fails with `dbus.exceptions.DBusException` #36

Open jean opened 11 years ago

jean commented 11 years ago

I'm guessing my environment is too old ...

15:31 jean@klippie:~/repos/git/tarbell$ ./bin/fab newproject
What is the directory name for the project? project-tryout
What is your project's full title? Trying out Tarbell
Do you want a Google doc associated with this project? [Y/n]:
Generating Google spreadsheet
What Google account should have access to this spreadsheet? (e.g. myname@gmail.com) jean.jordaan@gmail.com
Traceback (most recent call last):
  File "/home/jean/repos/git/tarbell/lib/python2.6/site-packages/fabric/main.py", line 732, in main
    *args, **kwargs
  File "/home/jean/repos/git/tarbell/lib/python2.6/site-packages/fabric/tasks.py", line 345, in execute
    results['<local-only>'] = task.run(*args, **new_kwargs)
  File "/home/jean/repos/git/tarbell/lib/python2.6/site-packages/fabric/tasks.py", line 121, in run
    return self.wrapped(*args, **kwargs)
  File "/home/jean/repos/git/tarbell/fabfile.py", line 86, in newproject
    context = _setup_google_spreadsheet(context)
  File "/home/jean/repos/git/tarbell/fabfile.py", line 168, in _setup_google_spreadsheet
    context['long_name'], email)
  File "/home/jean/repos/git/tarbell/fabfile.py", line 235, in _create_google_spreadsheet
    http = _handle_oauth_flow(storage)
  File "/home/jean/repos/git/tarbell/fabfile.py", line 198, in _handle_oauth_flow
    credentials = storage.get()
  File "/home/jean/repos/git/tarbell/lib/python2.6/site-packages/oauth2client/client.py", line 311, in get
    return self.locked_get()
  File "/home/jean/repos/git/tarbell/lib/python2.6/site-packages/oauth2client/keyring_storage.py", line 83, in locked_get
    content = keyring.get_password(self._service_name, self._user_name)
  File "/home/jean/repos/git/tarbell/lib/python2.6/site-packages/keyring/core.py", line 36, in get_password
    return _keyring_backend.get_password(service_name, username)
  File "/home/jean/repos/git/tarbell/lib/python2.6/site-packages/keyring/backends/SecretService.py", line 51, in get_password
    _, session = service_iface.OpenSession("plain", "")
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "OpenSession" with signature "ss" on interface "org.freedesktop.Secret.Service" doesn't exist
eads commented 11 years ago

Like I said on the other thread, you should upgrade to Tarbell 0.9 (see http://tarbell.tribapps.com for details). However, I fear this error will persist for you with Tarbell 0.9 should you choose to use Google spreadsheets. It would appear that the keyring storage on your system is somehow inaccessible to Tarbell/not running. Are you running a more obscure or relatively old Linux distro by any chance?

jean commented 11 years ago

Hi David

Are you running a more obscure or relatively old Linux distro by any chance?

Ubuntu: 10.10 .. (three years ago, which seems like yesterday, but is a long time on the internet).

jean . .. .... //\oo///\