Hello
I'm pretty newbie to python on AIX, I need to use paramiko, however I face a lot of problems trying to compile it, then I found it under the ansible packages, I installed python and all the ansible packages but there seems to be a problem when paramiko tries to import the cffi module
Below is the summary of the packages I installed and the error trying to import cffi
Installation Summary
--------------------
Name Level Part Event Result
-------------------------------------------------------------------------------
aixtools.python.pyparsing.r 2.2.0.0 USR APPLY SUCCESS
aixtools.python.pycparser.r 2.17.0.0 USR APPLY SUCCESS
aixtools.python.pyasn1.rte 0.2.3.0 USR APPLY SUCCESS
aixtools.python.paramiko.rt 2.1.2.0 USR APPLY SUCCESS
aixtools.python.packaging.r 16.8.0.0 USR APPLY SUCCESS
aixtools.python.ipaddress.r 1.0.18.0 USR APPLY SUCCESS
aixtools.python.idna.rte 2.5.0.0 USR APPLY SUCCESS
aixtools.python.enum34.rte 1.1.6.0 USR APPLY SUCCESS
aixtools.python.cryptograph 1.8.1.0 USR APPLY SUCCESS
aixtools.python.cffi.rte 1.9.1.0 USR APPLY SUCCESS
aixtools.python.asn1crypto. 0.22.0.0 USR APPLY SUCCESS
aixtools.python.appdirs.rte 1.4.3.0 USR APPLY SUCCESS
aixtools.python.ansible.rte 2.2.1.0 USR APPLY SUCCESS
aixtools.python.rte 2.7.12.3 USR APPLY SUCCESS
aixtools.python.man.en_US 2.7.12.3 USR APPLY SUCCESS
aixtools.python.six.rte 1.10.0.0 USR APPLY SUCCESS
aixtools.python.pycrypto.rt 2.6.1.0 USR APPLY SUCCESS
aixtools.python.PyYAML.rte 3.12.0.0 USR APPLY SUCCESS
aixtools.python.MarkupSafe. 0.23.0.0 USR APPLY SUCCESS
aixtools.python.Jinja2.rte 2.8.0.0 USR APPLY SUCCESS
root@AIXhost[/home/user1] /opt/bin/python
>>> import paramiko
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/lib/python2.7/site-packages/paramiko/__init__.py", line 30, in <module>
from paramiko.transport import SecurityOptions, Transport
File "/opt/lib/python2.7/site-packages/paramiko/transport.py", line 34, in <module>
from cryptography.hazmat.primitives.ciphers import algorithms, Cipher, modes
File "/opt/lib/python2.7/site-packages/cryptography/hazmat/primitives/ciphers/__init__.py", line 7, in <module>
from cryptography.hazmat.primitives.ciphers. base import (
File "/opt/lib/python2.7/site-packages/cryptography/hazmat/primitives/ciphers/base.py", line 9, in <module>
import cffi
ImportError: No module named cffi
>>>
I can see from the /opt/lib/python2.7/site-packages dir that there is no directory named cffi it is instead inside the cffi-1.9.1-py2.7-aix-5.3.egg one
root@frankie[../site-packages/cffi-1.9.1-py2.7-aix-5.3.egg] ls
EGG-INFO _cffi_backend.py _cffi_backend.pyc _cffi_backend.so cffi
root@frankie[../site-packages/cffi-1.9.1-py2.7-aix-5.3.egg]
Is there something I miss to install ? or could it be a problem with the cffi package ?
Thank you in advance