You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inside the tests directory of the git repo, checked out to the tip of the uwsgi-1.9.18 branch.
But it fails because there is no send_message function in the uwsgi module:
*** Starting uWSGI 1.9.18.3 (64bit) on [Fri Oct 25 16:40:23 2013] ***
compiled with version: 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79) on 25 October 2013 16:25:00
os: Darwin-13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64
nodename: toodee.local
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 8
current working directory: /Users/gthb/extsvn/uwsgi/tests
detected binary path: /Users/gthb/pyenv/DJANGO15/bin/uwsgi
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 709
your memory page size is 4096 bytes
detected max file descriptor number: 256
lock engine: OSX spinlocks
thunder lock: disabled (you can enable it with --thunder-lock)
Python version: 2.7.5 (default, Oct 24 2013, 03:39:03) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)]
*** Python threads support is disabled. You can enable it with --enable-threads ***
Python main interpreter initialized at 0x7fa040500380
your mercy for graceful operations on workers is 60 seconds
*** Operational MODE: no-workers ***
['uwsgi', '127.0.0.1:3157', '15']
Traceback (most recent call last):
File "./myadmin.py", line 9, in <module>
chunks = uwsgi.send_message(sys.argv[1], 10, int(sys.argv[2]), '')
AttributeError: 'module' object has no attribute 'send_message'
unable to load app 0 (mountpoint='') (callable not found or import error)
no-server mode requested. Goodbye.```
There used to beset_option in the python module which, albeit complicated, could have had a light idea of setting some options outside of the config file. Now this function is gone. Is it for the same reason as above ?
I'm asking because I want to increase the number of locks on uWSGI. However, I think it would be a good idea to keep it to a minimum (please correct me if I'm wrong). So, in my python app I define which "kind" of locks I want, I assign an id to each, and then I use them. But the number of locks has to be correctly configured with uWSGI, and it could fall out of sync with the defined locks.
I was thinking of doing something like: uwsgi.set_option(locks=len(LockTypes)). Any advice?
Based on http://uwsgi-docs.readthedocs.org/en/latest/ManagementFlag.html I just tried to do this:
inside the
tests
directory of the git repo, checked out to the tip of theuwsgi-1.9.18
branch.But it fails because there is no
send_message
function in theuwsgi
module:But there should be, according to http://uwsgi-docs.readthedocs.org/en/latest/PythonModule.html
In
uwsgi.h
there is this declaration:... which is then not implemented anywhere.
I added a print statement to dump out
sorted(dir(uwsgi))
module:The text was updated successfully, but these errors were encountered: