python - Error Virtual environment Loading psycopg2 module when deploying using apache wsgi module -
i deploying django using apache wsgi module , stuck @ following improperlyconfigured error:
improperlyconfigured: error loading psycopg2 module: /home/uadmin/django/apache2/htdocs/virtualenv/lib/python2.7/site-packages/psycopg2-2.6.1-py2.7-linux-x86_64.egg/psycopg2/_psycopg.so: undefined symbol: pyunicodeucs4_asutf8string
django manage.py shell says:
>>> import django >>> django.version (1, 8, 1, 'final', 0) >>> import django.db.backends.postgresql_psycopg2 >>>
settings.py has:
databases = { 'default': { 'name': 'db', 'engine': 'django.db.backends.postgresql_psycopg2', 'user': '<user>', 'password': '<pass>' }, 'anotherdatabase': { 'host':'<ip>', 'name': '<db_name>', 'engine': 'django.db.backends.mysql', 'user': '<user>', 'password': '<pass>' } }
not getting why django throwing exception while deploying through wsgi, searched through git hub https://github.com/yyuu/pyenv/issues/425 , found known issue tried fix seems not working.
Comments
Post a Comment