i have this in my python files...works in both python versions but not in 
ansible runs.




root@lpgaixmgmtlx01:/etc/ansible/aix>python
Python 2.7.5 (default, Mar 26 2019, 22:07:57)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from __future__ import (absolute_import, division,unicode_literals, 
print_function)
>>> from future import standard_library
>>> from builtins import dict
>>> standard_library.install_aliases()
>>> from builtins import object
>>> __metaclass__ = type
>>>
>>> exit()
root@lpgaixmgmtlx01:/etc/ansible/aix>source /opt/rh/rh-python36/root/bin/
activate
(root) root@lpgaixmgmtlx01:/etc/ansible/aix>python
Python 3.6.3 (default, Apr 10 2019, 10:26:31)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from __future__ import (absolute_import, division,unicode_literals, 
print_function)
>>> from future import standard_library
>>> from builtins import dict
>>> standard_library.install_aliases()
>>> from builtins import object
>>> __metaclass__ = type
>>>





On Monday, May 13, 2019 at 3:56:40 PM UTC+2, Brian Coca wrote:
>
> I cannot reproduce with 2.7/3.5/3.6 nor 3.7 
>
> note that the code imports from `__future__` , not `future`, I get an 
> import error when attempting `import future` 
> -- 
> ---------- 
> Brian Coca 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d304de40-7e83-4af4-8ea9-98d466749679%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to