Project

General

Profile

Actions

Bug #3433

closed

Error: Store.__init__() takes no parameters

Added by Steve Hoeksema over 11 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Normal
Category:
obsync
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

This is on Ubuntu 12.04 obsync, but also appears in git master: https://github.com/ceph/obsync/blob/master/obsync#L909

Sorry if I should be reporting this to Ubuntu or on Github issues instead.

When trying to sync from a local filesystem to S3, i.e.

obsync -v --no-preserve-acls --src-type=file --src-path=/path/to/files --dst-type=s3 --dst-host=s3.amazonaws.com --dst-bucket=my-files

I get this error:

Traceback (most recent call last):
  File "/usr/bin/obsync", line 1136, in <module>
    prefix=opts.src_prefix, path=opts.src_path)
  File "/usr/bin/obsync", line 554, in make_store
    return FileStore(kwargs['path'], create)
  File "/usr/bin/obsync", line 892, in __init__
    Store.__init__(self, "file://" + url)
TypeError: object.__init__() takes no parameters
ERROR TYPE: unknown, ORIGIN: source

I'm not a Python programmer so I don't really know what I'm doing, but it seems to work when I change the line from:

Store.__init__(self, "file://" + url)

to

Store.__init__(self)

Actions

Also available in: Atom PDF