7π
β
I finally figured out what my problem was. In my uwsgi.ini file I had
limit-as = 128
This switch limits the address space of uwsgi process to 128mb. I guess that was not enough for PostgreSQL driver. After removing the switch everything works like a charm.
Although itβs better to find a value that works instead of just removing the value altogether.
π€gregor2004ua
1π
Root exception is this:
django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: libgpg-error.so.0: failed to map segment from shared object: Cannot allocate memory
From what I found, it may be a 32/64-bit issue. For example, see this page:
You might want to use the file
tool and check the architectures of your libs (specifically _psycopg.so
and libgpg-error.so.0
). Also compare with python -c "import platform; print platform.architecture()"
π€Freek Wiekmeijer
- [Django]-Django β Exception Value: Unexpected end of expression in if tag
- [Django]-Filter JSON field django with greater than, less than and a range using _contains
Source:stackexchange.com