saltstack-formulas / alcali-formula

Saltstack formula to install Alcali: a web based tool(GUI) for monitoring and administrating Saltstack Salt.
https://alcali.dev
MIT License
11 stars 20 forks source link

psycopg2 missing #16

Open Ataye opened 2 years ago

Ataye commented 2 years ago

Describe the bug Python module psycopg2 is missing when using Postgresql.

To Reproduce Steps to reproduce the behavior:

  1. Install this formula,
  2. configure .env for use with a Postgres database,
  3. Execute the manage.py command 'check',
  4. Receive "Error loading psycopg2 module: No module named 'psycopg2'"

Expected behavior Given correct database credentials in the .env file, the check command should complete successfully.

Screenshots

Desktop (please complete the following information):

Additional context Saltstack 3004, newly saltedt master.

Temporary Fix:

I entered the virtual environment as the alcali user and after activating I installed psycopg2 by issuing 'pip install psycopg2' which resolved the issue.