{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/8266","labels_url":"https://api.github.com/repos/ansible/ansible/issues/8266/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/8266/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/8266/events","html_url":"https://github.com/ansible/ansible/issues/8266","id":38561495,"number":8266,"title":"No module named fcnt1 on AIX","user":{"login":"crossroads1112","id":3654575,"avatar_url":"https://avatars.githubusercontent.com/u/3654575?v=3","gravatar_id":"","url":"https://api.github.com/users/crossroads1112","html_url":"https://github.com/crossroads1112","followers_url":"https://api.github.com/users/crossroads1112/followers","following_url":"https://api.github.com/users/crossroads1112/following{/other_user}","gists_url":"https://api.github.com/users/crossroads1112/gists{/gist_id}","starred_url":"https://api.github.com/users/crossroads1112/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crossroads1112/subscriptions","organizations_url":"https://api.github.com/users/crossroads1112/orgs","repos_url":"https://api.github.com/users/crossroads1112/repos","events_url":"https://api.github.com/users/crossroads1112/events{/privacy}","received_events_url":"https://api.github.com/users/crossroads1112/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible/labels/P4","name":"P4","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-07-23T19:13:04Z","updated_at":"2015-06-05T03:53:12Z","closed_at":"2014-09-29T20:55:21Z","body":"##### Issue Type:\r\nBug Report\r\n##### Ansible Version:\r\nansible 1.7 (devel 75e5b6401c) last updated 2014/07/22 14:37:30 (GMT -400)\r\n\r\n##### Environment:\r\n\r\nRunning from RHEL 6\r\nManaging AIX\r\n\r\n##### Summary:\r\nCan't connect to AIX box: more details in next section\r\n\r\n##### Steps To Reproduce:\r\n\r\nCompile python 2.6.8 on AIX.\r\nRun\r\n    ansible -m ping aixservername\r\n##### Expected Results:\r\n\r\nThe ping would not fail\r\n\r\n##### Actual Results:\r\n\r\nThe ping command returns:  \r\n\r\n    aixservername   | FAILED >> {\r\n    \"failed\": true,\r\n    \"msg\": \"Traceback (most recent call last):\\n  File \\\"/home/chad/.ansible/tmp/ansible-   tmp-1406142576.36-87138506530381/ping\\\", line 102, in <module>\\n    import   subprocess\\n  File \\\"/opt/freeware/lib/python2.6/subprocess.py\\\", line 416, in <module>\\n    import fcntl\\nImportError: No module named fcntl\\n\",\r\n    \"parsed\": false\r\n    }\r\n\r\nAny idea what causes this?"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/109155334","html_url":"https://github.com/ansible/ansible/issues/8266#issuecomment-109155334","issue_url":"https://api.github.com/repos/ansible/ansible/issues/8266","id":109155334,"user":{"login":"knh1","id":2151449,"avatar_url":"https://avatars.githubusercontent.com/u/2151449?v=3","gravatar_id":"","url":"https://api.github.com/users/knh1","html_url":"https://github.com/knh1","followers_url":"https://api.github.com/users/knh1/followers","following_url":"https://api.github.com/users/knh1/following{/other_user}","gists_url":"https://api.github.com/users/knh1/gists{/gist_id}","starred_url":"https://api.github.com/users/knh1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knh1/subscriptions","organizations_url":"https://api.github.com/users/knh1/orgs","repos_url":"https://api.github.com/users/knh1/repos","events_url":"https://api.github.com/users/knh1/events{/privacy}","received_events_url":"https://api.github.com/users/knh1/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T03:53:11Z","updated_at":"2015-06-05T03:53:11Z","body":"If you are using the AIX python RPM from perzl.org, then you will need to switch the symbolic links in /usr/bin to point at the 64-bit binaries in /opt/freeware/bin.\r\n\r\n```\r\n# Change to /usr/bin directory\r\ncd /usr/bin\r\n\r\n# Create links to 32-bit python\r\nls -l python* | grep -v _64 | awk '{print $(NF-2)\" \"$NF}' | while read LINK TARGET ; do LINK=$(echo $LINK | /opt/freeware/bin/sed 's/python\\(2.6\\)*/\\0_32/') ; echo \"$LINK --> $TARGET\" ; sudo ln -s $TARGET $LINK ; echo ; done\r\n\r\n# Replace default 32-bit links with 64-bit targets\r\nls -l python* | grep _64 | awk '{print $(NF-2)\" \"$NF}' | while read LINK TARGET ; do LINK=$(echo $LINK | sed 's/_64//') ; echo \"$LINK --> $TARGET\" ; sudo ln -fs $TARGET $LINK; echo ; done\r\n```"}}