When attempting to create an Elastigroup through Ansible on AWS, users may encounter an error indicating that the Spotinst SDK library is missing, even though it has already been installed. This issue is associated with the Python interpreter configuration within Ansible.
The error message displays as:
TASK [create elastigroup] *****************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "the Spotinst SDK library is required. (pip install spotinst_sdk2)"}
This occurs because Ansible may use a different Python interpreter or virtual environment than the one where the spotinst-sdk-2 package is installed. Ansible uses Interpreter Discovery, which automatically determines which Python interpreter to use.
To identify the interpreter path Ansible is currently using, run the following command:
ansible localhost -a 'which python'
If the ansible_python_interpreter variable is not explicitly configured, Ansible defaults to the system Python interpreter, which might not include the installed packages.
To resolve the issue, define the desired Python interpreter explicitly by adding the following configuration to your ansible.cfg file:
ansible_python_interpreter=/path/to/your/python
Refer to Ansible Python 3 support documentation for additional details on setting up interpreter configurations.
Related Articles
Fix the “Spotinst SDK library is required” error when using Ansible 5Number of Views Azure VM import fails with error: Parameter 'id' is required and cannot be null 14Number of Views Windows Loads a Different Library or Launches a Different Executable than was Intended by the Author of a InstallShield Se… 57Number of Views Offline activation failed with error 51306, 51309 (FLX_ACT_TRAN_ERR_RSP_SIGNATURE_*) 52Number of Views HOTFIX: Install Fails With Error 1001 When a .NET Installer Class Component is Present in InstallShield 2015 SP1 18Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add additional feedback (optional)
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
|
FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513
(toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367
(toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895
2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago