joostvangils / BPMN_RPA

Robotic Process Automation in Windows and Linux by using Diagrams.net BPMN diagrams.
GNU General Public License v3.0
40 stars 8 forks source link

Can not execute BPMN_RPA_Starter.py Hello_world.xml in cmd #11

Closed YNG2020 closed 9 months ago

YNG2020 commented 1 year ago

I tried to execute BPMN_RPA_Starter.py Hello_world.xml in cmd, but it shows: [main 2023-11-13T07:44:34.979Z] update#setState idle [main 2023-11-13T07:45:04.989Z] update#setState checking for updates [main 2023-11-13T07:45:05.180Z] update#setState idle and just stuck there. Does anyone meet a problem like this? Thanks in advanced.

YNG2020 commented 1 year ago

@YNG2020 > I tried to execute BPMN_RPA_Starter.py Hello_world.xml in cmd, but it shows: [main 2023-11-13T07:44:34.979Z] update#setState idle [main 2023-11-13T07:45:04.989Z] update#setState checking for updates [main 2023-11-13T07:45:05.180Z] update#setState idle and just stuck there. Does anyone meet a problem like this? Thanks in advanced.

I managed to overcome this problem by running the BPMN_RPA_Starter.py in PyCharm directly after I modifying the source code in BPMN_RPA_Starter.py and WorkflowEngine.py.

# In BPMN_RPA_Starter.py
from BPMN_RPA.WorkflowEngine import WorkflowEngine
pad = "Hello_world.xml"
flow = pad
input_parameter = None
engine = WorkflowEngine(input_parameter=input_parameter)
doc = engine.open(filepath=flow)
steps = engine.get_flow(doc)
engine.run_flow(steps)
# In WorkflowEngine.py Line338
# return None
return "D:/Python39/venv/data_competition/Scripts/python.exe" # my python interpreter location