你好,看错误是cffi的问题,你先源码安装依赖试下,python管理包建议用pip安装,这样就不用考虑依赖的问题了。[/quote]
嗯,解决了,安装了个hashlib,最后装上了ansible,可是又有新问题,在我使用这条命令ansible hosts -m command -a "hostname"的时候,报错:ERROR! Unexpected Exception, this is probably a bug: 'module' object has no attribute 'HTTPSHandler'
to see the full traceback, use -vvv
[/quote]
你好,请安装yum install openssl openssl-devel -y库。[/quote]
你好,加我qq:843668157,有问题可以问我
你好,看错误是cffi的问题,你先源码安装依赖试下,python管理包建议用pip安装,这样就不用考虑依赖的问题了。[/quote]
嗯,解决了,安装了个hashlib,最后装上了ansible,可是又有新问题,在我使用这条命令ansible hosts -m command -a "hostname"的时候,报错:ERROR! Unexpected Exception, this is probably a bug: 'module' object has no attribute 'HTTPSHandler'
to see the full traceback, use -vvv
[/quote]
你好,请安装yum install openssl openssl-devel -y库。
你好,看错误是cffi的问题,你先源码安装依赖试下,python管理包建议用pip安装,这样就不用考虑依赖的问题了。[/quote]
嗯,解决了,安装了个hashlib,最后装上了ansible,可是又有新问题,在我使用这条命令ansible hosts -m command -a "hostname"的时候,报错:ERROR! Unexpected Exception, this is probably a bug: 'module' object has no attribute 'HTTPSHandler'
to see the full traceback, use -vvv
你好,看错误是cffi的问题,你先源码安装依赖试下,python管理包建议用pip安装,这样就不用考虑依赖的问题了。[/quote]
嗯,解决了,安装了个hashlib,最后装上了ansible,可是又有新问题,在我使用这条命令ansible hosts -m command -a "hostname"的时候,报错:ERROR! Unexpected Exception, this is probably a bug: 'module' object has no attribute 'HTTPSHandler'
to see the full traceback, use -vvv
[/quote]
你好,请安装yum install openssl openssl-devel -y库。[/quote]
你好,加我qq:843668157,有问题可以问我[/quote]
大哥,suse哪来的yum啊
Traceback (most recent call last):
File "/usr/local/python3.6/lib/python3.6/site-packages/cffi-1.7.0-py3.6-linux-x86_64.egg/cffi/cparser.py", line 260, in _parse
ast = _get_parser().parse(csource)
File "/usr/local/python3.6/lib/python3.6/site-packages/pycparser/c_parser.py", line 152, in parse
debug=debuglevel)
File "/usr/local/python3.6/lib/python3.6/site-packages/pycparser/ply/yacc.py", line 331, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "/usr/local/python3.6/lib/python3.6/site-packages/pycparser/ply/yacc.py", line 1199, in parseopt_notrack
tok = call_errorfunc(self.errorfunc, errtoken, self)
File "/usr/local/python3.6/lib/python3.6/site-packages/pycparser/ply/yacc.py", line 193, in call_errorfunc
r = errorfunc(token)
File "/usr/local/python3.6/lib/python3.6/site-packages/pycparser/c_parser.py", line 1761, in p_error
column=self.clex.find_tok_column(p)))
File "/usr/local/python3.6/lib/python3.6/site-packages/pycparser/plyparser.py", line 66, in _parse_error
raise ParseError("%s: %s" % (coord, msg))
pycparser.plyparser.ParseError: :25:28: before: time_t
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "setup.py", line 334, in <module>
**keywords_with_side_effects(sys.argv)
File "/usr/local/python3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/usr/local/python3.6/lib/python3.6/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/local/python3.6/lib/python3.6/site-packages/setuptools/dist.py", line 372, in __init__
_Distribution.__init__(self, attrs)
File "/usr/local/python3.6/lib/python3.6/distutils/dist.py", line 281, in __init__
self.finalize_options()
File "/usr/local/python3.6/lib/python3.6/site-packages/setuptools/dist.py", line 528, in finalize_options
ep.load()(self, ep.name, value)
File "/usr/local/python3.6/lib/python3.6/site-packages/cffi-1.7.0-py3.6-linux-x86_64.egg/cffi/setuptools_ext.py", line 161, in cffi_modules
add_cffi_module(dist, cffi_module)
File "/usr/local/python3.6/lib/python3.6/site-packages/cffi-1.7.0-py3.6-linux-x86_64.egg/cffi/setuptools_ext.py", line 48, in add_cffi_module
execfile(build_file_name, mod_vars)
File "/usr/local/python3.6/lib/python3.6/site-packages/cffi-1.7.0-py3.6-linux-x86_64.egg/cffi/setuptools_ext.py", line 24, in execfile
exec(code, glob, glob)
File "src/_cffi_src/build_openssl.py", line 81, in <module>
extra_link_args=extra_link_args(compiler_type()),
File "src/_cffi_src/utils.py", line 61, in build_ffi_for_binding
extra_link_args=extra_link_args,
File "src/_cffi_src/utils.py", line 70, in build_ffi
ffi.cdef(cdef_source)
File "/usr/local/python3.6/lib/python3.6/site-packages/cffi-1.7.0-py3.6-linux-x86_64.egg/cffi/api.py", line 105, in cdef
self._cdef(csource, override=override, packed=packed)
File "/usr/local/python3.6/lib/python3.6/site-packages/cffi-1.7.0-py3.6-linux-x86_64.egg/cffi/api.py", line 119, in _cdef
self._parser.parse(csource, override=override, **options)
File "/usr/local/python3.6/lib/python3.6/site-packages/cffi-1.7.0-py3.6-linux-x86_64.egg/cffi/cparser.py", line 299, in parse
self._internal_parse(csource)
File "/usr/local/python3.6/lib/python3.6/site-packages/cffi-1.7.0-py3.6-linux-x86_64.egg/cffi/cparser.py", line 304, in _internal_parse
ast, macros, csource = self._parse(csource)
File "/usr/local/python3.6/lib/python3.6/site-packages/cffi-1.7.0-py3.6-linux-x86_64.egg/cffi/cparser.py", line 262, in _parse
self.convert_pycparser_error(e, csource)
File "/usr/local/python3.6/lib/python3.6/site-packages/cffi-1.7.0-py3.6-linux-x86_64.egg/cffi/cparser.py", line 291, in convert_pycparser_error
raise api.CDefError(msg)
cffi.api.CDefError: cannot parse "typedef int __dotdotdot__ time_t;"
:25:28: before: time_t