Git Product home page Git Product logo

Comments (3)

reinout avatar reinout commented on July 20, 2024

It looks like you're mixing virtualenv/pip and buildout in some way. Perhaps you're installing uwsgi globally? It looks like it because of all those system directories. Especially something like "lib-tk" wouldn't ever be added by buildout.

I'm not using uwsgi but gunicorn (which is similar). My project's setup.py has a dependency on gunicorn, so buildout installs it for me. With bin/gunicorn I can therefore run the wsgi file just fine.

Would that help?

from djangorecipe.

sandroden avatar sandroden commented on July 20, 2024

Sorry for not being clear. Buildout is just doing things correctly in my opinion and bin/django shell has the path correctly set with no system paths.

The path is added by uwsgi. To see those files (added to the sys.path collected by buildout) I had to print them from within the django.wsgi file.

The way I produce it is that I create an empty virtualenv mkvirtualenv -p /usr/bin/python2 base (or equivalent for py3) and use the python interpreter in that virtualenv to run 'python boostrap.py'.

uwsgi has an option to use a virtualenv, that clearly I cannot use as my virtualenv (base2) would be almost empty, so I declare the wsgi_file as shown above. It seems as if in this case the uwsgi process is not isolated from the system python env. In particular I'm using uwsgi in the emperor-vassals configuration.

from djangorecipe.

sandroden avatar sandroden commented on July 20, 2024

I solved the issue by adding the virtualenv directive. More explanation in the same issue opened in the buildout as reported above. Thanks for the attention.

from djangorecipe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.