-
Notifications
You must be signed in to change notification settings - Fork 17
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
Error when creating EvenHub services with python sdk #32
Comments
It looks like it is missing the following line in /predix/admin/app.py import predix.admin.eventhub But in this case I get the following error: Traceback (most recent call last): |
Sorry you ran into that. Maybe something went wrong in the release @ThisWillGoWell? |
Found error, working on solution and testing |
fixed in #33 |
I use the code from '#33' as python SDK.With it, I am able to create the EventHub service: This the code used (shared by William)import predix.admin.app logging.basicConfig(level=logging.INFO) app = predix.admin.app.Manifest(app_name='aqua-monkey') app.create_client('client', '7169', uaa=uaa) However I am not able to upload events to the EvenHub microserviceThis is the code usedimport time predix_app = predix.app.Manifest() eh = predix_app.get_eventhub( count = 0 ## The result in the console is the following:_WARNING:root:Writing manifest manifest.yml unencrypted. 0 **It looks like there is a problem when connect to the Evenhub Service.After It looks like nothing is uploaded. When try to read from such Service no response is get.**I use python 2.7Is there any issue, or there is something i am not using in a correct way?Any help would be appreciated** this is the manifiest**applications:
|
_Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.UNKNOWN, Could |
Hi:The uaa scope seems to be correct:"scope": "timeseries.zones.b3b38032-185a-4696-a99c-86efeabf46f5.query predix-event-hub.zones.320029a9-1388-4bce-b731-459dd3fd9d89.wss.publish uaa.resource timeseries.zones.b3b38032-185a-4696-a99c-86efeabf46f5.ingest predix-event-hub.zones.320029a9-1388-4bce-b731-459dd3fd9d89.grpc.subscribe predix-event-hub.zones.320029a9-1388-4bce-b731-459dd3fd9d89.grpc.publish predix-event-hub.zones.320029a9-1388-4bce-b731-459dd3fd9d89.topic.grpc.publish predix-event-hub.zones.320029a9-1388-4bce-b731-459dd3fd9d89.topic.user predix-event-hub.zones.320029a9-1388-4bce-b731-459dd3fd9d89.topic.grpc.subscribe timeseries.zones.b3b38032-185a-4696-a99c-86efeabf46f5.user uaa.none predix-event-hub.zones.320029a9-1388-4bce-b731-459dd3fd9d89.topic.wss.publish predix-event-hub.zones.320029a9-1388-4bce-b731-459dd3fd9d89.user", I found that the error:_Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.UNKNOWN, Could It is shown when I define "https_proxy" and "http_proxy" in the eviroment variables in windows.Does the eventhub service allow the use of a proxy? If yes, what is the correct way to define it?Anyway. even if I do not go through a proxy I am not able to upload variables:The ACK returns [].Best regardsI attache the manifestapplications:
|
I tried to create EventHub services using python SDK. This is the code:
import predix.admin.app
admin = predix.admin.app.Manifest()
admin.create_eventhub(publish=True, subscribe=True)
However I have the following error:
hon init_eventhub.py WARNING:root:Writing manifest manifest.yml unencrypted. Traceback (most recent call last): File "init_eventhub.py", line 5, in admin.create_eventhub(publish=True, subscribe=True) File "C:\Python27\lib\site-packages\predix\admin\app.py", line 214, in create eventhub eventhub = predix.admin.eventhub.EventHub(**kwargs) AttributeError: 'module' object has no attribute 'eventhub'
The text was updated successfully, but these errors were encountered: