Issue when configuring duplicity

140 views
Skip to first unread message

betk...@gmail.com

unread,
Aug 7, 2017, 6:19:12 PM8/7/17
to Alt-F
Hi,

I'm running RC5 on DNS323B1.
I tried to install duplicity but I was still on RC4.

Just flashed and tried to re install duplicity on command line.

Here is what i got :

[root@NAS]# ipkg install duplicity
Installing duplicity (0.6.25) to /Alt-F...
Downloading http://sourceforge.net/projects/alt-f/files/pkgs/unstable/duplicity_0.6.25_arm.ipk
Configuring duplicity
Installing elementtree, lockfile, paramiko, boto, dropbox, gdata, please wait...
Collecting http://effbot.org/media/downloads/elementtree-1.2.6-20050316.tar.gz
 
Downloading http://effbot.org/media/downloads/elementtree-1.2.6-20050316.tar.gz (41kB)
   
100% |################################| 51kB 246kB/s
Collecting lockfile
/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
 
SNIMissingWarning
/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
 
InsecurePlatformWarning
 
Downloading lockfile-0.12.2-py2.py3-none-any.whl
Collecting paramiko
 
Downloading paramiko-2.2.1-py2.py3-none-any.whl (176kB)
   
100% |################################| 184kB 119kB/s
Collecting boto
 
Downloading boto-2.48.0-py2.py3-none-any.whl (1.4MB)
   
100% |################################| 1.4MB 27kB/s
Collecting dropbox
 
Downloading dropbox-8.0.0-py2-none-any.whl (392kB)
   
100% |################################| 399kB 91kB/s
Collecting gdata
 
Downloading gdata-2.0.18.zip (3.1MB)
   
100% |################################| 3.1MB 3.7kB/s
Collecting pyasn1>=0.1.7 (from paramiko)
 
Downloading pyasn1-0.3.2-py2.py3-none-any.whl (63kB)
   
100% |################################| 71kB 257kB/s
Collecting bcrypt>=3.1.3 (from paramiko)
 
Downloading bcrypt-3.1.3.tar.gz (40kB)
   
100% |################################| 40kB 182kB/s
Collecting cryptography>=1.1 (from paramiko)
 
Downloading cryptography-2.0.3.tar.gz (427kB)
   
100% |################################| 430kB 84kB/s
Collecting pynacl>=1.0.1 (from paramiko)
 
Downloading PyNaCl-1.1.2.tar.gz (3.1MB)
   
100% |################################| 3.1MB 5.6kB/s
   
Complete output from command python setup.py egg_info:
    unable to execute
/home/jcard/Alt-F/alt-f-sf/build/build_arm/staging_dir/usr/bin/arm-linux-uclibcgnueabi-gcc: No such file or directory
    unable to execute
/home/jcard/Alt-F/alt-f-sf/build/build_arm/staging_dir/usr/bin/arm-linux-uclibcgnueabi-gcc: No such file or directory

       
No working compiler found, or bogus compiler options
        passed to the compiler
from Python's distutils module.
        See the error messages above.
        (If they are about -mno-fused-madd and you are on OS/X 10.8,
        see http://stackoverflow.com/questions/22313407/ .)
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-1E1vWX/pynacl/setup.py", line 232, in <module>
        "Programming Language :: Python :: 3.6",
      File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 325, in __init__
        self.fetch_build_eggs(attrs['
setup_requires'])
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 446, in fetch_build_eggs
        replace_conflicting=True,
      File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 855, in resolve
        dist = best[req.key] = env.best_match(req, ws, installer)
      File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1127, in best_match
        return self.obtain(req, installer)
      File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1139, in obtain
        return installer(requirement)
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 518, in fetch_build_egg
        return cmd.easy_install(req)
      File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 672, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 698, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 879, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1118, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1106, in run_setup
        raise DistutilsError("Setup script exited with %s" % (v.args[0],))
    distutils.errors.DistutilsError: Setup script exited with 1

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-1E1vWX/pynacl/
 failed
postinst script returned status 1
ERROR: duplicity.postinst returned 1
Successfully terminated.


Any idea of what I could do ?

Thanks !

João Cardoso

unread,
Aug 12, 2017, 2:39:05 PM8/12/17
to Alt-F
The current  'cryptography' python module, required by 'paramiko', which is almost always required by duplicity, now needs to be compiled on the box, and that is not possible under Alt-F.


Any idea of what I could do ?

There is nothing you can do, unless you are able to manually install a previous 'cryptography' version that don't needs compilation on the box.
duplicity should be removed from the available Alt-F packages or a 'cryptography' package made available.

If your backup method does not require paramiko/cryptography, duplicity will still probably work.

 

Thanks !

betk...@gmail.com

unread,
Aug 12, 2017, 3:09:26 PM8/12/17
to Alt-F
Many thanks for your answer.
If there any module able to do Amazon S3 backup in alt-F ?

João Cardoso

unread,
Aug 12, 2017, 4:17:09 PM8/12/17
to Alt-F


On Saturday, 12 August 2017 20:09:26 UTC+1, betkleson wrote:
Many thanks for your answer.
If there any module able to do Amazon S3 backup in alt-F ?

You can try 's3cmd', a command line python package.
Install using 'pip install s3cmd' (assuming that python is installed) and then 's3cmd --help' and check the site http://s3tools.org/s3cmd for usage and examples

BeTK

unread,
Aug 12, 2017, 5:16:54 PM8/12/17
to al...@googlegroups.com
Great.
Thank you for your job !

Garanti sans virus. www.avast.com

--
You received this message because you are subscribed to a topic in the Google Groups "Alt-F" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/alt-f/h1NpxPSqXLc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to alt-f+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.

ScDc

unread,
Oct 20, 2017, 7:39:49 AM10/20/17
to al...@googlegroups.com
One option to have and run Duplicity under Alt-F 1.0 (as well as RC5, I think) is to "Debian -chroot"

To have it setup:
1. Install Debian via Alt-F means
2. root@DNS-323: debian -chroot
3. apt-get update; apt-get upgrade; apt-get install duplicity
4. duplicity ./backup-me file:///mnt/sdc1/backup-me-here

Not sure whether this is a subject to automation, however works for manual backups.

Thought worth mentioning in this thread. Thanks!
Reply all
Reply to author
Forward
0 new messages