[Pkg-owncloud-maintainers] Bug#714970: python-owncloud: oclient fails upon start: AttributeError: 'NoneType' object has no attribute 'replace'

Axel Beckert abe at debian.org
Thu Jul 4 23:30:41 UTC 2013


Package: python-owncloud
Version: 0.3-1

Dear Maintainer,

A freshly installed python-owncloud, never installed before, fails as
follows when running "oclient" on the commandline:

$ oclient
ERROR:root:Could not find any typelib for GnomeKeyring
Found libocsync @ libocsync.so.0
This version of libocsync 0.70.6 is not tested against ownCloud server 4.7.5.
Traceback (most recent call last):
  File "/usr/bin/oclient", line 9, in <module>
    load_entry_point('pyOwnCloud==0.3', 'console_scripts', 'oclient')()
  File "/usr/lib/python2.7/dist-packages/csync/csync.py", line 351, in main
    startSync(parser)
  File "/usr/lib/python2.7/dist-packages/csync/csync.py", line 277, in startSync
    ownCloudSync(cfg)
  File "/usr/lib/python2.7/dist-packages/csync/csync.py", line 103, in __init__
    self.buildURL()
  File "/usr/lib/python2.7/dist-packages/csync/csync.py", line 119, in buildURL
    url = url.replace('https','ownclouds')
AttributeError: 'NoneType' object has no attribute 'replace'

I suspect that either some dependency is missing or some dependency has
been updated and became incompatible.

Downgrading python-keyring from 1.4-1 to 0.9.3-1 from testing removes
the "ERROR" message (this could be related to
http://bugs.debian.org/714440), but still bails out:

$ oclient
Found libocsync @ libocsync.so.0
This version of libocsync 0.70.6 is not tested against ownCloud server 4.7.5.
Traceback (most recent call last):
  File "/usr/bin/oclient", line 9, in <module>
    load_entry_point('pyOwnCloud==0.3', 'console_scripts', 'oclient')()
  File "/usr/lib/python2.7/dist-packages/csync/csync.py", line 351, in main
    startSync(parser)
  File "/usr/lib/python2.7/dist-packages/csync/csync.py", line 277, in startSync
    ownCloudSync(cfg)
  File "/usr/lib/python2.7/dist-packages/csync/csync.py", line 103, in __init__
    self.buildURL()
  File "/usr/lib/python2.7/dist-packages/csync/csync.py", line 119, in buildURL
    url = url.replace('https','ownclouds')
AttributeError: 'NoneType' object has no attribute 'replace'

Or could that be just a documentation issue plus missing exception
handling?  Because as soon as I pass a --url option, it no more bails
out there. But in the man page, this option is not marked mandatory.

I would have expected that oclient either prompts me for all missing but
necessary connection data, or errors out _and_ clearly states why it
errors out. Python backtraces are not end-user-compatible, even if it's
for a commandline user. :-)

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (900, 'testing'), (899, 'testing-proposed-updates'), (600, 'stable'), (500, 'proposed-updates'), (200, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.10-rc7-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-owncloud depends on:
ii  libocsync-plugin-owncloud  0.70.7-1
ii  python                     2.7.5-2
ii  python-pkg-resources       0.6.37-1

python-owncloud recommends no packages.

Versions of packages python-owncloud suggests:
ii  python-keyring  1.4-1

-- no debconf information



More information about the Pkg-owncloud-maintainers mailing list