Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to import the required Python library (ansible-pylibssh) #1946

Open
pingunreachable opened this issue Apr 17, 2024 · 1 comment
Open

Comments

@pingunreachable
Copy link

pingunreachable commented Apr 17, 2024

Hi all,

I am clutching at straws and I am hoping to get some help.

I am getting the following error:
module_stderr: Failed to import the required Python library (ansible-pylibssh) on server-ansible's Python /root/snap/semaphore/common/ansible_env/bin/python. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter 7:57:46 PM module_stdout: '' 7:57:46 PM msg: |- 7:57:46 PM MODULE FAILURE 7:57:46 PM See stdout/stderr for the exact error

From what I can see, ansible-pylibssh is installed in the site-package of python3.10 bit not python3.8 which has a a symlink to python which in turns has a symlink to /usr/bin/python3.

Troubleshooting:

I have run out of ideas on what to do. Any help will be greatly appreciated.

@tboerger
Copy link
Collaborator

tboerger commented May 8, 2024

IMHO we should deprecate the snap installation method as this leads quite often to issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants