hi team im trying to integrate postgresql with stackstorm and establishing connection using python but im
unable to import psycopg2
my code is executing in python but in stackstorm I’m getting the following error
ERROR:
Traceback (most recent call last):
File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/runners/python_action_wrapper.py", line 216, in _get_action_instance
actions_cls = action_loader.register_plugin(Action, self._file_path)
File "/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/util/loader.py", line 165, in register_plugin
module = imp.load_source(module_name, plugin_abs_file_path)
File "/opt/stackstorm/packs/postgres/actions/sha.py", line 1, in <module>
import psycopg2
ImportError: No module named psycopg2
I have tried installing psycopg2 it got installed successfully but still I’m facing the same error