This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.

⚠️ We've moved!

Hi there!

To reduce project dependency on 3rd party paid services the StackStorm TSC has decided to move the Q/A from this forum to Github Discussions. This will make user experience better integrated with the native Github flow, as well as the questions closer to the community where they can provide answers.

Use 🔗 Github Discussions to ask your questions.

Not able to make Python script executed by StackStorm action use ncclient Python library

Hello All,
I am trying to execute .py script which references ncclient library but StackStorm is not able to find the library. When I try to run the .py script through st2 run I get:

ModuleNotFoundError: No module named ‘ncclient’

Tried to add the library within the virtualenv of the corresponding pack (and also the st2 virtualenv), still getting the same error.

My question is what is the proper way to have the library added?

Thanks

The issue was within st2 virtual-env and some privilege issues for site-packages folder. Once fixed, library is visible.