You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named '_struct'fatal: [vintdevhdb001.fdz.internal]: FAILED! => { "changed": false, "module_stderr": "Shared connection to som.host closed.\r\n", "module_stdout": " Traceback (most recent call last):\r\n File "/var/tmp/ansible-tmp-1725457957.175195-2959474-12846379217444/AnsiballZ_sap_hdbsql.py", line 107,in \r\n _ansiballz_main()\r\n File "/var/tmp/ansible-tmp-1725457957.175195-2959474-12846379217444/AnsiballZ_sap_hdbsql.py", line 24,in _ansiballz_main\r\n import base64\r\n File "/usr/sap/IDH/HDB00/exe/Python3/lib/python3.8/base64.py", line 10,in \r\n import struct\r\n File "/usr/sap/IDH/HDB00/exe/Python3/lib/python3.8/struct.py", line 13,in \r\n from _struct import *\r\nModuleNotFoundError: No module named '_struct' \r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
@woreis Please first check the System Python versus the user Python. The Ansible Module sap_hdbsql does not import struct, it is imported at a much lower level and without reading your updated comment - I would have said become_user is problematic.
Summary
Hi,
I just wanted to test sap_hdbsql.py and immediately run into an issue.
When I run this, I get the error shown below. But of course the struct.py file can be found on the target system.
Any idea, what could cause this problem ?
Help would be appreciated,
Thanks, Wolfgang
Issue Type
Bug Report
Component Name
sap_libs, module sap_hdbsql.py
Ansible Version
community.sap_libs Version
Configuration
$ ansible-config dump --only-changed
OS / Environment
RHEL 9
Steps to Reproduce
Expected Results
I expected the List of users to be shown.
Actual Results
But the file exists on the target:
Code of Conduct
The text was updated successfully, but these errors were encountered: