Python code msgbox help

Hi,

I am trying to run this simple python script using UiPath but I am unsure the correct way to set it up. Can you help? The result should be a pop up message box saying “Hellooooo”

I kept getting this error but I don’t have any input parameter to insert…
image

I don’t know what to do with the input parameter. If you just run the py file on python.exe, it runs fine… Also, do I only use “Get Python Object” When I want to print something in the UiPath output??

Please see attachment
Main - msgbox.xaml (8.9 KB)

I cannot upload the py file but here is the syntax for msgbox.py

import easygui
def easy():
return easygui.msgbox(“Hellooooo”)
easy()

Thanks!!

For your requirement, why don’t you just use “run python script”

If you want to display in a UiPath MessageBox, you shouldn’t be returning a ‘messagebox’ instead you should return a string.

import sys
def foo():
    return "helloooooooo"

image

image

image

3 Likes

Thank you!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.