Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Run Python Script From QlikView

Hi Everyone,

I was trying to run Python script from QlikView Button. I followed this forum

QlikView and Python Integration

However, when I modify MachineInfo to do other things the code does not work. Even simple commands like calling a function or modifying a text file.

I am trying to execute a complex Python script with new input from QlickView. I used TextBoxEx to get the input and it sends it to the Python code successfully BUT the code fails when I do any function call.

Capture.JPG

Any suggestion how can I run Python script that accepts input from QlikView???

Thank you

1 Solution

Accepted Solutions
Not applicable
Author

Finally, I managed to make this work. Now I can change a file on my hard drive using QlikView Module.

I will add the details to make it useful if anyone is interested.

First I will add the screenshots of the code (QlikView and Python)

python screen shot.JPG

Click on the image for better resolution

module screen shot.JPG

Click "Check"

Click "Test"

Check the error "Highlighted in Yellow below"

error screen shot.JPG

The Error is not readable. So I had to click on the error area then select all and paste it in Notepad.

In my case, QlikView module didn't recognise the relative path for the file so I had to add the full path.

Cheers

View solution in original post

2 Replies
Not applicable
Author

Finally, I managed to make this work. Now I can change a file on my hard drive using QlikView Module.

I will add the details to make it useful if anyone is interested.

First I will add the screenshots of the code (QlikView and Python)

python screen shot.JPG

Click on the image for better resolution

module screen shot.JPG

Click "Check"

Click "Test"

Check the error "Highlighted in Yellow below"

error screen shot.JPG

The Error is not readable. So I had to click on the error area then select all and paste it in Notepad.

In my case, QlikView module didn't recognise the relative path for the file so I had to add the full path.

Cheers

Anonymous
Not applicable
Author

hi - Ahmad ,

what version of python, windows  and Qlikview are you running?

I followed the same forum as you, however when I click the button from Qlikview it just says Running Macro forever

and nothing happens.

My version details

Qlikview 12.10

Windows 7

Python 3.6.4

(I was able to register the class and was also able to call the macro from VB - works fine).