Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
marcus_malinow
Partner - Specialist III
Partner - Specialist III

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 (2)
1 Solution

Accepted Solutions
marcus_malinow
Partner - Specialist III
Partner - Specialist III
Author

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

View solution in original post

14 Replies
marcus_malinow
Partner - Specialist III
Partner - Specialist III
Author

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

Anonymous
Not applicable

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

marcus_malinow
Partner - Specialist III
Partner - Specialist III
Author

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

Anonymous
Not applicable

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

marcus_malinow
Partner - Specialist III
Partner - Specialist III
Author

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

Anonymous
Not applicable

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
Partner - Specialist III
Partner - Specialist III
Author

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

Anonymous
Not applicable

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

marcus_malinow
Partner - Specialist III
Partner - Specialist III
Author

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