Closed Shuliyey closed 7 years ago
output a non misleading message - indicating pyzmq need to be installed
the warning seems fine to me... what is misleading about it? ... and it already reccomends you install pyzmq.
It's a missing import, as described in #302 https://github.com/locustio/locust/issues/302#issuecomment-343603023
@cgoldberg , (its not misleading/confusing in nature, however) it's misleading/confusing under the circumstance when pure python rpc implementation is not working properly in distributed mode.
i propose two different expected behaviour (we can pick one, my preference is the second one)
error
instead of warning
, when pyzmq
is not installed/detectedwarning
about pyzmp
not installed/detectedI believe the module 'gevent' has no attribute 'queue'
error can be fixed by adding the below line
import gevent.queue
to this file https://github.com/locustio/locust/blob/0.8/locust/rpc/socketrpc.py#L3
i also did notice the latest master
branch seem to have already abandoned pure python rpc implementation, and switched to pyzmp
completely https://github.com/locustio/locust/tree/master/locust/rpc, it's only the 0.8
(and earlier) branch have this
also did notice the latest master branch seem to have already abandoned pure python rpc
closing
@cgoldberg the 0.8
branch still have this issue, pip install locustio
currently installs the 0.8 version by default. branch 0.8
is missing a import gevent.queue
, i've submitted a pull request https://github.com/locustio/locust/pull/681
0.8 branch still have this issue
yup... it seems the rpc code removal was merged to master after 0.8 was tagged and released.
Description of issue / feature request
Locust (0.8.1 and previous) have pure Python socket RPC implementation installed when
pyzmq
is not installed/detected, however the Python socket RPC implementation is not working in distributed modeOS/app information
Expected behavior
Either of the below two option
pip install pyzmq
for locust to work in distributed modeActual behavior
module 'gevent' has no attribute 'queue'
)Environment settings (for bug reports)
Steps to reproduce (for bug reports)
locustfile.py
run in python:latest container