Hi,
I’ve been trying to run the “deepstream test4” example with AMQP for some time, both in C ++ and in Python I get the same error. I am using Pika to create the “Consumer” service.
I have already seen other queries in this forum with a similar error, but the solution is not clear for me, I have the feeling that it may be in my pika server file, but when I run the Pika base example, sending and receiving works perfectly.
(All the above deepstream examples (1,2,3) work perfectly for me)
$ sudo service rabbitmq-server status
…
rabbitmq-server.service - RabbitMQ Messaging Server
Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vendor
Active: active (running)
…
cfg_amqp.txt
[message-broker]
password = guest
#optional
hostname = localhost
username = guest
port = 5672
exchange = amq.topic
topic = topicname
receive.py
#!/usr/bin/env python
import pika
credentials = pika.PlainCredentials('guest', 'guest')
connection = pika.BlockingConnection( pika.ConnectionParameters('localhost', 5672, '/', credentials) )
channel = connection.channel()
channel.queue_declare(queue='hello')
channel.exchange_declare(exchange='topic_logs', exchange_type='topic')
def callback(ch, method, properties, body):
print(" [x] Received %r" % body)
channel.basic_consume(queue='hello', on_message_callback=callback, auto_ack=True)
print(' [*] Waiting for messages. To exit press CTRL+C')
channel.start_consuming()
run command
python3 deepstream_test_4.py -i /opt/nvidia/deepstream/deepstream-4.0/samples/streams/sample_720p.h264 -p /opt/nvidia/deepstream/deepstream-4.0/lib/libnvds_amqp_proto.so --cfg-file cfg_amqp.txt -s 1
./deepstream-test4-app -i /opt/nvidia/deepstream/deepstream-4.0/samples/streams/sample_720p.h264 -p /opt/nvidia/deepstream/deepstream-4.0/lib/libnvds_amqp_proto.so --conn-str="localhost;5672;guest" --cfg-file cfg_amqp.txt -s 0
I already checked that the file “/opt/nvidia/deepstream/deepstream-4.0/lib/libnvds_amqp_proto.so” exists
And I already tried changing the log level but I don’t have any other useful information.
$ export GST_DEBUG=4
Error (Py): deepstream_test_4.py
Creating Pipeline
Creating Source
Creating H264Parser
Creating Decoder
Creating EGLSink
Playing file /opt/nvidia/deepstream/deepstream-4.0/samples/streams/sample_720p.h264
Adding elements to Pipeline
Linking elements in the Pipeline
Starting pipeline
deepstream_test_4.py:484: Warning: g_strrstr: assertion 'haystack != NULL' failed
pipeline.set_state(Gst.State.PLAYING)
Error: gst-library-error-quark: Could not initialize supporting library. (3): gstnvmsgbroker.c(303): gst_nvmsgbroker_start (): /GstPipeline:pipeline0/GstNvMsgBroker:nvmsg-broker:
Error (C++): deepstream-test4-app
(deepstream-test4-app:10943): GLib-CRITICAL **: 16:41:24.017: g_strchug: assertion 'string != NULL' failed
(deepstream-test4-app:10943): GLib-CRITICAL **: 16:41:24.017: g_strchomp: assertion 'string != NULL' failed
Now playing: /opt/nvidia/deepstream/deepstream-4.0/samples/streams/sample_720p.h264
Running...
ERROR from element nvmsg-broker: Could not initialize supporting library.
Error details: gstnvmsgbroker.c(303): gst_nvmsgbroker_start (): /GstPipeline:dstest4-pipeline/GstNvMsgBroker:nvmsg-broker:
unable to open shared library
Returned, stopping playback
Deleting pipeline
Versions:
deepstream-app version 4.0.2
DeepStreamSDK 4.0.2
TensorRT 6.0.1-1+cuda10.2
Nvidia GTX 1070 (laptop)
CPU i7-7820HK @ 2.90GHz × 8
Ubuntu 18.04
Could someone help me please?