Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

psycopg2 error #34

Closed
capriciousduck opened this issue Jan 7, 2022 · 8 comments
Closed

psycopg2 error #34

capriciousduck opened this issue Jan 7, 2022 · 8 comments

Comments

@capriciousduck
Copy link
Contributor

Getting No module found psycopg2 error when using PostgreSQL database.

@Eugeny
Copy link
Owner

Eugeny commented Jan 7, 2022

Not related to a terminal.

@Eugeny Eugeny closed this as completed Jan 7, 2022
@capriciousduck
Copy link
Contributor Author

Perhaps, I didn't mention my issue correctly. Here is the actual error.

File "/venv/tabby-web-9TtSrW0h-py3.7/lib/python3.7/site-packages/django/db/backends/postgresql/base.py", line 29, raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named 'psycopg2'

@Eugeny
Copy link
Owner

Eugeny commented Jan 7, 2022

Oh sorry! The docker image ships with the MySQL connector by default, you can rebuild it with EXTRA_DEPS=psycopg2 to include psycopg2

@capriciousduck
Copy link
Contributor Author

Oh. Okay. And regarding database size, would 1GB of storage be enough for PostgreSQL? I'm a noob when it comes to DB's.

@Eugeny
Copy link
Owner

Eugeny commented Jan 7, 2022

Yes, definitely, it just needs to store your accounts and config files.

@capriciousduck
Copy link
Contributor Author

Thanks!!

@capriciousduck
Copy link
Contributor Author

Hi @Eugeny

In alpine pyscopg2 is not available via pip, not until postgresql-dev is installed. So, I googled a bit and found out that psycopg2-binary works.

Just letting you know...

@Eugeny
Copy link
Owner

Eugeny commented Jan 7, 2022

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants