You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@streampipes.apache.org by Cedric Kulbach <ku...@fzi.de> on 2023/01/24 12:53:13 UTC
Python Wrapper
Hi all,
I'm currently trying to run and refactor the python wrapper
<https://github.com/apache/streampipes/tree/dev/streampipes-wrapper-python>
.
Within the example provided in the README.md
<https://github.com/apache/streampipes/blob/dev/streampipes-wrapper-python/R
EADME.md> and some minor changes with the imports, I'm able to run the
HelloWorldProcessor and to register it in consul.
However, I still get an error from the processor in consul (see appendix),
even when changing the host to "localhost".
Does anyone know what the reason is, or would anyone like to build an MVP
for the wrapper?
Best
Cedric
AW: Python Wrapper
Posted by Cedric Kulbach <ku...@fzi.de>.
Hi Dominik,
I set the service's host to "consul" and "localhost" and in both cases the
registration fails.
However, I saw the pom.xml within the wrapper's directory, which also fails
in my case.
Is there a starting point where I could read in and reimplement a processor
in Python?
Best
Cedric
Von: Dominik Riemer <do...@bytefabrik.ai>
Gesendet: Mittwoch, 25. Januar 2023 08:24
An: dev@streampipes.apache.org
Betreff: RE: Python Wrapper
Hi Cedric,
Although I'm not fully aware of the wrapper:
It seems that the extension service's host is set to "consul" but should be
the hostname or IP of the machine where the service is started.
I think there is another env variable which you can set called
"CONSUL_LOCATION" which sets the hostname of the consul instance (this can
be localhost for local testing).
Dominik
From: Cedric Kulbach < <ma...@fzi.de> kulbach@fzi.de>
Sent: Tuesday, January 24, 2023 1:53 PM
To: <ma...@streampipes.apache.org> dev@streampipes.apache.org
Subject: Python Wrapper
Hi all,
I'm currently trying to run and refactor the python wrapper
<https://github.com/apache/streampipes/tree/dev/streampipes-wrapper-python>
.
Within the example provided in the README.md
<https://github.com/apache/streampipes/blob/dev/streampipes-wrapper-python/R
EADME.md> and some minor changes with the imports, I'm able to run the
HelloWorldProcessor and to register it in consul.
However, I still get an error from the processor in consul (see appendix),
even when changing the host to "localhost".
Does anyone know what the reason is, or would anyone like to build an MVP
for the wrapper?
Best
Cedric
RE: Python Wrapper
Posted by Dominik Riemer <do...@bytefabrik.ai>.
Hi Cedric,
Although I'm not fully aware of the wrapper:
It seems that the extension service's host is set to "consul" but should be the hostname or IP of the machine where the service is started.
I think there is another env variable which you can set called "CONSUL_LOCATION" which sets the hostname of the consul instance (this can be localhost for local testing).
Dominik
From: Cedric Kulbach <ku...@fzi.de>
Sent: Tuesday, January 24, 2023 1:53 PM
To: dev@streampipes.apache.org
Subject: Python Wrapper
Hi all,
I'm currently trying to run and refactor the python wrapper<https://github.com/apache/streampipes/tree/dev/streampipes-wrapper-python>.
Within the example provided in the README.md<https://github.com/apache/streampipes/blob/dev/streampipes-wrapper-python/README.md> and some minor changes with the imports, I'm able to run the HelloWorldProcessor and to register it in consul.
However, I still get an error from the processor in consul (see appendix), even when changing the host to "localhost".
Does anyone know what the reason is, or would anyone like to build an MVP for the wrapper?
Best
Cedric