Running python program fails, please help!


I am trying to run a python script but it keeps failing with the message:

“External program failed with exit code 1”

I have no other information available to work on or resolve this issue.

The EM process runs just fine on my desktop but not on the server.

The python code is a simple converter - to convert .xls files in a target folder to .xlsx format.

I was wondering if it could be due to one of the libraries I am using not there on the server, but it’s hard to say what the issue is with just ‘Failed due to exit code 1’ message.

Fixes I have tried so far:

Run Program:
C:\Program Files\Python37\python.exe

Working directory (optional)
C:\EasyMorph\Centralised Data

“C:\EasyMorph\Centralised Data\”

Can someone please help?

Thank you.

Tick the “Capture output” checkbox to see the actual error.

See example here:

1 Like

Hi @dgudkov,

Thank you for that. I’ll give that a shot.

Cheers :slight_smile:


Ok so first of all, I am sorry for creating another topic. I was able to find a similar error which was discussed here previously:

That’s the same issue I am facing.

I see the solution recommended is to add the full path to python exe like so:

C:\Users\user x\AppData\Local\Programs\Python\Python36\python.exe"

Which ‘user’ would that be?

Thank you.

It’s the Windows account that runs the application.