g2p / bedup

Btrfs deduplication
http://pypi.python.org/pypi/bedup
GNU General Public License v2.0
322 stars 50 forks source link

Incompatibility with cffi 1.6.0 causes error upon installation on Ubuntu 16.04 #75

Closed adamryczkowski closed 8 years ago

adamryczkowski commented 8 years ago

Here is a whole session:

⏚ [adam:~] $ ssh adam-minipc
Welcome to Ubuntu 16.04 LTS (GNU/Linux 4.4.0-21-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

0 packages can be updated.
0 updates are security updates.

Last login: Wed May  4 21:26:25 2016
adam@adam-miniPC:~$ cd tmp
adam@adam-miniPC:~/tmp$ git clone --depth 1 https://github.com/g2p/bedup.git
Cloning into 'bedup'...
fatal: unable to access 'https://github.com/g2p/bedup.git/': Failed to connect to github.com port 443: No route to host
adam@adam-miniPC:~/tmp$ sudo ip route del default[sudo] password for adam: 
adam@adam-miniPC:~/tmp$ git clone --depth 1 https://github.com/g2p/bedup.git
Cloning into 'bedup'...
remote: Counting objects: 35, done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 35 (delta 6), reused 14 (delta 0), pack-reused 0
Unpacking objects: 100% (35/35), done.
Checking connectivity... done.
adam@adam-miniPC:~/tmp$ cd  bedup/
adam@adam-miniPC:~/tmp/bedup$ sudo aptitude install python3-pip python3-dev libffi-dev build-essential git
build-essential is already installed at the requested version (12.1ubuntu2)
git is already installed at the requested version (1:2.7.4-0ubuntu1)
build-essential is already installed at the requested version (12.1ubuntu2)
git is already installed at the requested version (1:2.7.4-0ubuntu1)
The following NEW packages will be installed:
  libexpat1-dev{a} libffi-dev libpython3-dev{a} libpython3.5-dev{a} 
  python-pip-whl{a} python3-dev python3-pip python3-setuptools{a} 
  python3-wheel{a} python3.5-dev{a} 
0 packages upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 39,3 MB of archives. After unpacking 57,5 MB will be used.
Do you want to continue? [Y/n/?] y
Get: 1 http://pl.archive.ubuntu.com/ubuntu xenial/main amd64 libexpat1-dev amd64 2.1.0-7 [115 kB]
Get: 2 http://pl.archive.ubuntu.com/ubuntu xenial/main amd64 libpython3.5-dev amd64 3.5.1-10 [37,3 MB]
Get: 3 http://pl.archive.ubuntu.com/ubuntu xenial/main amd64 libpython3-dev amd64 3.5.1-3 [6926 B]
Get: 4 http://pl.archive.ubuntu.com/ubuntu xenial/universe amd64 python-pip-whl all 8.1.1-2 [1074 kB]
Get: 5 http://pl.archive.ubuntu.com/ubuntu xenial/main amd64 python3.5-dev amd64 3.5.1-10 [413 kB]
Get: 6 http://pl.archive.ubuntu.com/ubuntu xenial/main amd64 python3-dev amd64 3.5.1-3 [1186 B]
Get: 7 http://pl.archive.ubuntu.com/ubuntu xenial/universe amd64 python3-pip all 8.1.1-2 [109 kB]
Get: 8 http://pl.archive.ubuntu.com/ubuntu xenial/main amd64 python3-setuptools all 20.7.0-1 [88,0 kB]
Get: 9 http://pl.archive.ubuntu.com/ubuntu xenial/universe amd64 python3-wheel all 0.29.0-1 [48,1 kB]
Get: 10 http://pl.archive.ubuntu.com/ubuntu xenial/main amd64 libffi-dev amd64 3.2.1-4 [161 kB]
Fetched 39,3 MB in 35s (1092 kB/s)                                              
Selecting previously unselected package libexpat1-dev:amd64.
(Reading database ... 196486 files and directories currently installed.)
Preparing to unpack .../libexpat1-dev_2.1.0-7_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.1.0-7) ...
Selecting previously unselected package libpython3.5-dev:amd64.
Preparing to unpack .../libpython3.5-dev_3.5.1-10_amd64.deb ...
Unpacking libpython3.5-dev:amd64 (3.5.1-10) ...
Selecting previously unselected package libpython3-dev:amd64.
Preparing to unpack .../libpython3-dev_3.5.1-3_amd64.deb ...
Unpacking libpython3-dev:amd64 (3.5.1-3) ...
Selecting previously unselected package python-pip-whl.
Preparing to unpack .../python-pip-whl_8.1.1-2_all.deb ...
Unpacking python-pip-whl (8.1.1-2) ...
Selecting previously unselected package python3.5-dev.
Preparing to unpack .../python3.5-dev_3.5.1-10_amd64.deb ...
Unpacking python3.5-dev (3.5.1-10) ...
Selecting previously unselected package python3-dev.
Preparing to unpack .../python3-dev_3.5.1-3_amd64.deb ...
Unpacking python3-dev (3.5.1-3) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../python3-pip_8.1.1-2_all.deb ...
Unpacking python3-pip (8.1.1-2) ...
Selecting previously unselected package python3-setuptools.
Preparing to unpack .../python3-setuptools_20.7.0-1_all.deb ...
Unpacking python3-setuptools (20.7.0-1) ...
Selecting previously unselected package python3-wheel.
Preparing to unpack .../python3-wheel_0.29.0-1_all.deb ...
Unpacking python3-wheel (0.29.0-1) ...
Selecting previously unselected package libffi-dev:amd64.
Preparing to unpack .../libffi-dev_3.2.1-4_amd64.deb ...
Unpacking libffi-dev:amd64 (3.2.1-4) ...
Processing triggers for doc-base (0.10.7) ...
Processing 2 added doc-base files...
Registering documents with scrollkeeper...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for install-info (6.1.0.dfsg.1-5) ...
Setting up libexpat1-dev:amd64 (2.1.0-7) ...
Setting up libpython3.5-dev:amd64 (3.5.1-10) ...
Setting up libpython3-dev:amd64 (3.5.1-3) ...
Setting up python-pip-whl (8.1.1-2) ...
Setting up python3.5-dev (3.5.1-10) ...
Setting up python3-dev (3.5.1-3) ...
Setting up python3-pip (8.1.1-2) ...
Setting up python3-setuptools (20.7.0-1) ...
Setting up python3-wheel (0.29.0-1) ...
Setting up libffi-dev:amd64 (3.2.1-4) ...

adam@adam-miniPC:~/tmp/bedup$ pip3 install --user cffi
Collecting cffi
  Downloading cffi-1.6.0.tar.gz (397kB)
    100% |████████████████████████████████| 399kB 935kB/s 
Collecting pycparser (from cffi)
  Downloading pycparser-2.14.tar.gz (223kB)
    100% |████████████████████████████████| 225kB 1.2MB/s 
Building wheels for collected packages: cffi, pycparser
  Running setup.py bdist_wheel for cffi ... done
  Stored in directory: /home/adam/.cache/pip/wheels/8f/00/29/553c1b1db38bbeec3fec428ae4e400cd8349ecd99fe86edea1
  Running setup.py bdist_wheel for pycparser ... done
  Stored in directory: /home/adam/.cache/pip/wheels/9b/f4/2e/d03e949a551719a1ffcb659f2c63d8444f4df12e994ce52112
Successfully built cffi pycparser
Installing collected packages: pycparser, cffi
Successfully installed cffi pycparser
adam@adam-miniPC:~/tmp/bedup$ git submodule update --init
Submodule 'btrfs' (https://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git) registered for path 'btrfs'
Cloning into 'btrfs'...
remote: Counting objects: 10547, done.
remote: Total 10547 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (10547/10547), 3.68 MiB | 386.00 KiB/s, done.
Resolving deltas: 100% (7699/7699), done.
Checking connectivity... done.
Submodule path 'btrfs': checked out '7854c8b667654502f69e05584729146a06827bc6'
adam@adam-miniPC:~/tmp/bedup$ python3 setup.py install --user
bedup/platform/__pycache__/_cffi__xba35d8f7x574d0d2d.c: In function ‘_cffi_check_struct_btrfs_data_container’:
bedup/platform/__pycache__/_cffi__xba35d8f7x574d0d2d.c:767:25: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
   { uint64_t(*tmp)[0] = &p->val; (void)tmp; }
                         ^
running install
running bdist_egg
running egg_info
creating bedup.egg-info
writing bedup.egg-info/PKG-INFO
writing dependency_links to bedup.egg-info/dependency_links.txt
writing requirements to bedup.egg-info/requires.txt
writing top-level names to bedup.egg-info/top_level.txt
writing entry points to bedup.egg-info/entry_points.txt
writing manifest file 'bedup.egg-info/SOURCES.txt'
reading manifest file 'bedup.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'bedup/__pycache__'
writing manifest file 'bedup.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-3.5
creating build/lib.linux-x86_64-3.5/bedup
copying bedup/__init__.py -> build/lib.linux-x86_64-3.5/bedup
copying bedup/__main__.py -> build/lib.linux-x86_64-3.5/bedup
copying bedup/compat.py -> build/lib.linux-x86_64-3.5/bedup
copying bedup/datetime.py -> build/lib.linux-x86_64-3.5/bedup
copying bedup/dedup.py -> build/lib.linux-x86_64-3.5/bedup
copying bedup/filesystem.py -> build/lib.linux-x86_64-3.5/bedup
copying bedup/hashing.py -> build/lib.linux-x86_64-3.5/bedup
copying bedup/main.py -> build/lib.linux-x86_64-3.5/bedup
copying bedup/migrations.py -> build/lib.linux-x86_64-3.5/bedup
copying bedup/model.py -> build/lib.linux-x86_64-3.5/bedup
copying bedup/termupdates.py -> build/lib.linux-x86_64-3.5/bedup
copying bedup/test_bedup.py -> build/lib.linux-x86_64-3.5/bedup
copying bedup/tracking.py -> build/lib.linux-x86_64-3.5/bedup
creating build/lib.linux-x86_64-3.5/bedup/platform
copying bedup/platform/__init__.py -> build/lib.linux-x86_64-3.5/bedup/platform
copying bedup/platform/btrfs.py -> build/lib.linux-x86_64-3.5/bedup/platform
copying bedup/platform/cffi_support.py -> build/lib.linux-x86_64-3.5/bedup/platform
copying bedup/platform/chattr.py -> build/lib.linux-x86_64-3.5/bedup/platform
copying bedup/platform/fiemap.py -> build/lib.linux-x86_64-3.5/bedup/platform
copying bedup/platform/futimens.py -> build/lib.linux-x86_64-3.5/bedup/platform
copying bedup/platform/ioprio.py -> build/lib.linux-x86_64-3.5/bedup/platform
copying bedup/platform/openat.py -> build/lib.linux-x86_64-3.5/bedup/platform
copying bedup/platform/syncfs.py -> build/lib.linux-x86_64-3.5/bedup/platform
copying bedup/platform/time.py -> build/lib.linux-x86_64-3.5/bedup/platform
copying bedup/platform/unshare.py -> build/lib.linux-x86_64-3.5/bedup/platform
running build_ext
building '_cffi__xba35d8f7x574d0d2d' extension
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/bedup
creating build/temp.linux-x86_64-3.5/bedup/platform
creating build/temp.linux-x86_64-3.5/bedup/platform/__pycache__
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/adam/tmp/bedup -I/usr/include/python3.5m -c bedup/platform/__pycache__/_cffi__xba35d8f7x574d0d2d.c -o build/temp.linux-x86_64-3.5/bedup/platform/__pycache__/_cffi__xba35d8f7x574d0d2d.o
bedup/platform/__pycache__/_cffi__xba35d8f7x574d0d2d.c: In function ‘_cffi_check_struct_btrfs_data_container’:
bedup/platform/__pycache__/_cffi__xba35d8f7x574d0d2d.c:767:25: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
   { uint64_t(*tmp)[0] = &p->val; (void)tmp; }
                         ^
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.5/bedup/platform/__pycache__/_cffi__xba35d8f7x574d0d2d.o -o build/lib.linux-x86_64-3.5/bedup/platform/_cffi__xba35d8f7x574d0d2d.cpython-35m-x86_64-linux-gnu.so
building '_cffi__xc6fe055xd70c2778' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c bedup/platform/__pycache__/_cffi__xc6fe055xd70c2778.c -o build/temp.linux-x86_64-3.5/bedup/platform/__pycache__/_cffi__xc6fe055xd70c2778.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.5/bedup/platform/__pycache__/_cffi__xc6fe055xd70c2778.o -o build/lib.linux-x86_64-3.5/bedup/platform/_cffi__xc6fe055xd70c2778.cpython-35m-x86_64-linux-gnu.so
building '_cffi__x84e651a8xa2b2ad39' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c bedup/platform/__pycache__/_cffi__x84e651a8xa2b2ad39.c -o build/temp.linux-x86_64-3.5/bedup/platform/__pycache__/_cffi__x84e651a8xa2b2ad39.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.5/bedup/platform/__pycache__/_cffi__x84e651a8xa2b2ad39.o -o build/lib.linux-x86_64-3.5/bedup/platform/_cffi__x84e651a8xa2b2ad39.cpython-35m-x86_64-linux-gnu.so
building '_cffi__x971d94fdxc843d556' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c bedup/platform/__pycache__/_cffi__x971d94fdxc843d556.c -o build/temp.linux-x86_64-3.5/bedup/platform/__pycache__/_cffi__x971d94fdxc843d556.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.5/bedup/platform/__pycache__/_cffi__x971d94fdxc843d556.o -o build/lib.linux-x86_64-3.5/bedup/platform/_cffi__x971d94fdxc843d556.cpython-35m-x86_64-linux-gnu.so
building '_cffi__xe4856329xca02bf4d' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c bedup/platform/__pycache__/_cffi__xe4856329xca02bf4d.c -o build/temp.linux-x86_64-3.5/bedup/platform/__pycache__/_cffi__xe4856329xca02bf4d.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.5/bedup/platform/__pycache__/_cffi__xe4856329xca02bf4d.o -o build/lib.linux-x86_64-3.5/bedup/platform/_cffi__xe4856329xca02bf4d.cpython-35m-x86_64-linux-gnu.so
building '_cffi__x8a6db8dx18b4fa0c' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c bedup/platform/__pycache__/_cffi__x8a6db8dx18b4fa0c.c -o build/temp.linux-x86_64-3.5/bedup/platform/__pycache__/_cffi__x8a6db8dx18b4fa0c.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.5/bedup/platform/__pycache__/_cffi__x8a6db8dx18b4fa0c.o -o build/lib.linux-x86_64-3.5/bedup/platform/_cffi__x8a6db8dx18b4fa0c.cpython-35m-x86_64-linux-gnu.so
building '_cffi__x4dd961c9x6f134c66' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c bedup/platform/__pycache__/_cffi__x4dd961c9x6f134c66.c -o build/temp.linux-x86_64-3.5/bedup/platform/__pycache__/_cffi__x4dd961c9x6f134c66.o -D_GNU_SOURCE
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.5/bedup/platform/__pycache__/_cffi__x4dd961c9x6f134c66.o -o build/lib.linux-x86_64-3.5/bedup/platform/_cffi__x4dd961c9x6f134c66.cpython-35m-x86_64-linux-gnu.so
building '_cffi__xe62d65bdxf05e97ef' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c bedup/platform/__pycache__/_cffi__xe62d65bdxf05e97ef.c -o build/temp.linux-x86_64-3.5/bedup/platform/__pycache__/_cffi__xe62d65bdxf05e97ef.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.5/bedup/platform/__pycache__/_cffi__xe62d65bdxf05e97ef.o -lrt -o build/lib.linux-x86_64-3.5/bedup/platform/_cffi__xe62d65bdxf05e97ef.cpython-35m-x86_64-linux-gnu.so
building '_cffi__x7c8c3306x12e4e6a1' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c bedup/platform/__pycache__/_cffi__x7c8c3306x12e4e6a1.c -o build/temp.linux-x86_64-3.5/bedup/platform/__pycache__/_cffi__x7c8c3306x12e4e6a1.o -D_GNU_SOURCE
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.5/bedup/platform/__pycache__/_cffi__x7c8c3306x12e4e6a1.o -o build/lib.linux-x86_64-3.5/bedup/platform/_cffi__x7c8c3306x12e4e6a1.cpython-35m-x86_64-linux-gnu.so
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/bedup
copying build/lib.linux-x86_64-3.5/bedup/__init__.py -> build/bdist.linux-x86_64/egg/bedup
copying build/lib.linux-x86_64-3.5/bedup/__main__.py -> build/bdist.linux-x86_64/egg/bedup
copying build/lib.linux-x86_64-3.5/bedup/compat.py -> build/bdist.linux-x86_64/egg/bedup
copying build/lib.linux-x86_64-3.5/bedup/datetime.py -> build/bdist.linux-x86_64/egg/bedup
copying build/lib.linux-x86_64-3.5/bedup/dedup.py -> build/bdist.linux-x86_64/egg/bedup
copying build/lib.linux-x86_64-3.5/bedup/filesystem.py -> build/bdist.linux-x86_64/egg/bedup
copying build/lib.linux-x86_64-3.5/bedup/hashing.py -> build/bdist.linux-x86_64/egg/bedup
copying build/lib.linux-x86_64-3.5/bedup/main.py -> build/bdist.linux-x86_64/egg/bedup
copying build/lib.linux-x86_64-3.5/bedup/migrations.py -> build/bdist.linux-x86_64/egg/bedup
copying build/lib.linux-x86_64-3.5/bedup/model.py -> build/bdist.linux-x86_64/egg/bedup
copying build/lib.linux-x86_64-3.5/bedup/termupdates.py -> build/bdist.linux-x86_64/egg/bedup
copying build/lib.linux-x86_64-3.5/bedup/test_bedup.py -> build/bdist.linux-x86_64/egg/bedup
copying build/lib.linux-x86_64-3.5/bedup/tracking.py -> build/bdist.linux-x86_64/egg/bedup
creating build/bdist.linux-x86_64/egg/bedup/platform
copying build/lib.linux-x86_64-3.5/bedup/platform/__init__.py -> build/bdist.linux-x86_64/egg/bedup/platform
copying build/lib.linux-x86_64-3.5/bedup/platform/btrfs.py -> build/bdist.linux-x86_64/egg/bedup/platform
copying build/lib.linux-x86_64-3.5/bedup/platform/chattr.py -> build/bdist.linux-x86_64/egg/bedup/platform
copying build/lib.linux-x86_64-3.5/bedup/platform/fiemap.py -> build/bdist.linux-x86_64/egg/bedup/platform
copying build/lib.linux-x86_64-3.5/bedup/platform/futimens.py -> build/bdist.linux-x86_64/egg/bedup/platform
copying build/lib.linux-x86_64-3.5/bedup/platform/ioprio.py -> build/bdist.linux-x86_64/egg/bedup/platform
copying build/lib.linux-x86_64-3.5/bedup/platform/openat.py -> build/bdist.linux-x86_64/egg/bedup/platform
copying build/lib.linux-x86_64-3.5/bedup/platform/syncfs.py -> build/bdist.linux-x86_64/egg/bedup/platform
copying build/lib.linux-x86_64-3.5/bedup/platform/time.py -> build/bdist.linux-x86_64/egg/bedup/platform
copying build/lib.linux-x86_64-3.5/bedup/platform/unshare.py -> build/bdist.linux-x86_64/egg/bedup/platform
copying build/lib.linux-x86_64-3.5/bedup/platform/cffi_support.py -> build/bdist.linux-x86_64/egg/bedup/platform
copying build/lib.linux-x86_64-3.5/bedup/platform/_cffi__xba35d8f7x574d0d2d.cpython-35m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg/bedup/platform
copying build/lib.linux-x86_64-3.5/bedup/platform/_cffi__xc6fe055xd70c2778.cpython-35m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg/bedup/platform
copying build/lib.linux-x86_64-3.5/bedup/platform/_cffi__x84e651a8xa2b2ad39.cpython-35m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg/bedup/platform
copying build/lib.linux-x86_64-3.5/bedup/platform/_cffi__x971d94fdxc843d556.cpython-35m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg/bedup/platform
copying build/lib.linux-x86_64-3.5/bedup/platform/_cffi__xe4856329xca02bf4d.cpython-35m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg/bedup/platform
copying build/lib.linux-x86_64-3.5/bedup/platform/_cffi__x8a6db8dx18b4fa0c.cpython-35m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg/bedup/platform
copying build/lib.linux-x86_64-3.5/bedup/platform/_cffi__x4dd961c9x6f134c66.cpython-35m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg/bedup/platform
copying build/lib.linux-x86_64-3.5/bedup/platform/_cffi__xe62d65bdxf05e97ef.cpython-35m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg/bedup/platform
copying build/lib.linux-x86_64-3.5/bedup/platform/_cffi__x7c8c3306x12e4e6a1.cpython-35m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg/bedup/platform
byte-compiling build/bdist.linux-x86_64/egg/bedup/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/__main__.py to __main__.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/compat.py to compat.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/datetime.py to datetime.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/dedup.py to dedup.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/filesystem.py to filesystem.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/hashing.py to hashing.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/main.py to main.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/migrations.py to migrations.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/model.py to model.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/termupdates.py to termupdates.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/test_bedup.py to test_bedup.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/tracking.py to tracking.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/platform/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/platform/btrfs.py to btrfs.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/platform/chattr.py to chattr.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/platform/fiemap.py to fiemap.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/platform/futimens.py to futimens.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/platform/ioprio.py to ioprio.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/platform/openat.py to openat.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/platform/syncfs.py to syncfs.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/platform/time.py to time.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/platform/unshare.py to unshare.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/platform/cffi_support.py to cffi_support.cpython-35.pyc
creating stub loader for bedup/platform/_cffi__xba35d8f7x574d0d2d.cpython-35m-x86_64-linux-gnu.so
creating stub loader for bedup/platform/_cffi__xc6fe055xd70c2778.cpython-35m-x86_64-linux-gnu.so
creating stub loader for bedup/platform/_cffi__x84e651a8xa2b2ad39.cpython-35m-x86_64-linux-gnu.so
creating stub loader for bedup/platform/_cffi__x971d94fdxc843d556.cpython-35m-x86_64-linux-gnu.so
creating stub loader for bedup/platform/_cffi__xe4856329xca02bf4d.cpython-35m-x86_64-linux-gnu.so
creating stub loader for bedup/platform/_cffi__x8a6db8dx18b4fa0c.cpython-35m-x86_64-linux-gnu.so
creating stub loader for bedup/platform/_cffi__x4dd961c9x6f134c66.cpython-35m-x86_64-linux-gnu.so
creating stub loader for bedup/platform/_cffi__xe62d65bdxf05e97ef.cpython-35m-x86_64-linux-gnu.so
creating stub loader for bedup/platform/_cffi__x7c8c3306x12e4e6a1.cpython-35m-x86_64-linux-gnu.so
byte-compiling build/bdist.linux-x86_64/egg/bedup/platform/_cffi__xba35d8f7x574d0d2d.py to _cffi__xba35d8f7x574d0d2d.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/platform/_cffi__xc6fe055xd70c2778.py to _cffi__xc6fe055xd70c2778.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/platform/_cffi__x84e651a8xa2b2ad39.py to _cffi__x84e651a8xa2b2ad39.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/platform/_cffi__x971d94fdxc843d556.py to _cffi__x971d94fdxc843d556.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/platform/_cffi__xe4856329xca02bf4d.py to _cffi__xe4856329xca02bf4d.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/platform/_cffi__x8a6db8dx18b4fa0c.py to _cffi__x8a6db8dx18b4fa0c.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/platform/_cffi__x4dd961c9x6f134c66.py to _cffi__x4dd961c9x6f134c66.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/platform/_cffi__xe62d65bdxf05e97ef.py to _cffi__xe62d65bdxf05e97ef.cpython-35.pyc
byte-compiling build/bdist.linux-x86_64/egg/bedup/platform/_cffi__x7c8c3306x12e4e6a1.py to _cffi__x7c8c3306x12e4e6a1.cpython-35.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying bedup.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bedup.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bedup.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bedup.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bedup.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bedup.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bedup.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
creating dist
creating 'dist/bedup-0.10.0-py3.5-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing bedup-0.10.0-py3.5-linux-x86_64.egg
creating /home/adam/.local/lib/python3.5/site-packages/bedup-0.10.0-py3.5-linux-x86_64.egg
Extracting bedup-0.10.0-py3.5-linux-x86_64.egg to /home/adam/.local/lib/python3.5/site-packages
Adding bedup 0.10.0 to easy-install.pth file
Installing bedup script to /home/adam/.local/bin

Installed /home/adam/.local/lib/python3.5/site-packages/bedup-0.10.0-py3.5-linux-x86_64.egg
Processing dependencies for bedup==0.10.0
Searching for SQLAlchemy>=0.8.2
Reading https://pypi.python.org/simple/SQLAlchemy/
Best match: SQLAlchemy 1.0.12
Downloading https://pypi.python.org/packages/5c/52/9b48cd58eac58cae2a27923ff34c783f390b95413ff65669a86e98f80829/SQLAlchemy-1.0.12.tar.gz#md5=6d19ef29883bbebdcac6613cf391cac4
^[[AProcessing SQLAlchemy-1.0.12.tar.gz
Writing /tmp/easy_install-4q28po2z/SQLAlchemy-1.0.12/setup.cfg
Running SQLAlchemy-1.0.12/setup.py -q bdist_egg --dist-dir /tmp/easy_install-4q28po2z/SQLAlchemy-1.0.12/egg-dist-tmp-fi50xoe5
warning: no files found matching '*.jpg' under directory 'doc'
warning: no files found matching '*.mako' under directory 'doc'
warning: no files found matching 'distribute_setup.py'
warning: no files found matching 'sa2to3.py'
warning: no files found matching 'ez_setup.py'
no previously-included directories found matching 'doc/build/output'
zip_safe flag not set; analyzing archive contents...
sqlalchemy.__pycache__.cprocessors.cpython-35: module references __file__
sqlalchemy.__pycache__.cresultproxy.cpython-35: module references __file__
sqlalchemy.__pycache__.cutils.cpython-35: module references __file__
creating /home/adam/.local/lib/python3.5/site-packages/SQLAlchemy-1.0.12-py3.5-linux-x86_64.egg
Extracting SQLAlchemy-1.0.12-py3.5-linux-x86_64.egg to /home/adam/.local/lib/python3.5/site-packages
Adding SQLAlchemy 1.0.12 to easy-install.pth file

Installed /home/adam/.local/lib/python3.5/site-packages/SQLAlchemy-1.0.12-py3.5-linux-x86_64.egg
Searching for alembic
Reading https://pypi.python.org/simple/alembic/
Best match: alembic 0.8.6
Downloading https://pypi.python.org/packages/d2/c3/fdb752aa39832d056aeac958f35f1fb9fb9397a52bdab9248adcbd9f17d9/alembic-0.8.6.tar.gz#md5=6517b160e576cedf9b7625a18a9bc594
Processing alembic-0.8.6.tar.gz
Writing /tmp/easy_install-p_fptd_q/alembic-0.8.6/setup.cfg
Running alembic-0.8.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-p_fptd_q/alembic-0.8.6/egg-dist-tmp-nv1uhyv9
warning: no files found matching '*.jpg' under directory 'docs'
warning: no files found matching '*.sty' under directory 'docs'
warning: no files found matching '*.dat' under directory 'tests'
no previously-included directories found matching 'docs/build/output'
creating /home/adam/.local/lib/python3.5/site-packages/alembic-0.8.6-py3.5.egg
Extracting alembic-0.8.6-py3.5.egg to /home/adam/.local/lib/python3.5/site-packages
Adding alembic 0.8.6 to easy-install.pth file
Installing alembic script to /home/adam/.local/bin

Installed /home/adam/.local/lib/python3.5/site-packages/alembic-0.8.6-py3.5.egg
Searching for python-editor>=0.3
Reading https://pypi.python.org/simple/python-editor/
Best match: python-editor 1.0
Downloading https://pypi.python.org/packages/f5/d9/01eb441489c8bd2adb33ee4f3aea299a3db531a584cb39c57a0ecf516d9c/python-editor-1.0.tar.gz#md5=a5ead611360b17b52507297d8590b4e8
Processing python-editor-1.0.tar.gz
Writing /tmp/easy_install-kb54373j/python-editor-1.0/setup.cfg
Running python-editor-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-kb54373j/python-editor-1.0/egg-dist-tmp-2rgxr7m_
zip_safe flag not set; analyzing archive contents...
Moving python_editor-1.0-py3.5.egg to /home/adam/.local/lib/python3.5/site-packages
Adding python-editor 1.0 to easy-install.pth file

Installed /home/adam/.local/lib/python3.5/site-packages/python_editor-1.0-py3.5.egg
Searching for pyxdg==0.25
Best match: pyxdg 0.25
Adding pyxdg 0.25 to easy-install.pth file

Using /usr/lib/python3/dist-packages
Searching for pycparser==2.14
Best match: pycparser 2.14
Adding pycparser 2.14 to easy-install.pth file

Using /home/adam/.local/lib/python3.5/site-packages
Searching for cffi==1.6.0
Best match: cffi 1.6.0
Adding cffi 1.6.0 to easy-install.pth file

Using /home/adam/.local/lib/python3.5/site-packages
Searching for Mako==1.0.3
Best match: Mako 1.0.3
Mako 1.0.3 is already the active version in easy-install.pth
Installing mako-render script to /home/adam/.local/bin

Using /usr/lib/python3/dist-packages
Finished processing dependencies for bedup==0.10.0
adam@adam-miniPC:~/tmp/bedup$ cp -lt ~/bin ~/.local/bin/bedup
cp: failed to access '/home/adam/bin': No such file or directory
adam@adam-miniPC:~/tmp/bedup$ ~/.local/bin/bedup 
Traceback (most recent call last):
  File "/home/adam/.local/bin/bedup", line 9, in <module>
    load_entry_point('bedup==0.10.0', 'console_scripts', 'bedup')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2229, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/home/adam/.local/lib/python3.5/site-packages/bedup-0.10.0-py3.5-linux-x86_64.egg/bedup/__main__.py", line 39, in <module>
    from .platform.btrfs import find_new, get_root_generation
  File "/home/adam/.local/lib/python3.5/site-packages/bedup-0.10.0-py3.5-linux-x86_64.egg/bedup/platform/btrfs.py", line 30, in <module>
    from .fiemap import same_extents
  File "/home/adam/.local/lib/python3.5/site-packages/bedup-0.10.0-py3.5-linux-x86_64.egg/bedup/platform/fiemap.py", line 26, in <module>
    ffi = FFI()
  File "/home/adam/.local/lib/python3.5/site-packages/cffi/api.py", line 59, in __init__
    "version mismatch, %s != %s" % (backend.__version__, __version__)
AssertionError: version mismatch, 1.5.2 != 1.6.0
adam@adam-miniPC:~/tmp/bedup$ ~/.local/bin/bedup dedup
Traceback (most recent call last):
  File "/home/adam/.local/bin/bedup", line 9, in <module>
    load_entry_point('bedup==0.10.0', 'console_scripts', 'bedup')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2229, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/home/adam/.local/lib/python3.5/site-packages/bedup-0.10.0-py3.5-linux-x86_64.egg/bedup/__main__.py", line 39, in <module>
    from .platform.btrfs import find_new, get_root_generation
  File "/home/adam/.local/lib/python3.5/site-packages/bedup-0.10.0-py3.5-linux-x86_64.egg/bedup/platform/btrfs.py", line 30, in <module>
    from .fiemap import same_extents
  File "/home/adam/.local/lib/python3.5/site-packages/bedup-0.10.0-py3.5-linux-x86_64.egg/bedup/platform/fiemap.py", line 26, in <module>
    ffi = FFI()
  File "/home/adam/.local/lib/python3.5/site-packages/cffi/api.py", line 59, in __init__
    "version mismatch, %s != %s" % (backend.__version__, __version__)
AssertionError: version mismatch, 1.5.2 != 1.6.0
adam@adam-miniPC:~/tmp/bedup$ ls
bedup           btrfs  COPYING  MANIFEST.in  setup.py
bedup.egg-info  build  dist     README.rst   tox.ini
adam@adam-miniPC:~/tmp/bedup$ ~/.local/bin/bedup --help
Traceback (most recent call last):
  File "/home/adam/.local/bin/bedup", line 9, in <module>
    load_entry_point('bedup==0.10.0', 'console_scripts', 'bedup')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2229, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/home/adam/.local/lib/python3.5/site-packages/bedup-0.10.0-py3.5-linux-x86_64.egg/bedup/__main__.py", line 39, in <module>
    from .platform.btrfs import find_new, get_root_generation
  File "/home/adam/.local/lib/python3.5/site-packages/bedup-0.10.0-py3.5-linux-x86_64.egg/bedup/platform/btrfs.py", line 30, in <module>
    from .fiemap import same_extents
  File "/home/adam/.local/lib/python3.5/site-packages/bedup-0.10.0-py3.5-linux-x86_64.egg/bedup/platform/fiemap.py", line 26, in <module>
    ffi = FFI()
  File "/home/adam/.local/lib/python3.5/site-packages/cffi/api.py", line 59, in __init__
    "version mismatch, %s != %s" % (backend.__version__, __version__)
AssertionError: version mismatch, 1.5.2 != 1.6.0
adam@adam-miniPC:~/tmp/bedup$ pip3 install --user cffi
Collecting cffi
Collecting pycparser (from cffi)
Installing collected packages: pycparser, cffi
Successfully installed cffi-1.6.0 pycparser-2.14
g2p commented 8 years ago

This is a problem with the way CFFI is packaged in Ubuntu; the backend is installed separately (version 1.5.2), and the rest of the package isn't (so that pip tries to install an incompatible version). You can fix it by installing python3-cffi from the Ubuntu repositories and uninstalling the pip version.