@frilix
Иногда "творю"

Настройкса Uwsgi + Python3?

Не могу настроить uwsgi для работы с Python3.4 . C Python2.7 работает, но вот указать python3.4 не удается. Буду признателен за помощь.

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 !!!


Логи uwsgi:
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
  • Вопрос задан
  • 6607 просмотров
Решения вопроса 1
@oooKoStenKooo
plugins = python3 ...... зайди в /usr/lib/uwsgi/plugins и посмотри какие плагины есть по типу python3_plugin.so python_plugin.so /// т.е python3 и python ... если нет нужного установить ===>> sudo apt install uwsgi-plugin-python3 sudo apt install uwsgi-plugin-python
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы
01 мая 2024, в 02:11
5000 руб./за проект
01 мая 2024, в 00:29
2000 руб./за проект
01 мая 2024, в 00:20
15000 руб./за проект