Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Python problem: can't install dev-python/cryptography
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cgi
n00b
n00b


Joined: 04 Aug 2014
Posts: 1

PostPosted: Mon Aug 04, 2014 12:40 pm    Post subject: Python problem: can't install dev-python/cryptography Reply with quote

Hi there,

I have some trouble with python, but I have no idea what is wrong.
dev-python/cryptography emerges just fine on my gentoo virtual machine, but on the host it errors out. This is not a new thing,
It has been like that for a few months now and for a few versions of dev-python/cryptography. Also an emerge -e @world did not fix it.
I hope, someone can point me in the right direction. It wasn't an inconvenience until now, but now other stuff fails because of unsatisfied dependencies.
Any way here is the output of the build.log:

Code:
 * Package:    dev-python/cryptography-0.5.2
 * Repository: gentoo
 * Maintainer: python@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_3 userland_GNU
 * FEATURES:   preserve-libs sandbox splitdebug userpriv usersandbox
>>> Unpacking source...
>>> Unpacking cryptography-0.5.2.tar.gz to /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work
>>> Source unpacked in /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work
>>> Preparing source in /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2 ...
>>> Source prepared.
>>> Configuring source in /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2 ...
>>> Source configured.
>>> Compiling source in /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2 ...
 * python3_3: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python3.3 setup.py build
running build
running build_ext
building '_Cryptography_cffi_8482f7bfxf342507b' extension
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/primitives/__pycache__/cryptography
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/primitives/__pycache__/cryptography/hazmat
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/primitives/__pycache__/cryptography/hazmat/primitives
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/primitives/__pycache__/cryptography/hazmat/primitives/__pycache__
x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -fPIC -I/usr/include/python3.3 -c cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_8482f7bfxf342507b.c -o /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/primitives/__pycache__/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_8482f7bfxf342507b.o
x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -march=core2 -O2 -pipe /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/primitives/__pycache__/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_8482f7bfxf342507b.o -L/usr/lib64 -lpython3.3 -o /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_8482f7bfxf342507b.cpython-33.so
running build_ext
building '_Cryptography_cffi_67ae6899xc1767c5a' extension
x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -fPIC -I/usr/include/python3.3 -c cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_67ae6899xc1767c5a.c -o /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/primitives/__pycache__/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_67ae6899xc1767c5a.o
x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -march=core2 -O2 -pipe /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/primitives/__pycache__/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_67ae6899xc1767c5a.o -L/usr/lib64 -lpython3.3 -o /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_67ae6899xc1767c5a.cpython-33.so
running build_ext
building '_Cryptography_cffi_4f32d02dx3a8a382' extension
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/bindings/__pycache__/cryptography
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/bindings/__pycache__/cryptography/hazmat
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/bindings/__pycache__/cryptography/hazmat/bindings
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/bindings/__pycache__/cryptography/hazmat/bindings/__pycache__
x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -fPIC -I/usr/include/python3.3 -c cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4f32d02dx3a8a382.c -o /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/bindings/__pycache__/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4f32d02dx3a8a382.o
x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -march=core2 -O2 -pipe /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/bindings/__pycache__/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4f32d02dx3a8a382.o -L/usr/lib64 -lcrypto -lssl -lpython3.3 -o /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4f32d02dx3a8a382.cpython-33.so
running build_py
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography
copying cryptography/__about__.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography
copying cryptography/__init__.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography
copying cryptography/exceptions.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography
copying cryptography/fernet.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography
copying cryptography/utils.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat
copying cryptography/hazmat/__init__.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/backends
copying cryptography/hazmat/backends/__init__.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/backends
copying cryptography/hazmat/backends/interfaces.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/backends
copying cryptography/hazmat/backends/multibackend.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/backends
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings
copying cryptography/hazmat/bindings/__init__.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings
copying cryptography/hazmat/bindings/utils.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives
copying cryptography/hazmat/primitives/__init__.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives
copying cryptography/hazmat/primitives/cmac.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives
copying cryptography/hazmat/primitives/constant_time.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives
copying cryptography/hazmat/primitives/hashes.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives
copying cryptography/hazmat/primitives/hmac.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives
copying cryptography/hazmat/primitives/interfaces.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives
copying cryptography/hazmat/primitives/padding.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives
copying cryptography/hazmat/primitives/serialization.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/backends/commoncrypto
copying cryptography/hazmat/backends/commoncrypto/__init__.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/backends/commoncrypto
copying cryptography/hazmat/backends/commoncrypto/backend.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/backends/commoncrypto
copying cryptography/hazmat/backends/commoncrypto/ciphers.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/backends/commoncrypto
copying cryptography/hazmat/backends/commoncrypto/hashes.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/backends/commoncrypto
copying cryptography/hazmat/backends/commoncrypto/hmac.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/backends/commoncrypto
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/backends/openssl
copying cryptography/hazmat/backends/openssl/__init__.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/backends/openssl
copying cryptography/hazmat/backends/openssl/backend.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/backends/openssl
copying cryptography/hazmat/backends/openssl/ciphers.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/backends/openssl
copying cryptography/hazmat/backends/openssl/cmac.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/backends/openssl
copying cryptography/hazmat/backends/openssl/dsa.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/backends/openssl
copying cryptography/hazmat/backends/openssl/ec.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/backends/openssl
copying cryptography/hazmat/backends/openssl/hashes.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/backends/openssl
copying cryptography/hazmat/backends/openssl/hmac.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/backends/openssl
copying cryptography/hazmat/backends/openssl/rsa.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/backends/openssl
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/commoncrypto
copying cryptography/hazmat/bindings/commoncrypto/__init__.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/commoncrypto
copying cryptography/hazmat/bindings/commoncrypto/binding.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/commoncrypto
copying cryptography/hazmat/bindings/commoncrypto/cf.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/commoncrypto
copying cryptography/hazmat/bindings/commoncrypto/common_cryptor.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/commoncrypto
copying cryptography/hazmat/bindings/commoncrypto/common_digest.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/commoncrypto
copying cryptography/hazmat/bindings/commoncrypto/common_hmac.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/commoncrypto
copying cryptography/hazmat/bindings/commoncrypto/common_key_derivation.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/commoncrypto
copying cryptography/hazmat/bindings/commoncrypto/secimport.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/commoncrypto
copying cryptography/hazmat/bindings/commoncrypto/secitem.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/commoncrypto
copying cryptography/hazmat/bindings/commoncrypto/seckey.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/commoncrypto
copying cryptography/hazmat/bindings/commoncrypto/seckeychain.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/commoncrypto
copying cryptography/hazmat/bindings/commoncrypto/sectransform.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/commoncrypto
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/__init__.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/aes.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/asn1.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/bignum.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/binding.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/bio.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/cmac.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/cms.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/conf.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/crypto.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/dh.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/dsa.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/ec.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/ecdh.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/ecdsa.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/engine.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/err.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/evp.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/hmac.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/nid.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/objects.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/opensslv.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/osrandom_engine.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/pem.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/pkcs12.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/pkcs7.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/rand.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/rsa.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/ssl.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/x509.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/x509_vfy.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/x509name.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
copying cryptography/hazmat/bindings/openssl/x509v3.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/bindings/openssl
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives/asymmetric
copying cryptography/hazmat/primitives/asymmetric/__init__.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives/asymmetric
copying cryptography/hazmat/primitives/asymmetric/dsa.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives/asymmetric
copying cryptography/hazmat/primitives/asymmetric/ec.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives/asymmetric
copying cryptography/hazmat/primitives/asymmetric/padding.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives/asymmetric
copying cryptography/hazmat/primitives/asymmetric/rsa.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives/asymmetric
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives/ciphers
copying cryptography/hazmat/primitives/ciphers/__init__.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives/ciphers
copying cryptography/hazmat/primitives/ciphers/algorithms.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives/ciphers
copying cryptography/hazmat/primitives/ciphers/base.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives/ciphers
copying cryptography/hazmat/primitives/ciphers/modes.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives/ciphers
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives/kdf
copying cryptography/hazmat/primitives/kdf/__init__.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives/kdf
copying cryptography/hazmat/primitives/kdf/hkdf.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives/kdf
copying cryptography/hazmat/primitives/kdf/pbkdf2.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives/kdf
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives/twofactor
copying cryptography/hazmat/primitives/twofactor/__init__.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives/twofactor
copying cryptography/hazmat/primitives/twofactor/hotp.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives/twofactor
copying cryptography/hazmat/primitives/twofactor/totp.py -> /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/hazmat/primitives/twofactor
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building '_Cryptography_cffi_4f32d02dx3a8a382' extension
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/temp.linux-x86_64-3.3
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/temp.linux-x86_64-3.3/cryptography
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/temp.linux-x86_64-3.3/cryptography/hazmat
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/temp.linux-x86_64-3.3/cryptography/hazmat/bindings
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/temp.linux-x86_64-3.3/cryptography/hazmat/bindings/__pycache__
x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -fPIC -I/usr/include/python3.3 -c cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4f32d02dx3a8a382.c -o /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/temp.linux-x86_64-3.3/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4f32d02dx3a8a382.o
x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -march=core2 -O2 -pipe /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/temp.linux-x86_64-3.3/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4f32d02dx3a8a382.o -L/usr/lib64 -lcrypto -lssl -lpython3.3 -o /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/_Cryptography_cffi_4f32d02dx3a8a382.cpython-33.so
building '_Cryptography_cffi_8482f7bfxf342507b' extension
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/temp.linux-x86_64-3.3/cryptography/hazmat/primitives
creating /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/temp.linux-x86_64-3.3/cryptography/hazmat/primitives/__pycache__
x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -fPIC -I/usr/include/python3.3 -c cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_8482f7bfxf342507b.c -o /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/temp.linux-x86_64-3.3/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_8482f7bfxf342507b.o
x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -march=core2 -O2 -pipe /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/temp.linux-x86_64-3.3/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_8482f7bfxf342507b.o -L/usr/lib64 -lpython3.3 -o /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/_Cryptography_cffi_8482f7bfxf342507b.cpython-33.so
building '_Cryptography_cffi_67ae6899xc1767c5a' extension
x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -fPIC -I/usr/include/python3.3 -c cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_67ae6899xc1767c5a.c -o /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/temp.linux-x86_64-3.3/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_67ae6899xc1767c5a.o
x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -march=core2 -O2 -pipe /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/temp.linux-x86_64-3.3/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_67ae6899xc1767c5a.o -L/usr/lib64 -lpython3.3 -o /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2-python3_3/lib/cryptography/_Cryptography_cffi_67ae6899xc1767c5a.cpython-33.so
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python2.7 setup.py build
running build
running build_ext
building '_Cryptography_cffi_684bb40axf342507b' extension
x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -fPIC -I/usr/include/python2.7 -c cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_684bb40axf342507b.c -o /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/primitives/__pycache__/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_684bb40axf342507b.o
x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -march=core2 -O2 -pipe /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/primitives/__pycache__/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_684bb40axf342507b.o -L/usr/lib64 -lpython2.7 -o /data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_684bb40axf342507b.so
Traceback (most recent call last):
  File "setup.py", line 174, in <module>
    "test": PyTest,
  File "/usr/lib64/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.7/distutils/dist.py", line 971, in run_command
    cmd_obj.ensure_finalized()
  File "/usr/lib64/python2.7/distutils/cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "setup.py", line 88, in finalize_options
    self.distribution.ext_modules = get_ext_modules()
  File "setup.py", line 65, in get_ext_modules
    from cryptography.hazmat.primitives import constant_time, padding
  File "/data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/primitives/padding.py", line 25, in <module>
    from cryptography.hazmat.primitives import interfaces
  File "/data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2/cryptography/hazmat/primitives/interfaces.py", line 21, in <module>
    @six.add_metaclass(abc.ABCMeta)
AttributeError: 'module' object has no attribute 'add_metaclass'
 * ERROR: dev-python/cryptography-0.5.2::gentoo failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 3480:  Called distutils-r1_src_compile
 *   environment, line 1052:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  296:  Called python_parallel_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3347:  Called multibuild_parallel_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2373:  Called multibuild_foreach_variant '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2316:  Called _multibuild_run '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2314:  Called _multibuild_parallel '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2364:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  708:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1041:  Called distutils-r1_python_compile
 *   environment, line  906:  Called esetup.py 'build'
 *   environment, line 1492:  Called die
 * The specific snippet of code:
 *       "${@}" || die
 *
 * If you need support, post the output of `emerge --info '=dev-python/cryptography-0.5.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/cryptography-0.5.2::gentoo'`.
 * The complete build log is located at '/data/.portage/tmp/portage/dev-python/cryptography-0.5.2/temp/build.log'.
 * The ebuild environment file is located at '/data/.portage/tmp/portage/dev-python/cryptography-0.5.2/temp/environment'.
 * Working directory: '/data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2'
 * S: '/data/.portage/tmp/portage/dev-python/cryptography-0.5.2/work/cryptography-0.5.2'


and emerge --info

Quote:
Portage 2.2.11 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.8.3, glibc-2.19-r1, 3.15.6-gentoo x86_64)
=================================================================
System uname: Linux-3.15.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-4790_CPU_@_3.60GHz-with-gentoo-2.2
KiB Mem: 16369192 total, 8282428 free
KiB Swap: 2047996 total, 2047996 free
Timestamp of tree: Mon, 04 Aug 2014 11:00:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash: 4.2_p47
dev-java/java-config: 2.2.0
dev-lang/python: 2.7.8, 3.3.5-r1, 3.4.1
dev-util/cmake: 2.8.12.2-r1
dev-util/pkgconfig: 0.28-r2
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.12.4
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.11.6, 1.14.1
sys-devel/binutils: 2.24-r3
sys-devel/gcc: 4.8.3
sys-devel/gcc-config: 1.8
sys-devel/libtool: 2.4.2-r1
sys-devel/make: 4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc: 2.19-r1
Repositories: gentoo dotnet
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/data/.portage/distfiles"
EMERGE_DEFAULT_OPTS="--load-average=10 --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles lmirror merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" ftp://gg3.net/pub/linux/gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="--silent -j8 --load-average=10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/data/.portage/tmp"
PORTDIR="/data/.portage/tree"
PORTDIR_OVERLAY="/var/lib/layman/dotnet"
USE="X a52 aac acl acpi alsa amd64 apng berkdb bidi bluetooth bluray branding bzip2 cairo cdda cdr chm cjk cli consolekit cracklib crypt cryptsetup cups cxx dbus declarative dirac directfb djvu dri dts dvd dvdr ebook emboss encode equalizer exif fam fbcon ffmpeg firefox flac fontconfig fortran g3dvl gdbm gif gles2 gnuplot gpm gstreamer gtk ibus iconv icu ipv6 jabber jpeg jpeg2k kde kipi lcms ldap libnotify lm_sensors lzma lzo mad mmx mng modules mp3 mp4 mpeg msn multilib ncurses networkmanager nls nptl offensive offlinehelp ogg opengl openmp opus pam pango pcre pdf pdfimport phonon plasma png policykit ppds pulseaudio qt3support qt4 readline rtmp schroedinger sdl session sip smp sndfile spell sse sse2 sse3 ssl ssse3 startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upower usb v4l v4l2 vdpau vorbis wxwidgets x264 xattr xcb xcomposite xinerama xml xmpp xscreensaver xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370
ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev"
KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="vesa intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

Back to top
View user's profile Send private message
AnonymousRetard
n00b
n00b


Joined: 02 Oct 2014
Posts: 3

PostPosted: Thu Oct 02, 2014 5:58 pm    Post subject: Reply with quote

Hi there cgi,

I've had the same problem for quite a while, but I managed to solve it today.

It seems that cryptography is failing to install for some reason if the current active python interpreter is version 2.
You have to change to a python 3 version. I ran

eselect python set 3

after having listed them with

eselect python list

After that cryptography still won't install (I assume something in the ebuild makes sure that python 2 is being used), but now you can instead install cryptography through pip for example.

So:
emerge pip
pip install cryptography (This will fail with the exact same error about add_metaclass just as the emerge if your python interpreter is version 2, otherwise it finally succeeds)

Now you'll have to tell portage that you have provided cryptography yourself. Looking at the install logs I saw that pip installed crypthography version 0.6 (not in the portage tree atm).
So put this in package.provided:

echo "dev-python/cryptography-0.6" >> /etc/portage/profile/package.provided
(But make sure that the version of cryptography matches with what you installed)


And now you can finally install all other packages that depend on cryptography. Good luck!

If anyone has a better solution, please tell me. I know that this is an ugly hack, but it works for now :/
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9117

PostPosted: Fri Oct 03, 2014 1:47 am    Post subject: Reply with quote

AnonymousRetard: that is a terrible solution and should never be suggested on a Gentoo system. There have been numerous forum threads where running pip with root privilege prompted it to do something braindead and replace Python with Pip, so that anything run through #!/usr/bin/python would instead run Pip. Pip should never be used as root on Gentoo. In my opinion, pip does not deserve the title of package manager and should never be used at all.

Although package.provided works in this case, it is intended for situations where the named package is unnecessary on the system due to circumstances outside of Portage. If you need to install something that is not in the Portage tree, you should install via an ebuild in an overlay.
Back to top
View user's profile Send private message
AnonymousRetard
n00b
n00b


Joined: 02 Oct 2014
Posts: 3

PostPosted: Fri Oct 03, 2014 12:51 pm    Post subject: Reply with quote

I know it's a bad solution but it worked. And that's why I also asked for a better solution. Apparently you did not have one?

I did find another solution though that I'm using right now. If we can turn off python2_7 for cryptography, it will build. Unfortunately that would create blocks on my system. Amongst others layman needed it for ssl-fetch with python2_7.

I now have this in my package.use and no longer need to have pip on my system and can use the cryptography from the portage tree:

app-portage/layman -python_targets_python2_7
app-portage/gentoolkit -python_targets_python2_7
app-admin/webapp-config -python_targets_python2_7
dev-python/ssl-fetch -python_targets_python2_7
dev-python/cryptography -python_targets_python2_7

Other systems might need other flags but those worked for me.

I did initially remove python2_7 on portage as well (because it runs faster with python 3 and that use flag is gone so it's now controlled by the current active interpreter?). But If you do that emerge will fail to build some python2_7 only packages...


Edit: I do belive that the real solution is to fix the ebuild for cryptography which probably has some kind of bug in it, but I don't know how to do that. And I find it a little bit weird that not very many people seem to have this issue. This has been broken for me for 1-2 months. Previously I just did "--exclude layman --exclude cryptography" to be able to update the rest of my system...
Back to top
View user's profile Send private message
AnonymousRetard
n00b
n00b


Joined: 02 Oct 2014
Posts: 3

PostPosted: Fri Oct 03, 2014 7:58 pm    Post subject: Reply with quote

If someone else is actually willing+able to solve this problem properly I have some more information here so you won't have to waste your time uneccessarily.

I have already tried compiling six+cryptography with all combinations of ld.bfd and ld.gold + gcc 4.7.4/gcc 4.8.3/gcc 4.9.1. I have tried with all CFLAGS/CXXFLAGS/LDFLAGS completely off (empty strings). I have tried basically ALL versions of six (that doesn't block cryptography) and cryptography in the portage tree. Even the 9999 versions. They are all broken on my system.

From what I understand six is a compatibility layer between python 2 and 3. So I'm wondering, why is the build process in the ebuild using python 2 (this doesn't seem possible to change with eselect python) AND six? If it's building natively with python 2, why six? Could this be why it fails?

There's no way for me too build cryptography using the official ebuild with python_targets_python2_7. Using pip, it will actually use the python version selected by eselect python, and as long as a python version 3 is selected. It will work. Otherwise it will generate the same error message as the ebuild does.
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9117

PostPosted: Sat Oct 04, 2014 12:39 am    Post subject: Reply with quote

AnonymousRetard wrote:
I know it's a bad solution but it worked. And that's why I also asked for a better solution. Apparently you did not have one?
When I see someone advocate a solution that is known to cause severe system breakage, I feel compelled to step in and warn others away from it. Your proposed solution may have solved your immediate problem, but running Pip as root has caused far worse problems for people on multiple occasions.

I do not see any problems with dev-python/cryptography, so I cannot help you find a good solution.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum