Search code examples
python-2.7pythonanywhere

PythonAnywhere How to Enable Threads


I am always getting this:

you can enable thread by --enable-thread ...

Can anyone tell how to exactly do this? Thanks.

2016-07-23 15:06:01 lock engine: pthread robust mutexes
2016-07-23 15:06:01 thunder lock: disabled (you can enable it with --thunder-lock)
2016-07-23 15:06:01 uwsgi socket 0 bound to UNIX address /var/sockets/hassanalvi.pythonanywhere.com/socket fd 7
2016-07-23 15:06:01 Python version: 2.7.6 (default, Jun 22 2015, 18:01:27)  [GCC 4.8.2]
2016-07-23 15:06:01 *** Python threads support is disabled. You can enable it with --enable-threads ***
2016-07-23 15:06:01 Python main interpreter initialized at 0x146b720

*** Python threads support is disabled. You can enable it with --enable-threads ***

Solution

  • Unfortunately python anywhere doesn't support thread is a web server, check out this article. However, there is a fix if you just want to run a task.