Actions
Bug #1245
closedobsync: Issues with python-xattr (AttributeError: 'module' object has no attribute 'set')
Status:
Resolved
Priority:
Normal
Assignee:
-
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
While trying obsync under Ubuntu 10.04 I got:
Traceback (most recent call last): File "/usr/bin/obsync", line 1150, in <module> getenv("SRC_AKEY", "AKEY"), getenv("SRC_SKEY", "SKEY")) File "/usr/bin/obsync", line 479, in make_store return FileStore(file_url, create) File "/usr/bin/obsync", line 731, in __init__ test_xattr_support(self.base) File "/usr/bin/obsync", line 81, in test_xattr_support xattr.set(test_file, "test", "123", namespace=xattr.NS_USER) AttributeError: 'module' object has no attribute 'set'
My command:
DST_AKEY="BI8FB3100SUU9YC9QVH2" DST_SKEY="xxxx" obsync -nV file:///home/employee/wido/Pictures/N900 s3://s3.ceph.widodh.nl/pictures-wido-n900
My Python version is 2.6.5.
In the repos of Ubuntu 10.04 the python-xattr version is 0.4.4, so I tried upgrading to 0.6.6 (from Ubuntu Natty), but that didn't help either.
I'm not a real Python guru, so I'm not sure what's going on here.
Files
Updated by Wido den Hollander almost 13 years ago
- File 0001-obsync-Depend-on-python-pyxattr-instead-of-python-xa.patch 0001-obsync-Depend-on-python-pyxattr-instead-of-python-xa.patch added
I found out that obsync depends on python-xattr, but it should actually depend on python-pyxattr.
Attached is a patch which corrects this, that should make everything work.
Actions