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 #1

Updated by Greg Farnum about 11 years ago

I'm not really sure where obsync is tracked — Ian, can you figure that out?

Actions #2

Updated by Greg Farnum about 11 years ago

  • Assignee set to Ian Colle
Actions #3

Updated by Ian Colle about 11 years ago

  • Assignee changed from Ian Colle to Matthew Wodrich
Actions #4

Updated by Matthew Wodrich about 11 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.

Actions

Also available in: Atom PDF