Python Forum
Trying to us python.exe from our network to run scripts
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to us python.exe from our network to run scripts
#1
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.
Reply
#2
How are you running this?

My guess is you need to provide a path to the .py file.
Reply
#3
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.
Reply
#4
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?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to output Python in Spout or any other video sharing network? buzzdarkyear 4 2,170 Jan-11-2022, 11:37 AM
Last Post: buzzdarkyear
  Running python scripts from github etc pacmyc 7 3,732 Mar-03-2021, 10:26 PM
Last Post: pacmyc
  Reading SQL scripts from excel file and run it using python saravanatn 2 2,585 Aug-23-2020, 04:49 PM
Last Post: saravanatn
  No Scripts File present after python installation ag2207 5 4,927 Jul-30-2020, 11:11 AM
Last Post: buran
  How to merge my two python scripts in one ? HK2432 0 2,163 Jan-31-2020, 10:16 PM
Last Post: HK2432
  How can I Open and close .py file from python scripts SayHiii 9 5,766 Dec-17-2019, 06:10 AM
Last Post: Malt
  autostart python scripts in background (Windows10) john36 4 7,729 Oct-01-2019, 01:36 PM
Last Post: john36
  Run macros of excel sheet from python scripts shubhamjainj 3 10,504 May-01-2019, 08:40 AM
Last Post: buran
  Possible to run Python scripts from oracle? dglass 8 9,428 Sep-06-2018, 05:14 PM
Last Post: dglass
  Keyboard Maestro has problem importing python scripts bobsmith76 3 4,519 Aug-29-2018, 08:10 PM
Last Post: bobsmith76

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020