Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: Failed to make element sink of type kvssink #10

Open
leagerl1 opened this issue Apr 5, 2022 · 3 comments
Open

Exception: Failed to make element sink of type kvssink #10

leagerl1 opened this issue Apr 5, 2022 · 3 comments

Comments

@leagerl1
Copy link

leagerl1 commented Apr 5, 2022

Hello,

Installing and attempting to use aws-streamer we encounter the error Exception: Failed to make element sink of type kvssink. I think this has to do with the fact that either kvssink or the bindings aren't installed due leaving off the cmake arguments to enable it but i noticed when installing with

RUN pip3 install -v git+https://github.com/awslabs/aws-streamer.git --install-option "build_ext" --install-option "--cmake-args=-DBUILD_KVS=ON"

as per the instructions we get the error

 error: option --cmake-args not recognized

Any suggestions as to what might be wrong here?

@bpawlik
Copy link
Contributor

bpawlik commented Jun 7, 2022

Hi,

I see that some of the behaviour of pip has changed (become obsolete). I've checked the following combination works well:

git clone https://github.com/awslabs/aws-streamer.git
cd aws-streamer
python3 setup.py install
python3 setup.py build_ext --cmake-args=-DBUILD_KVS=ON

Bartek

@gyansai82
Copy link

hi ,
i am also facing same issue .
i have built the lib using above steps
LOG -

INFO:awstreamer.gst_pipeline.stream_client:GST_PLUGIN_PATH: examples/opencv/awstreamer/gst_pipeline/../gst_plugins:/usr/lib/gstreamer-1.0/
INFO:awstreamer.gst_pipeline.stream_client:Gstreamer version: 1.16.3.0
INFO:awstreamer.gst_pipeline.stream_client:LIB_GSTREAMER_PATH: /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0
INFO:awstreamer.gst_pipeline.stream_client:{'callback': None,
 'debug': True,
 'enabled': True,
 'env': None,
 'id': 'test_display',
 'info': None,
 'pipeline': 'cv',
 'process': <function process at 0x7f3871f621f0>,
 'sink': {'display': True,
          'pipeline': {'pipeline': 'appsrc',
                       'sink': {'name': 'kvssink',
                                'stream-name': 'awslabsStream'},
                       'source': {'fps': 30,
                                  'height': 320,
                                  'img_format': 'GRAY8',
                                  'width': 320}}},
 'source': {'display': False, 'name': 0},
 'timeout': None}
INFO:awstreamer.gst_pipeline.pipeline_factory:PipelineFactory: creating a pipeline from path: .cv_pipeline.OpenCvPipeline
INFO:awstreamer.gst_pipeline.pipeline_factory:python_version: 3.8.10
INFO:awstreamer.gst_pipeline.cv_pipeline:Initializing OpenCvPipeline...
INFO:awstreamer.gst_pipeline.stream_pipeline:Initializing OpenCvPipeline for test_display..
INFO:awstreamer.gst_pipeline.stream_graph:Initializing StreamGraph...
INFO:awstreamer.gst_pipeline.cv_pipeline:Building OpenCvPipeline...
INFO:awstreamer.gst_pipeline.cv_pipeline:Configuring OpenCvPipeline...
INFO:awstreamer.gst_pipeline.stream_pipeline:Auto-configuring OpenCvPipeline...
INFO:awstreamer.gst_pipeline.stream_pipeline:Compiling OpenCvPipeline...
INFO:awstreamer.gst_pipeline.stream_graph:
INFO:awstreamer.gst_pipeline.stream_pipeline:gst-launch-1.0 
INFO:awstreamer.gst_pipeline.stream_client:GST_PLUGIN_PATH: examples/opencv/awstreamer/gst_pipeline/../gst_plugins:/usr/lib/gstreamer-1.0/
INFO:awstreamer.gst_pipeline.stream_client:{'callback': None,
 'debug': True,
 'enabled': True,
 'env': None,
 'id': 'default_0',
 'info': None,
 'pipeline': 'appsrc',
 'sink': {'name': 'kvssink', 'stream-name': 'awslabsStream'},
 'source': {'fps': 30, 'height': 320, 'img_format': 'GRAY8', 'width': 320},
 'timeout': None}
INFO:awstreamer.gst_pipeline.pipeline_factory:PipelineFactory: creating a pipeline from path: .appsrc_pipeline.AppSrcPipeline
INFO:awstreamer.gst_pipeline.pipeline_factory:python_version: 3.8.10
INFO:awstreamer.gst_pipeline.appsrc_pipeline:Initializing AppSrcPipeline...
INFO:awstreamer.gst_pipeline.stream_pipeline:Initializing AppSrcPipeline for default_0..
INFO:awstreamer.gst_pipeline.stream_graph:Initializing StreamGraph...
INFO:awstreamer.gst_pipeline.appsrc_pipeline:Building AppSrcPipeline...
ERROR:awstreamer.gst_pipeline.stream_graph:Failed to make element sink of type kvssink
ERROR:awstreamer.gst_pipeline.stream_client:Failed to run StreamPipeline: Exception('Failed to make element sink of type kvssink')
ERROR:awstreamer.gst_pipeline.stream_client:Failed to start pipeline(s): Exception('Failed to make element sink of type kvssink')
All done.

@bpawlik
Copy link
Contributor

bpawlik commented Nov 30, 2022

It's the build issue, not run-time. kvssink failed to compile on your system. Please look for error messages in the build log and make sure you have all the prerequisites installed.

You can also attempt to build the kvssink plug-in manually following these steps: https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants