Error: Store.__init__() takes no parameters
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)
#4 Updated by Matthew Wodrich about 8 years ago
- Status changed from New to Resolved
Sorry for the delay in response - active development of obsync has moved over to https://github.com/dreamhost/obsync and obsync is no longer part of the ceph repository in active development. There are a significant number of changes between the version of obsync you're working with and what is on master in development (including parallelism!), but I have included in the work recently merged to master a couple of fixes for the FileStore codepath which should take care of your issue.