Skip to content

Commit

Permalink
fix: add zmq version check
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Apr 17, 2024
1 parent a9bccc5 commit a29cdfa
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion installation/routines/setup_jukebox_core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a29cdfa

Please sign in to comment.