diff --git a/installation/routines/setup_jukebox_core.sh b/installation/routines/setup_jukebox_core.sh index 4d51f06d2..404d3e03a 100644 --- a/installation/routines/setup_jukebox_core.sh +++ b/installation/routines/setup_jukebox_core.sh @@ -120,10 +120,18 @@ _jukebox_core_check() { local pip_modules=$(get_args_from_file "${INSTALLATION_PATH}/requirements.txt") verify_pip_modules $pip_modules + log " Verify ZMQ version '${JUKEBOX_ZMQ_VERSION}'" + local zmq_version=$(python -c 'import zmq; print(f"{zmq.zmq_version()}")') + if [[ "${zmq_version}" != "${JUKEBOX_ZMQ_VERSION}" ]]; then + exit_on_error "ERROR: ZMQ version '${zmq_version}' differs from expected '${JUKEBOX_ZMQ_VERSION}'!" + else + log " CHECK" + fi + log " Verify ZMQ has 'DRAFT-API' activated" local zmq_hasDraftApi=$(python -c 'import zmq; print(f"{zmq.DRAFT_API}")') if [[ "${zmq_hasDraftApi}" != "True" ]]; then - exit_on_error "ERROR: ZMQ has 'DRAFT-API' not activated!" + exit_on_error "ERROR: ZMQ has 'DRAFT-API' state '${zmq_hasDraftApi}' differs from expected 'True'!" else log " CHECK" fi