WebFaction
Community site: login faq

I have an nginx/uwsgi installation running web2py, and the setup seems to use python 2.6 by default. Is there a way to modify my settings so that python 2.7 is used instead? Thank you.

asked 29 May '13, 12:24

will_ca
111
accept rate: 0%


The version of python is set when you build/install uwsgi.

Since there are many ways to build/install uwsgi you will have to trace your steps and find where python entered the picture. If you used pip to install it, than the version of python that the pip binary uses is the one, if it was easy_install the same thing. If you installed it from a source tarball using commands check the steps used and their official docs including the ones provided with the tarball for where you set up python and change the version there.

permanent link

answered 29 May '13, 18:36

johns
5.3k312
accept rate: 23%

Thanks, johns. I installed nginx, web2py, and uwsgi using the script at the bottom of this page: http://community.webfaction.com/questions/7193/install-web2py-with-nginx-and-uwsgi. The only modification I made was to use the most recent uwsgi installation. uwsgi.xml's pythonpath just points to my web2py directory. Any ideas? Thanks.

(29 May '13, 20:47) will_ca

Seem to have fixed it. Instead of simply making uwsgi with "make -f Makefile" (as in the script), I used "python2.7 uwsgiconfig.py --build" as per the suggestion here: http://stackoverflow.com/questions/13537373/swtich-python-version-on-uwsgi. Thanks!

permanent link

answered 29 May '13, 21:12

will_ca
111
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×337
×186
×24
×17

question asked: 29 May '13, 12:24

question was seen: 3,791 times

last updated: 29 May '13, 21:12

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM