duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] Cannot restore, runtime throws error


From: Yves Goergen
Subject: Re: [Duplicity-talk] Cannot restore, runtime throws error
Date: Mon, 13 Sep 2010 12:13:23 +0200
User-agent: Thunderbird 2.0.0.24 (Windows/20100228)

On 12.09.2010 22:54 CE(S)T, address@hidden wrote:
> version 0.6 is recent and restoring with such an ancient version is not 
> advisable. The naming scheme of backup files change among other things, hence 
> no backups are found.
> 
> stick to this directions to install current duplicity from tgz
> https://answers.launchpad.net/duplicity/+question/123555

I've tried that and the duplicity setup failed:

> # python setup.py install
> running install
> running build
> running build_py
> creating build
> creating build/lib.linux-x86_64-2.5
> creating build/lib.linux-x86_64-2.5/duplicity
> copying src/util.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/tempdir.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/gpg.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/dup_time.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/pexpect.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/path.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/dup_threading.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/file_naming.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/manifest.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/errors.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/librsync.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/__init__.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/lazy.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/diffdir.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/static.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/misc.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/robust.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/log.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/collections.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/GnuPGInterface.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/tarfile.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/patchdir.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/asyncscheduler.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/backend.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/dup_temp.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/urlparse_2_5.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/commandline.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/globals.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/selection.py -> build/lib.linux-x86_64-2.5/duplicity
> copying src/statistics.py -> build/lib.linux-x86_64-2.5/duplicity
> creating build/lib.linux-x86_64-2.5/duplicity/backends
> copying src/backends/webdavbackend.py -> 
> build/lib.linux-x86_64-2.5/duplicity/backends
> copying src/backends/giobackend.py -> 
> build/lib.linux-x86_64-2.5/duplicity/backends
> copying src/backends/cloudfilesbackend.py -> 
> build/lib.linux-x86_64-2.5/duplicity/backends
> copying src/backends/ftpbackend.py -> 
> build/lib.linux-x86_64-2.5/duplicity/backends
> copying src/backends/rsyncbackend.py -> 
> build/lib.linux-x86_64-2.5/duplicity/backends
> copying src/backends/tahoebackend.py -> 
> build/lib.linux-x86_64-2.5/duplicity/backends
> copying src/backends/hsibackend.py -> 
> build/lib.linux-x86_64-2.5/duplicity/backends
> copying src/backends/__init__.py -> 
> build/lib.linux-x86_64-2.5/duplicity/backends
> copying src/backends/botobackend.py -> 
> build/lib.linux-x86_64-2.5/duplicity/backends
> copying src/backends/imapbackend.py -> 
> build/lib.linux-x86_64-2.5/duplicity/backends
> copying src/backends/localbackend.py -> 
> build/lib.linux-x86_64-2.5/duplicity/backends
> copying src/backends/sshbackend.py -> 
> build/lib.linux-x86_64-2.5/duplicity/backends
> running build_ext
> building 'duplicity._librsync' extension
> creating build/temp.linux-x86_64-2.5
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
> -Wstrict-prototypes -fPIC -I/usr/include/python2.5 -c _librsyncmodule.c -o 
> build/temp.linux-x86_64-2.5/_librsyncmodule.o
> _librsyncmodule.c:25:20: error: Python.h: No such file or directory
> _librsyncmodule.c:26:22: error: librsync.h: No such file or directory
> _librsyncmodule.c:29: error: expected '=', ',', ';', 'asm' or '__attribute__' 
> before '*' token
> _librsyncmodule.c:33: error: expected ')' before 'result'
> _librsyncmodule.c:42: error: expected '=', ',', ';', 'asm' or '__attribute__' 
> before 'PyTypeObject'
> _librsyncmodule.c:45: error: expected specifier-qualifier-list before 
> 'PyObject_HEAD'
> _librsyncmodule.c:50: error: expected '=', ',', ';', 'asm' or '__attribute__' 
> before '*' token
> _librsyncmodule.c:69: error: expected ')' before '*' token
> _librsyncmodule.c:80: error: expected '=', ',', ';', 'asm' or '__attribute__' 
> before '*' token
> _librsyncmodule.c:109: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before '_librsync_sigmaker_methods'
> _librsyncmodule.c:114: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before '*' token
> _librsyncmodule.c:130: error: expected declaration specifiers or '...' before 
> 'PyObject'
> _librsyncmodule.c: In function '_librsync_sigmaker_setattr':
> _librsyncmodule.c:132: error: '_librsync_SigMakerObject' has no member named 
> 'x_attr'
> _librsyncmodule.c:132: error: 'NULL' undeclared (first use in this function)
> _librsyncmodule.c:132: error: (Each undeclared identifier is reported only 
> once
> _librsyncmodule.c:132: error: for each function it appears in.)
> _librsyncmodule.c:133: error: '_librsync_SigMakerObject' has no member named 
> 'x_attr'
> _librsyncmodule.c:133: warning: implicit declaration of function 'PyDict_New'
> _librsyncmodule.c:134: error: '_librsync_SigMakerObject' has no member named 
> 'x_attr'
> _librsyncmodule.c:136: error: 'v' undeclared (first use in this function)
> _librsyncmodule.c:137: warning: implicit declaration of function 
> 'PyDict_DelItemString'
> _librsyncmodule.c:137: error: '_librsync_SigMakerObject' has no member named 
> 'x_attr'
> _librsyncmodule.c:139: warning: implicit declaration of function 
> 'PyErr_SetString'
> _librsyncmodule.c:139: error: 'PyExc_AttributeError' undeclared (first use in 
> this function)
> _librsyncmodule.c:143: warning: implicit declaration of function 
> 'PyDict_SetItemString'
> _librsyncmodule.c:143: error: '_librsync_SigMakerObject' has no member named 
> 'x_attr'
> _librsyncmodule.c: At top level:
> _librsyncmodule.c:146: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before '_librsync_SigMakerType'
> _librsyncmodule.c:167: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before 'PyTypeObject'
> _librsyncmodule.c:170: error: expected specifier-qualifier-list before 
> 'PyObject_HEAD'
> _librsyncmodule.c:177: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before '*' token
> _librsyncmodule.c:219: error: expected ')' before '*' token
> _librsyncmodule.c:234: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before '*' token
> _librsyncmodule.c:262: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before '_librsync_deltamaker_methods'
> _librsyncmodule.c:267: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before '*' token
> _librsyncmodule.c:282: error: expected declaration specifiers or '...' before 
> 'PyObject'
> _librsyncmodule.c: In function '_librsync_deltamaker_setattr':
> _librsyncmodule.c:284: error: '_librsync_DeltaMakerObject' has no member 
> named 'x_attr'
> _librsyncmodule.c:284: error: 'NULL' undeclared (first use in this function)
> _librsyncmodule.c:285: error: '_librsync_DeltaMakerObject' has no member 
> named 'x_attr'
> _librsyncmodule.c:286: error: '_librsync_DeltaMakerObject' has no member 
> named 'x_attr'
> _librsyncmodule.c:288: error: 'v' undeclared (first use in this function)
> _librsyncmodule.c:289: error: '_librsync_DeltaMakerObject' has no member 
> named 'x_attr'
> _librsyncmodule.c:291: error: 'PyExc_AttributeError' undeclared (first use in 
> this function)
> _librsyncmodule.c:295: error: '_librsync_DeltaMakerObject' has no member 
> named 'x_attr'
> _librsyncmodule.c: At top level:
> _librsyncmodule.c:298: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before '_librsync_DeltaMakerType'
> _librsyncmodule.c:320: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before 'PyTypeObject'
> _librsyncmodule.c:323: error: expected specifier-qualifier-list before 
> 'PyObject_HEAD'
> _librsyncmodule.c:330: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before '*' token
> _librsyncmodule.c:357: error: expected ')' before '*' token
> _librsyncmodule.c:370: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before '*' token
> _librsyncmodule.c:398: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before '_librsync_patchmaker_methods'
> _librsyncmodule.c:403: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before '*' token
> _librsyncmodule.c:418: error: expected declaration specifiers or '...' before 
> 'PyObject'
> _librsyncmodule.c: In function '_librsync_patchmaker_setattr':
> _librsyncmodule.c:420: error: '_librsync_PatchMakerObject' has no member 
> named 'x_attr'
> _librsyncmodule.c:420: error: 'NULL' undeclared (first use in this function)
> _librsyncmodule.c:421: error: '_librsync_PatchMakerObject' has no member 
> named 'x_attr'
> _librsyncmodule.c:422: error: '_librsync_PatchMakerObject' has no member 
> named 'x_attr'
> _librsyncmodule.c:424: error: 'v' undeclared (first use in this function)
> _librsyncmodule.c:425: error: '_librsync_PatchMakerObject' has no member 
> named 'x_attr'
> _librsyncmodule.c:427: error: 'PyExc_AttributeError' undeclared (first use in 
> this function)
> _librsyncmodule.c:431: error: '_librsync_PatchMakerObject' has no member 
> named 'x_attr'
> _librsyncmodule.c: At top level:
> _librsyncmodule.c:434: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before '_librsync_PatchMakerType'
> _librsyncmodule.c:455: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before '_librsyncMethods'
> _librsyncmodule.c: In function 'init_librsync':
> _librsyncmodule.c:467: error: 'PyObject' undeclared (first use in this 
> function)
> _librsyncmodule.c:467: error: 'm' undeclared (first use in this function)
> _librsyncmodule.c:467: error: 'd' undeclared (first use in this function)
> _librsyncmodule.c:467: warning: left-hand operand of comma expression has no 
> effect
> _librsyncmodule.c:469: error: '_librsync_SigMakerType' undeclared (first use 
> in this function)
> _librsyncmodule.c:469: error: 'PyType_Type' undeclared (first use in this 
> function)
> _librsyncmodule.c:470: error: '_librsync_DeltaMakerType' undeclared (first 
> use in this function)
> _librsyncmodule.c:471: warning: implicit declaration of function 
> 'Py_InitModule'
> _librsyncmodule.c:471: error: '_librsyncMethods' undeclared (first use in 
> this function)
> _librsyncmodule.c:472: warning: implicit declaration of function 
> 'PyModule_GetDict'
> _librsyncmodule.c:473: error: 'librsyncError' undeclared (first use in this 
> function)
> _librsyncmodule.c:473: warning: implicit declaration of function 
> 'PyErr_NewException'
> _librsyncmodule.c:473: error: 'NULL' undeclared (first use in this function)
> _librsyncmodule.c:476: warning: implicit declaration of function 
> 'Py_BuildValue'
> _librsyncmodule.c:478: error: 'RS_DEFAULT_BLOCK_LEN' undeclared (first use in 
> this function)
> error: command 'gcc' failed with exit status 1

Everything should be installed fine:

> # python -V
> Python 2.5.2

> # apt-cache show librsync1
> Package: librsync1
> Priority: optional
> Section: libs
> Installed-Size: 168
> Maintainer: Daniel Baumann <address@hidden>
> Architecture: amd64
> Source: librsync
> Version: 0.9.7-5
> Depends: libbz2-1.0, libc6 (>= 2.7-1), libpopt0 (>= 1.14), zlib1g (>= 1:1.1.4)
> Filename: pool/main/libr/librsync/librsync1_0.9.7-5_amd64.deb
> Size: 69978
> MD5sum: 86930745a7304b79cee70a1ad4a50638
> SHA1: 2ce4c3ae8b8e5cdeae27f3fb7ffc4c85456bb44c
> SHA256: 3134d788e6c537626b2f144c39a34b3677c962896e4acb8f0970dde7e553f080
> Description: rsync remote-delta algorithm library
>  librsync implements the rsync remote-delta algorithm, which allows for
>  efficient remote updates of a file, without requiring the old and new 
> versions
>  to both be present at the transmitter. The library uses a stream-based 
> designed
>  so that it can be easily embedded into network applications.
>  .
>  The main application at the moment is rproxy, but the library should 
> eventually
>  be generally useful.
> Homepage: http://librsync.sourceforge.net/
> Tag: devel::library, role::shared-lib, works-with::file


-- 
Yves Goergen "LonelyPixel" <address@hidden>
Visit my web laboratory at http://beta.unclassified.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]