Answer the question
In order to leave comments, you need to log in
Uwsgi + Python3 settings?
Can't set up uwsgi to work with Python3.4 . C Python2.7 works, but it fails to specify python3.4. I would be grateful for help.
uwsgi:
#mysite_uwsgi.ini file
[uwsgi]
# Django-related settings
# the base directory (full path)
chdir = /data/mysite/project
# Django's wsgi file
wsgi-file = /data/mysite/project/mysite/wsgi.py
# the virtualenv (full path)
home = /data/mysite/venv/pt3
# master
master = True
plugins-dir = /usr/lib/uwsgi/plugins
plugins = python34
# maximum number of worker processes
processes = 5
# the socket
socket = /tmp/mysite.sock
# ... with appropriate permissions - may be needed
chmod-socket = 666
# clear environment on exit
vacuum = true
# account to start process
uid = root
gid = root
# Output messages to log
daemonize=/var/log/uwsgi/mysite.log
!!! UNABLE to load uWSGI plugin: ./python34_plugin.so: undefined symbol: spool_request !!!
chdir() to /data/mysite/project
your processes number limit is 29855
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /tmp/mysite.sock fd 3
Python version: 2.7.6 (default, Jun 22 2015, 18:03:54) [GCC 4.8.2]
Set PythonHome to /data/mysite/venv/pt3
ImportError: No module named site
Answer the question
In order to leave comments, you need to log in
plugins = python3 ...... go to /usr/lib/uwsgi/plugins and see what plugins are like python3_plugin.so python_plugin.so /// i.e. python3 and python ... if not needed install == =>> sudo apt install uwsgi-plugin-python3 sudo apt install uwsgi-plugin-python
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question