uWSGI Fails with No module named encoding Error

后端 未结 9 1771
花落未央
花落未央 2021-01-17 07:58

I am trying to setup uWSGI with Pyramid, but I am getting this error, when attempting uwsgi --ini-paste development.ini

Python version: 3.2.3

相关标签:
9条回答
  • 2021-01-17 08:25

    Check that

    virtualenv = /root/path/to/virtualenv
    

    points to the right path. I solved my error by fixing this mistyped path.

    0 讨论(0)
  • 2021-01-17 08:32

    Run uwsgi command (with your options) just like the following line:

    /<path-to-your-virtualenv-bin>/uwsgi --http :8008 --module project.wsgi --venv /<path-to-your-virtualenv> --chdir /<path-to-your-project>

    You will find the issues.

    Did you miss your module param?

    0 讨论(0)
  • 2021-01-17 08:36

    Building upon Edward's answer, I instead reinstalled uWSGI with pip3.6 instead of pip3, Python 3.4.8 being the default Python 3 on the server:

    $ python3 --version
    Python 3.4.8
    
    0 讨论(0)
提交回复
热议问题