Broken install 14.04! HELP

FAILED: pip3 install --upgrade rtyaml email_validator idna cryptography

Requirement already up-to-date: rtyaml in /usr/local/lib/python3.4/dist-packages
Requirement already up-to-date: email-validator in /usr/local/lib/python3.4/dist-packages
Requirement already up-to-date: idna in /usr/local/lib/python3.4/dist-packages
Downloading/unpacking cryptography
Running setup.py (path:/tmp/pip_build_root/cryptography/setup.py) egg_info for package cryptography

no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'

Downloading/unpacking pyyaml (from rtyaml)
Running setup.py (path:/tmp/pip_build_root/pyyaml/setup.py) egg_info for package pyyaml

Requirement already up-to-date: dnspython3 in /usr/local/lib/python3.4/dist-packages (from email-validator)
Downloading/unpacking pyasn1>=0.1.8 (from cryptography)
Running setup.py (path:/tmp/pip_build_root/pyasn1/setup.py) egg_info for package pyasn1

Downloading/unpacking six>=1.4.1 from https://pypi.python.org/packages/3.3/s/six/six-1.9.0-py2.py3-none-any.whl#md5=9ac7e129a80f72d6fc1f0216f6e9627b (from cryptography)
Downloading six-1.9.0-py2.py3-none-any.whl
Downloading/unpacking setuptools from https://pypi.python.org/packages/3.4/s/setuptools/setuptools-18.1-py2.py3-none-any.whl#md5=b6c8eae6b3636dd952e71135805ee156 (from cryptography)
Downloading/unpacking cffi>=1.1.0 (from cryptography)
Running setup.py (path:/tmp/pip_build_root/cffi/setup.py) egg_info for package cffi

Downloading/unpacking pycparser (from cffi>=1.1.0->cryptography)
Running setup.py (path:/tmp/pip_build_root/pycparser/setup.py) egg_info for package pycparser

warning: no previously-included files matching 'yacctab.*' found under directory 'tests'
warning: no previously-included files matching 'lextab.*' found under directory 'tests'
warning: no previously-included files matching 'yacctab.*' found under directory 'examples'
warning: no previously-included files matching 'lextab.*' found under directory 'examples'

Installing collected packages: cryptography, pyyaml, pyasn1, six, setuptools, cffi, pycparser
Running setup.py install for cryptography

Installed /tmp/pip_build_root/cryptography/cffi-1.1.2-py3.4-linux-x86_64.egg
Searching for pycparser
Reading https://pypi.python.org/simple/pycparser/
Best match: pycparser 2.14
Downloading https://pypi.python.org/packages/source/p/pycparser/pycparser-2.14.tar.gz#md5=a2bc8d28c923b4fe2b2c3b4b51a4f935
Processing pycparser-2.14.tar.gz
Writing /tmp/easy_install-cgfzwuhh/pycparser-2.14/setup.cfg
Running pycparser-2.14/setup.py -q bdist_egg --dist-dir /tmp/easy_install-cgfzwuhh/pycparser-2.14/egg-dist-tmp-0pwnr8fs
warning: no previously-included files matching 'yacctab.*' found under directory 'tests'
warning: no previously-included files matching 'lextab.*' found under directory 'tests'
warning: no previously-included files matching 'yacctab.*' found under directory 'examples'
warning: no previously-included files matching 'lextab.*' found under directory 'examples'
zip_safe flag not set; analyzing archive contents...

Installed /tmp/pip_build_root/cryptography/pycparser-2.14-py3.4.egg
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip_build_root/cryptography/setup.py", line 307, in <module>
    **keywords_with_side_effects(sys.argv)
  File "/usr/lib/python3.4/distutils/core.py", line 108, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 243, in __init__
    _Distribution.__init__(self,attrs)
  File "/usr/lib/python3.4/distutils/dist.py", line 280, in __init__
    self.finalize_options()
  File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 277, in finalize_options
    ep.load()(self, ep.name, value)
  File "/tmp/pip_build_root/cryptography/cffi-1.1.2-py3.4-linux-x86_64.egg/cffi/setuptools_ext.py", line 154, in cffi_modules
    add_cffi_module(dist, cffi_module)
  File "/tmp/pip_build_root/cryptography/cffi-1.1.2-py3.4-linux-x86_64.egg/cffi/setuptools_ext.py", line 48, in add_cffi_module
    execfile(build_file_name, mod_vars)
  File "/tmp/pip_build_root/cryptography/cffi-1.1.2-py3.4-linux-x86_64.egg/cffi/setuptools_ext.py", line 24, in execfile
    exec(code, glob, glob)
  File "src/_cffi_src/build_openssl.py", line 82, in <module>
    extra_link_args=extra_link_args(sys.platform),
  File "/tmp/pip_build_root/cryptography/src/_cffi_src/utils.py", line 62, in build_ffi_for_binding
    extra_link_args=extra_link_args,
  File "/tmp/pip_build_root/cryptography/src/_cffi_src/utils.py", line 70, in build_ffi
    ffi = FFI()
  File "/tmp/pip_build_root/cryptography/cffi-1.1.2-py3.4-linux-x86_64.egg/cffi/api.py", line 56, in __init__
    import _cffi_backend as backend
ImportError: /tmp/pip_build_root/cryptography/cffi-1.1.2-py3.4-linux-x86_64.egg/_cffi_backend.cpython-34m.so: failed to map segment from shared object: Operation not permitted
Complete output from command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-6dernyit-record/install-record.txt --single-version-externally-managed --compile:

Installed /tmp/pip_build_root/cryptography/cffi-1.1.2-py3.4-linux-x86_64.egg

Searching for pycparser

Reading https://pypi.python.org/simple/pycparser/

Best match: pycparser 2.14

Downloading https://pypi.python.org/packages/source/p/pycparser/pycparser-2.14.tar.gz#md5=a2bc8d28c923b4fe2b2c3b4b51a4f935

Processing pycparser-2.14.tar.gz

Writing /tmp/easy_install-cgfzwuhh/pycparser-2.14/setup.cfg

Running pycparser-2.14/setup.py -q bdist_egg --dist-dir /tmp/easy_install-cgfzwuhh/pycparser-2.14/egg-dist-tmp-0pwnr8fs

warning: no previously-included files matching ‘yacctab.*’ found under directory ‘tests’

warning: no previously-included files matching ‘lextab.*’ found under directory ‘tests’

warning: no previously-included files matching ‘yacctab.*’ found under directory ‘examples’

warning: no previously-included files matching ‘lextab.*’ found under directory ‘examples’

zip_safe flag not set; analyzing archive contents…

Installed /tmp/pip_build_root/cryptography/pycparser-2.14-py3.4.egg

Traceback (most recent call last):

File “”, line 1, in

File “/tmp/pip_build_root/cryptography/setup.py”, line 307, in

**keywords_with_side_effects(sys.argv)

File “/usr/lib/python3.4/distutils/core.py”, line 108, in setup

_setup_distribution = dist = klass(attrs)

File “/usr/lib/python3/dist-packages/setuptools/dist.py”, line 243, in init

_Distribution.__init__(self,attrs)

File “/usr/lib/python3.4/distutils/dist.py”, line 280, in init

self.finalize_options()

File “/usr/lib/python3/dist-packages/setuptools/dist.py”, line 277, in finalize_options

ep.load()(self, ep.name, value)

File “/tmp/pip_build_root/cryptography/cffi-1.1.2-py3.4-linux-x86_64.egg/cffi/setuptools_ext.py”, line 154, in cffi_modules

add_cffi_module(dist, cffi_module)

File “/tmp/pip_build_root/cryptography/cffi-1.1.2-py3.4-linux-x86_64.egg/cffi/setuptools_ext.py”, line 48, in add_cffi_module

execfile(build_file_name, mod_vars)

File “/tmp/pip_build_root/cryptography/cffi-1.1.2-py3.4-linux-x86_64.egg/cffi/setuptools_ext.py”, line 24, in execfile

exec(code, glob, glob)

File “src/_cffi_src/build_openssl.py”, line 82, in

extra_link_args=extra_link_args(sys.platform),

File “/tmp/pip_build_root/cryptography/src/_cffi_src/utils.py”, line 62, in build_ffi_for_binding

extra_link_args=extra_link_args,

File “/tmp/pip_build_root/cryptography/src/_cffi_src/utils.py”, line 70, in build_ffi

ffi = FFI()

File “/tmp/pip_build_root/cryptography/cffi-1.1.2-py3.4-linux-x86_64.egg/cffi/api.py”, line 56, in init

import _cffi_backend as backend

ImportError: /tmp/pip_build_root/cryptography/cffi-1.1.2-py3.4-linux-x86_64.egg/_cffi_backend.cpython-34m.so: failed to map segment from shared object: Operation not permitted


Cleaning up…
Command /usr/bin/python3 -c “import setuptools, tokenize;file=’/tmp/pip_build_root/cryptography/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-6dernyit-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/cryptography
Storing debug log for failure in /root/.pip/pip.log

I believe this is an out-of-memory issue. It might work if you try it again or a few times.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.