Discussion Board for collaboration on Server-Side Extensions and Advanced Analytics Integration.
hoping someone can help me here, with what is probably a newbie issue.
I'm trying to get the HelloWorld Python example up and running - https://github.com/qlik-oss/server-side-extension/blob/master/examples/python/GetStarted.md
So far I have:
Installed Python 3.6.3 x64
Followed the instructions here to install Python prerequisites - https://github.com/qlik-oss/server-side-extension/blob/master/examples/python/prerequisites.md
Downloaded .py, .json, and .config files from server-side-extension/examples/python/HelloWorld at master · qlik-oss/server-side-extension · GitHub to a subfolder on my desktop
Added SSEPlugin=HelloWorld,localhost:50052 to my settings.ini
When I attempt to run python ExtensionService_helloworld.py from my desktop subfolder I get the following error:
Traceback (most recent call last):
File "ExtensionService_helloworld.py", line 16, in <module>
import ServerSideExtension_pb2 as SSE
ModuleNotFoundError: No module named 'ServerSideExtension_pb2'
Any ideas what I could have got wrong here?
Go to Solution.
Ok, think I have figured it out.
In addition to the HelloWorld source code from here - https://github.com/qlik-oss/server-side-extension/tree/master/examples/python/HelloWorld
It looks like I need the ServerSideExtension_pb2.py file, which I managed to find here - https://github.com/tim-wright/PythonSSE/blob/master/Toy%20Example/ServerSideExtension_pb2.py
¿does it work with qlik ?, I have expression errors in the app
yes it works, no expression errors in the app I'm working with.
Are you using the Python examples here? If so, do you see any errors in the Python command window?
Hi Marccus, It appears to me "INFO - *** Running server in insecure mode on port: 50052 ***"
that's not an issue - I see exactly the same in my environment. This is because there is no certificate installed.
I'm assuming you're using Qlik Sense Desktop here. Have you added the necessary information to the settings.ini file?
Yes, I have it added to the settings.ini file. Should I just run the "python ExtensionService_helloworld.py" command and then open QlikSense?
yes, that should be sufficient. Make sure the python script is running prior to opening Qlik Sense and it *should* work correctly
Strangely, now I work, thanks for the help. Have you worked with any prediction algorithm with python?
thus far my tinkerings have been solely around the examples, so no not yet with Python. I'm a little further ahead with the R component.