Uwsgi: statsd plugin unavailable in 2.0.8 after installing from pip

Created on 11 Nov 2014  路  4Comments  路  Source: unbit/uwsgi

ubuntu 14.10, python3.4, uwsgi in virtualenv using pip install uwsgi

uwsgi --plugin-list 2>&1| grep stats
stats_pusher_socket

stats_pusher_statsd seems to be missing.
strings venv/bin/uwsgi | grep statsd

nothing here

How can I get it?

Most helpful comment

@Fiedzia this still doesn't work for me in the latest uwsgi

All 4 comments

UWSGI_EMBED_PLUGINS=stats_pusher_statsd pip install uwsgi

afair stats_pusher_statsd has never been part of the default build profile

Thanks, now it works.

@Fiedzia this still doesn't work for me in the latest uwsgi

This could be caused by a cached uwsgi wheel without the plugin built in (since the pip caching algorithm doesn't know about the arbitrary envvar).

Try with UWSGI_EMBED_PLUGINS=stats_pusher_statsd pip install --no-cache-dir uwsgi, maybe, or --no-use-wheel?


I just confirmed that the uwsgi wheel for a given version will get cached with whatever features happen to be compiled-in upon the first installation-and-wheel-caching.

For instance, if you've installed uWSGI 9.999 with the UWSGI_EMBED_PLUGINS=stats_pusher_on_the_street_corner flags, subsequent installations of the same version, with or without any envvar flags, will naturally use the same cached wheel even if the options differ. Using --no-cache-dir will naturally counter this, though obviously you won't be able to enjoy the benefits of the cached wheel or source tarball. Using --no-use-wheel (or its more modern analogue --no-binary uwsgi) will help too, but being less drastic.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vlcinsky picture vlcinsky  路  3Comments

bhaskarsai picture bhaskarsai  路  4Comments

ercwyne picture ercwyne  路  4Comments

GaretJax picture GaretJax  路  7Comments

diwu1989 picture diwu1989  路  7Comments