0

I have created global.robot file consist of variable and import libraries that consist of python file Total 5 python files I have imported into global.robot but 3 are giving error of Unresolved library: libraries/Ansible Runner. Error generating libspec: Importing library 'AnsibleRunner' falled: FileNotFoundError:

I have solve the error inside of python file and also update the virtual environment and also clear cache and restar pycharm

2
  • Please provide enough code so others can better understand or reproduce the problem. Commented Jul 31, 2024 at 14:45
  • You have to provide a sample how exactly you import them, and the directory structure. Otherwise - no one should/can imagine it, to help you out. Commented Aug 3, 2024 at 11:34

1 Answer 1

0

Unresolved library: libraries/Ansible Runner. Error generating libspec: Importing library 'AnsibleRunner' falled: FileNotFoundError:

See that you library has a space in the filename, and robot removes spaces or undersocres.

You should not use modules with spaces in its filename.

You did not show the Library import statement in *** Settings ***, but there is probably a mistake in that import. Maybe you should import the Python script, or double check you module or class name.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.