Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

221
Vistas
Django & gunicorn gives error: ImportError No module named 'vp.wsgi'

When I try to check the status of gunicorn I get the following error:

 gunicorn.service - gunicorn daemon
   Loaded: loaded (/etc/systemd/system/gunicorn.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2017-04-22 19:23:39 UTC; 10min ago
 Main PID: 7295 (code=exited, status=3)

Apr 22 19:23:39 vp-first gunicorn[7295]:     return util.import_app(self.app_uri)
Apr 22 19:23:39 vp-first gunicorn[7295]:   File "/home/tony/vp/vpenv/lib/python3.5/site-packages/guni
Apr 22 19:23:39 vp-first gunicorn[7295]:     __import__(module)
Apr 22 19:23:39 vp-first gunicorn[7295]: ImportError: No module named 'vp.wsgi'
Apr 22 19:23:39 vp-first gunicorn[7295]: [2017-04-22 19:23:39 +0000] [7300] [INFO] Worker exiting (pi
Apr 22 19:23:39 vp-first gunicorn[7295]: [2017-04-22 19:23:39 +0000] [7295] [INFO] Shutting down: Mas
Apr 22 19:23:39 vp-first gunicorn[7295]: [2017-04-22 19:23:39 +0000] [7295] [INFO] Reason: Worker fai
Apr 22 19:23:39 vp-first systemd[1]: gunicorn.service: Main process exited, code=exited, status=3/NOT
Apr 22 19:23:39 vp-first systemd[1]: gunicorn.service: Unit entered failed state.
Apr 22 19:23:39 vp-first systemd[1]: gunicorn.service: Failed with result 'exit-code'.

It says ImportError: No module named 'vp.wsgi'

When I edit my gunicorn configuration file the following is in there:

[Unit]
Description=gunicorn daemon
After=network.target

[Service]
User=tony
Group=www-data
WorkingDirectory=/home/tony/vp/vp
ExecStart=/home/tony/vp/vpenv/bin/gunicorn --workers 3 --bind unix:/home/tony/vp/vp/vp.sock vp.wsgi:$

[Install]
WantedBy=multi-user.target

I have to note that my wsgi.py file is located:

~/vp/vp/vp/vp/wsgi.py

My virtualenv is located at:

~/vp/vpenv

My settings are located at:

~/vp/vp/vp/config/settings/production.py

I suppose there is something wrong with my path but I have tried a lot of things and they do not work. Any suggestions?

Thank you in advance!

P.s. I can't find any .sock file

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda