Python Forum

Full Version: Trying to us python.exe from our network to run scripts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So now that i have finished a script, it works great on my local machine, but need to be able to run the script using the python.exe that they have placed on the network and they will schedule it to run on a schedule.

I found one reference to something like this :

"I:\programs\python\python.exe" "DashboardValues.py"

But when i run this in a command line or from a batch file, it opens a command prompt, but then closes and never updates/generates the csv file its suppose to.

If i execute from my local python instance, it works as expected.

I need to find a way to execute my script via the network share path of python.exe

Any suggestions? And no creating a exe of the script will not work, they are saying this has worked in the past but cant seem to find the proper way to call it.
How are you running this?

My guess is you need to provide a path to the .py file.
I have tried the above, but i think i found the problem, my script is using pandas and the only thing on the network share is python, so its not throwing any errors, but isnt generating any output files.

So im going to have to ask them for a dedicated pc/server that can have python and the libraries installed to run the scripts.
How are you running this? (I repeat).

I don't understand why you wouldn't get an error (ModuleNotFound) if your script fails to import pandas. Try running from the command line to verify that this is really the issue. If it is, you can rewrite your script to not use pandas. Is this that ping thing?