Running python program fails, please help!

Hi,

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:
Application:
C:\Program Files\Python37\python.exe

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

Text
“xlstoxlsx_SCFile.py”
and
“C:\EasyMorph\Centralised Data\xlstoxlsx_SCFile.py”

Can someone please help?

Thank you.
R

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:
R

Hi,

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.
R

It's the Windows account that runs the application.