LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   ansible installation error in centos 7 (https://www.linuxquestions.org/questions/linux-server-73/ansible-installation-error-in-centos-7-a-4175585702/)

SagarMalve 07-28-2016 06:08 AM

ansible installation error in centos 7
 
pip install ansible
Collecting ansible
Using cached ansible-2.1.0.0.tar.gz
Collecting paramiko (from ansible)
Using cached paramiko-2.0.2-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): jinja2 in /usr/lib/python2.7/site-packages (from ansible)
Requirement already satisfied (use --upgrade to upgrade): PyYAML in /usr/lib64/python2.7/site-packages (from ansible)
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/site-packages (from ansible)
Requirement already satisfied (use --upgrade to upgrade): pycrypto>=2.6 in /usr/lib64/python2.7/site-packages (from ansible)
Collecting cryptography>=1.1 (from paramiko->ansible)
Using cached cryptography-1.4.tar.gz
Requirement already satisfied (use --upgrade to upgrade): pyasn1>=0.1.7 in /usr/lib/python2.7/site-packages (from paramiko->ansible)
Requirement already satisfied (use --upgrade to upgrade): markupsafe in /usr/lib64/python2.7/site-packages (from jinja2->ansible)
Requirement already satisfied (use --upgrade to upgrade): idna>=2.0 in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko->ansible)
Requirement already satisfied (use --upgrade to upgrade): six>=1.4.1 in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko->ansible)
Requirement already satisfied (use --upgrade to upgrade): enum34 in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko->ansible)
Requirement already satisfied (use --upgrade to upgrade): ipaddress in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko->ansible)
Requirement already satisfied (use --upgrade to upgrade): cffi>=1.4.1 in /usr/lib64/python2.7/site-packages (from cryptography>=1.1->paramiko->ansible)
Requirement already satisfied (use --upgrade to upgrade): pycparser in /usr/lib/python2.7/site-packages (from cffi>=1.4.1->cryptography>=1.1->paramiko->ansible)
Installing collected packages: cryptography, paramiko, ansible
Found existing installation: cryptography 0.8.2
Uninstalling cryptography-0.8.2:
Successfully uninstalled cryptography-0.8.2
Running setup.py install for cryptography ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-lqRa2a/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-GnY_Xd-record/install-record.txt --single-version-externally-managed --compile:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-lqRa2a/cryptography/setup.py", line 333, in <module>
**keywords_with_side_effects(sys.argv)
File "/usr/lib64/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 351, in __init__
_Distribution.__init__(self, attrs)
File "/usr/lib64/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 408, in finalize_options
ep.load()(self, ep.name, value)
File "/usr/lib64/python2.7/site-packages/cffi/setuptools_ext.py", line 161, in cffi_modules
add_cffi_module(dist, cffi_module)
File "/usr/lib64/python2.7/site-packages/cffi/setuptools_ext.py", line 48, in add_cffi_module
execfile(build_file_name, mod_vars)
File "/usr/lib64/python2.7/site-packages/cffi/setuptools_ext.py", line 24, in execfile
exec(code, glob, glob)
File "src/_cffi_src/build_openssl.py", line 93, in <module>
extra_link_args=extra_link_args(compiler_type()),
File "/tmp/pip-build-lqRa2a/cryptography/src/_cffi_src/utils.py", line 64, in build_ffi_for_binding
extra_link_args=extra_link_args,
File "/tmp/pip-build-lqRa2a/cryptography/src/_cffi_src/utils.py", line 73, in build_ffi
ffi.cdef(cdef_source)
File "/usr/lib64/python2.7/site-packages/cffi/api.py", line 103, in cdef
self._parser.parse(csource, override=override, packed=packed)
File "/usr/lib64/python2.7/site-packages/cffi/cparser.py", line 166, in parse
self._internal_parse(csource)
File "/usr/lib64/python2.7/site-packages/cffi/cparser.py", line 200, in _internal_parse
realtype = self._get_type(decl.type, name=decl.name)
File "/usr/lib64/python2.7/site-packages/cffi/cparser.py", line 349, in _get_type
return resolve_common_type(ident)
File "/usr/lib64/python2.7/site-packages/cffi/commontypes.py", line 35, in resolve_common_type
"if you think it should be." % (commontype,))
cffi.api.FFIError: Unsupported type: 'int __dotdotdot__'. Please file a bug if you think it should be.

----------------------------------------
Rolling back uninstall of cryptography
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-lqRa2a/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-GnY_Xd-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-lqRa2a/cryptography/

TB0ne 07-28-2016 08:39 AM

Quote:

Originally Posted by SagarMalve (Post 5582443)
Code:

pip install ansible
Collecting ansible
  Using cached ansible-2.1.0.0.tar.gz
Collecting paramiko (from ansible)
  Using cached paramiko-2.0.2-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): jinja2 in /usr/lib/python2.7/site-packages (from ansible)
Requirement already satisfied (use --upgrade to upgrade): PyYAML in /usr/lib64/python2.7/site-packages (from ansible)
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/site-packages (from ansible)
Requirement already satisfied (use --upgrade to upgrade): pycrypto>=2.6 in /usr/lib64/python2.7/site-packages (from ansible)
Collecting cryptography>=1.1 (from paramiko->ansible)
  Using cached cryptography-1.4.tar.gz
Requirement already satisfied (use --upgrade to upgrade): pyasn1>=0.1.7 in /usr/lib/python2.7/site-packages (from paramiko->ansible)
Requirement already satisfied (use --upgrade to upgrade): markupsafe in /usr/lib64/python2.7/site-packages (from jinja2->ansible)
Requirement already satisfied (use --upgrade to upgrade): idna>=2.0 in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko->ansible)
Requirement already satisfied (use --upgrade to upgrade): six>=1.4.1 in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko->ansible)
Requirement already satisfied (use --upgrade to upgrade): enum34 in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko->ansible)
Requirement already satisfied (use --upgrade to upgrade): ipaddress in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko->ansible)
Requirement already satisfied (use --upgrade to upgrade): cffi>=1.4.1 in /usr/lib64/python2.7/site-packages (from cryptography>=1.1->paramiko->ansible)
Requirement already satisfied (use --upgrade to upgrade): pycparser in /usr/lib/python2.7/site-packages (from cffi>=1.4.1->cryptography>=1.1->paramiko->ansible)
Installing collected packages: cryptography, paramiko, ansible
  Found existing installation: cryptography 0.8.2
    Uninstalling cryptography-0.8.2:
      Successfully uninstalled cryptography-0.8.2
  Running setup.py install for cryptography ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-lqRa2a/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-GnY_Xd-record/install-record.txt --single-version-externally-managed --compile:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-lqRa2a/cryptography/setup.py", line 333, in <module>
        **keywords_with_side_effects(sys.argv)
      File "/usr/lib64/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 351, in __init__
        _Distribution.__init__(self, attrs)
      File "/usr/lib64/python2.7/distutils/dist.py", line 287, in __init__
        self.finalize_options()
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 408, in finalize_options
        ep.load()(self, ep.name, value)
      File "/usr/lib64/python2.7/site-packages/cffi/setuptools_ext.py", line 161, in cffi_modules
        add_cffi_module(dist, cffi_module)
      File "/usr/lib64/python2.7/site-packages/cffi/setuptools_ext.py", line 48, in add_cffi_module
        execfile(build_file_name, mod_vars)
      File "/usr/lib64/python2.7/site-packages/cffi/setuptools_ext.py", line 24, in execfile
        exec(code, glob, glob)
      File "src/_cffi_src/build_openssl.py", line 93, in <module>
        extra_link_args=extra_link_args(compiler_type()),
      File "/tmp/pip-build-lqRa2a/cryptography/src/_cffi_src/utils.py", line 64, in build_ffi_for_binding
        extra_link_args=extra_link_args,
      File "/tmp/pip-build-lqRa2a/cryptography/src/_cffi_src/utils.py", line 73, in build_ffi
        ffi.cdef(cdef_source)
      File "/usr/lib64/python2.7/site-packages/cffi/api.py", line 103, in cdef
        self._parser.parse(csource, override=override, packed=packed)
      File "/usr/lib64/python2.7/site-packages/cffi/cparser.py", line 166, in parse
        self._internal_parse(csource)
      File "/usr/lib64/python2.7/site-packages/cffi/cparser.py", line 200, in _internal_parse
        realtype = self._get_type(decl.type, name=decl.name)
      File "/usr/lib64/python2.7/site-packages/cffi/cparser.py", line 349, in _get_type
        return resolve_common_type(ident)
      File "/usr/lib64/python2.7/site-packages/cffi/commontypes.py", line 35, in resolve_common_type
        "if you think it should be." % (commontype,))
    cffi.api.FFIError: Unsupported type: 'int __dotdotdot__'.  Please file a bug if you think it should be.
   
    ----------------------------------------
  Rolling back uninstall of cryptography
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-lqRa2a/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-GnY_Xd-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-lqRa2a/cryptography/


...and is there a question in there somewhere??? You posted a dump of some generic package-install stuff, and don't bother providing ANY usable details. Read the "Question Guidelines" in my posting signature. Things like version/distro of Linux, etc.,

SagarMalve 07-28-2016 08:56 AM

Actually I have mention it in subject line sorry for miscommunication ..

ansible installation error in centos 7

while installing using pip I got that error I have tried to install cryptography but still not work ..

TB0ne 07-28-2016 02:26 PM

Quote:

Originally Posted by SagarMalve (Post 5582484)
Actually I have mention it in subject line sorry for miscommunication ..

ansible installation error in centos 7

while installing using pip I got that error I have tried to install cryptography but still not work ..

And the VERY FIRST HIT in Google for "how to install ansible on centos 7" is:
http://www.liquidweb.com/kb/how-to-i...tos-7-via-yum/

...complete instructions on how to install via yum. Why are you installing via pip/source? And did you actually read what you posted? It says you have TWO cryptography packages (0.8.2 and you're trying to install 1.4). Pick one.


All times are GMT -5. The time now is 10:54 PM.