mod-wsgi

Problems installing Python 3 with --enable-shared

爱⌒轻易说出口 提交于 2020-01-01 03:31:08
问题 Problem I'm trying to install Python 3 with the --enable-shared option. Installation "succeeds" but the resulting Python is not runnable. Trying to run Python after installation gives the following error: $ /opt/python3/bin/python3.5 /opt/python3/bin/python3.5: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory Background The OS is Debian (squeeze), and has a previous installation of Python 2.6, which is necessary to retain

NameError: name 'hasattr' is not defined - Python3.6, Django1.11, Ubuntu16-17, Apache2.4, mod_wsgi

断了今生、忘了曾经 提交于 2019-12-30 09:00:08
问题 I've set up my Python/Django virtual environment, and mod_wsgi in daemon mode, and am pretty sure (done this before) it's " mostly correct " except I get the following error... [Thu Jul 06 00:35:26.986363 2017] [mpm_event:notice] [pid 11442:tid 140557758930432] AH00493: SIGUSR1 received. Doing graceful restart Exception ignored in: <object repr() failed> Traceback (most recent call last): File "/home/jamin/www/dev.tir.com/py361ve/lib/python3.6/site-packages/PIL/Image.py", line 572, in __del__

NameError: name 'hasattr' is not defined - Python3.6, Django1.11, Ubuntu16-17, Apache2.4, mod_wsgi

一个人想着一个人 提交于 2019-12-30 09:00:05
问题 I've set up my Python/Django virtual environment, and mod_wsgi in daemon mode, and am pretty sure (done this before) it's " mostly correct " except I get the following error... [Thu Jul 06 00:35:26.986363 2017] [mpm_event:notice] [pid 11442:tid 140557758930432] AH00493: SIGUSR1 received. Doing graceful restart Exception ignored in: <object repr() failed> Traceback (most recent call last): File "/home/jamin/www/dev.tir.com/py361ve/lib/python3.6/site-packages/PIL/Image.py", line 572, in __del__

Python: Can't connect to HTTPS URL because the SSL module is not available

北城以北 提交于 2019-12-28 13:59:22
问题 I'm trying to connect to Stripe to setup payments. I have it working on my dev machine, but when I push to prod, I get the following SSL error: Can't connect to HTTPS URL because the SSL module is not available. Here are the details of my setup: Ubuntu 16.04 Apache 2 mod_wsgi Python 3.6 Django 1.11 Python/django processes are all installed and running in an anaconda (miniconda) virtual environment called "protectyourreviews" I've read multiple other SO answers that suggest reinstalling python

Getting Flask to use Python3 (Apache/mod_wsgi)

邮差的信 提交于 2019-12-28 05:35:15
问题 I've got a basic "hello world" Flask app running. I'm on Ubuntu 14.04, using Apache 2.4. I've installed mod_wsgi. I've created a ~/web/piFlask/venv/ to hold a virtualenv-created Python2 with flask installed. However, I wish to have my flaskapp import a Python3.x module I have written. What do I need to do to make this happen? I tried creating a ~/web/piFlask/venv3/ and modifying ~/web/piFlask/piFlask.wsgi : import os, sys PROJECT_DIR = '/home/pi/web/piFlask' activate_this = os.path.join

Django stops working with RuntimeError: populate() isn't reentrant

梦想与她 提交于 2019-12-27 11:07:07
问题 I've been developing a Django web application deployed on an Apache server with WSGI, and everything has been going smoothly. Today, I made some minor changes to my app's admin.py in an attempt to customize the build-in Django Admin interface, and initially made a syntax error (an unclosed parenthesis). This meant that when I touched wsgi.py and loaded the code (I have WSGI running in daemon mode on my virtual host), my website was replaced with an Internal Server Error because WSGI stopped

Apache + WSGI: Address already in use: make_sock: could not bind to address

久未见 提交于 2019-12-25 18:42:50
问题 I get the following message when I try to start Apache2: * Restarting web server apache2 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:2080 no listening sockets available, shutting down Unable to open logs Action 'start' failed. The Apache error log may have more information. uwsgi is listening on that port: sudo netstat -ltnp | grep ':2080' tcp 0 0 0.0.0.0:2080 0.0.0.0:* LISTEN 884/uwsgi Before that I installed wsgi manually sudo apt-get install libapache2-mod-wsgi

Apache + WSGI: Address already in use: make_sock: could not bind to address

江枫思渺然 提交于 2019-12-25 18:42:17
问题 I get the following message when I try to start Apache2: * Restarting web server apache2 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:2080 no listening sockets available, shutting down Unable to open logs Action 'start' failed. The Apache error log may have more information. uwsgi is listening on that port: sudo netstat -ltnp | grep ':2080' tcp 0 0 0.0.0.0:2080 0.0.0.0:* LISTEN 884/uwsgi Before that I installed wsgi manually sudo apt-get install libapache2-mod-wsgi

wsgi_mod installation in windows 10

十年热恋 提交于 2019-12-25 11:53:29
问题 I want to install WSGI for python web application on windows-10. But when I run pip install mod_wsgi command i get error. error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.exe' failed with exit status 1120 Anybody can resolve this problem? 回答1: Current understanding is that 32 bit builds are broken. That or you are mixing 32 bit and 64 bit versions of Python, Apache or the Windows compilers. They must be all 32 bit or all 64 bit. 来源: https://stackoverflow.com

Python - RuntimeError: populate() isn't reentrant

拟墨画扇 提交于 2019-12-25 11:14:20
问题 I've graphite server and intermittently its daemon fails with this error, HTTP CRITICAL: HTTP/1.1 500 Internal Server Error - string 'datapoints' not found on 'http://192.168.12.15:8000/render/?target=sys.example_com.snmp.if_octets-Gi0_0_0.rx&format=json&from=-5min' - 723 bytes in 0.002 second response time |time=0.002067s;;;0.000000 size=723B;;;0 So I restarted apache which fixed the issue. But I would like to fix the root cause of this issue, I can't restart apache every time. I want to fix