[Kwiver-users] Receiving error to run example descriptor.pipe - KWIVER
Ankit Parag Shah
aps1 at andrew.cmu.edu
Mon Jan 8 00:03:35 EST 2018
Hi David,
Indeed, the error is now in the next step - and the python
pythread_per_process is being picked up.
However, current error is as follows -
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File
"/home/ankit/KWIVER-Software-Scripts/kwiver/build/release/lib/python2.7/dist-packages/sprokit/schedulers/pythread_per_process_scheduler.py",
line 115, in _run_process
proc.step()
File
"/home/ankit/KWIVER-Software-Scripts/kwiver/build/release/lib/python2.7/dist-packages/kwiver/processes/ApplyDescriptor.py",
line 107, in _step
in_img_c = self.grab_input_using_trait('image')
File
"/home/ankit/KWIVER-Software-Scripts/kwiver/build/release/lib/python2.7/dist-packages/kwiver/kwiver_process.py",
line 308, in grab_input_using_trait
data = tt.converter_in(pipeline_datum.get_datum_ptr())
TypeError: Unable to convert function return value to a Python type! The
signature was
(self: sprokit.pipeline.datum.Datum) -> _object
Segmentation fault (core dumped)
Looking forward to having the new branch checked in to have a successful
working pipeline examples.
Kind Regards,
Ankit Shah
Masters Student in Language Technologies
Carnegie Mellon University.
On Sun, Jan 7, 2018 at 11:41 PM, David Hughes <david.hughes at kitware.com>
wrote:
> First of all, a warning on Python related matters--historically, we didn't
> have much support for python in kwiver. There's a fresh pull request up now
> with a bunch of fixes and new bindings, but it's not in master yet. So this
> req
>
> The reason that you're getting that error is because the two C++
> schedulers won't work with python. The python GIL has its own rules and
> assumptions for threading, and schedulers designed for C++ aren't
> necessarily going to abide by them, which is why they throw that exception.
> The solution is to use the included python scheduler: pythread_per_process.
> To use it, run the pipeline with the following command:
>
> pipeline_runner -p descriptor.pipe *-S pythread_per_process*
>
> Keep in mind that until the new branch is in, there's no guarantee that
> that'll work on master, just that it'll get you past your current error.
>
> On Sun, Jan 7, 2018 at 8:22 AM, Ankit Parag Shah <aps1 at andrew.cmu.edu>
> wrote:
>
>> Hi all,
>>
>> In order to check installation of KWIVER software suite and understanding
>> its capabilities, I am trying to run the following example -
>> descriptor.pipe.
>>
>> While running the example an exception is caught with the following
>> message
>>
>> Exception caught: The pipeline cannot be run: The process 'descriptor' of
>> type 'ApplyDescriptor' is a python process and that type of process is not
>> supported by this scheduler.
>>
>> Further, I am trying to understand the purpose of the example
>> descriptor.pipe - if there is a reference to what the example is supposed
>> to perform would help clarify my current level of understanding of the
>> topic.
>>
>> Kindly provide further information to understand the above error and how
>> to resolve the problem.
>> KWIVER is installed with python support.
>>
>> Kind Regards,
>> Ankit Shah
>> Masters Student in Language Technologies
>> Carnegie Mellon University.
>>
>> _______________________________________________
>> Kwiver-users mailing list
>> Kwiver-users at public.kitware.com
>> https://public.kitware.com/mailman/listinfo/kwiver-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/kwiver-users/attachments/20180108/18783bf0/attachment.html>
More information about the Kwiver-users
mailing list