Qlik Community

Qlik Server Side Extensions Discussions

Discussion Board for collaboration on Server-Side Extensions and Advanced Analytics Integration.

marcus_malinow
Valued Contributor II

Qlik Sense SSE Python error - ModuleNotFoundError: No module named 'ServerSideExtension_pb2'

Hi,

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:

>python ExtensionService_helloworld.py

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?

Thanks,

Marcus

Labels (1)
1 Solution

Accepted Solutions
marcus_malinow
Valued Contributor II

Re: Qlik Sense SSE Python error - ModuleNotFoundError: No module named 'ServerSideExtension_pb2'

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

Marcus

9 Replies
marcus_malinow
Valued Contributor II

Re: Qlik Sense SSE Python error - ModuleNotFoundError: No module named 'ServerSideExtension_pb2'

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

Marcus

camilabustamen
New Contributor

Re: Qlik Sense SSE Python error - ModuleNotFoundError: No module named 'ServerSideExtension_pb2'

¿does it work with qlik ?, I have expression errors in the app

marcus_malinow
Valued Contributor II

Re: Qlik Sense SSE Python error - ModuleNotFoundError: No module named 'ServerSideExtension_pb2'

Hi Camila,

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?

Marcus

camilabustamen
New Contributor

Re: Qlik Sense SSE Python error - ModuleNotFoundError: No module named 'ServerSideExtension_pb2'

Hi Marccus, It appears to me "INFO - *** Running server in insecure mode on port: 50052 ***"

marcus_malinow
Valued Contributor II

Re: Qlik Sense SSE Python error - ModuleNotFoundError: No module named 'ServerSideExtension_pb2'

Hi Camila,

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?

[Settings 7]

SSEPlugin=HelloWorld,localhost:50052

Marcus

camilabustamen
New Contributor

Re: Qlik Sense SSE Python error - ModuleNotFoundError: No module named 'ServerSideExtension_pb2'

Yes, I have it added to the settings.ini file. Should I just run the "python ExtensionService_helloworld.py" command and then open QlikSense?

marcus_malinow
Valued Contributor II

Re: Qlik Sense SSE Python error - ModuleNotFoundError: No module named 'ServerSideExtension_pb2'

Hi Camila,

yes, that should be sufficient. Make sure the python script is running prior to opening Qlik Sense and it *should* work correctly

Marcus

camilabustamen
New Contributor

Re: Qlik Sense SSE Python error - ModuleNotFoundError: No module named 'ServerSideExtension_pb2'

Strangely, now I work, thanks for the help. Have you worked with any prediction algorithm with python?

Highlighted
marcus_malinow
Valued Contributor II

Re: Qlik Sense SSE Python error - ModuleNotFoundError: No module named 'ServerSideExtension_pb2'

Hi Camila,

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.

Marcus

Community Browser