Replies: 6 comments 5 replies
-
You can contribute a fix to the upstream sql pack here: |
Beta Was this translation helpful? Give feedback.
-
I installed Stackstorm AIO using Docker. StackStorm version :"com.stackstorm.support": "Community", Docker version :df1@df1-ThinkStation-P510: All is fine i'm able to install acitve directory pack. But i cannot install sql pack. The exception :
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. I have no idea how to fix that ;( I really need to use a postgre database |
Beta Was this translation helpful? Give feedback.
-
install the psycopg2-binary as suggested by the pip output. that's what I did. |
Beta Was this translation helpful? Give feedback.
-
Yes. Stackstorm packs have their own virtual environments into which they install the required libraries. I've cloned the SQL pack for use in a K8S cluster and I've updated the requirements.txt to contain: The above doesn't work straight out of the gate and minor modifications to the action code is required, because sqlalchemy underwent significant changes in 2.0.0 release. After minor modifications to the code I'm now able to use the pack as before on my test env that's installed via manual component installation onto a RHEL8 server. |
Beta Was this translation helpful? Give feedback.
-
Any chance to publish these modifications quickly to the repo to get a full functionnal sql pack which will work within docker AIO image ? |
Beta Was this translation helpful? Give feedback.
-
I'm not a good programmer and not everyone will want to install psycopg2-binary (people may have other options).
2, in lib.base_action.py:
3, in update / insert .py remove the "autoload=True" as it's deprecated. |
Beta Was this translation helpful? Give feedback.
-
I have a newest auto-install st2 on clean Ubuntu 20 (
st2 3.6.0, on Python 3.8.10
); and want to install the sql pack.Unfortunately, it has still listed in requirements an old version of python package (psycopg2), which is not supported in Python 3.8.
So I cloned sql package locally to ~/stackstorm-sql/ and tried to modify requirements.txt.
However, when I do in ~/stackstorm-sql/
st2 pack install file:///.
it still downloads the pack from github, and tries to install the non-working version.
How can I modify the downloaded pack so that it is actually installed?
Beta Was this translation helpful? Give feedback.
All reactions