Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • It looks like uwsgi sets PythonPath when it runs, presumably for its own bundled version of Python. I don't use uwsgi so I don't know for sure, but there should be either a) a setting to change that or b) manually replace their Python 2 executable with a symlink to your Python 3 executable. Commented Jan 11, 2016 at 17:35
  • 2
    When setting DEFAULT_VERSIONS=python=3.4 in make.conf what exactly did you do? Did you rebuild the port? Commented Jan 12, 2016 at 10:26
  • This ^^ ... it should help set a compile-time option; something akin to 'CFLAGS="-I/usr/local/include/python3.4" make PYTHON=python3.4 asyncio' ... if the port hasn't been rebuilt, that's the first thing to try. make.conf should take over and set the flags for you. Commented Jan 13, 2016 at 17:49
  • @Raphael You're right, I forgot to rebuilt the port after changing make.conf. Foolishly, but I'm new in UNIX. Add you comment to answers and I'll commit it. Commented Jan 14, 2016 at 10:55
  • @DiA I added my answer so it is easier to spot. Commented Jan 15, 2016 at 16:56