3

I have this script that works fine when executed manually. Problem is that when I Windows Task Scheduler It seems to hang somewhere.

The task is executed by a service account with privileges to run as a batch job, and has full control over the Anaconda3 folder.

import pandas as pd
print("Hello")

I tried to execute this to show some log on what's happening at it seems like the problem is when importing pandas.

python -m trace --trace script.py > logfile.log

Greatly appreciate any resolution on this.

mtryingtocode
  • 939
  • 3
  • 13
  • 26
  • Can you check the task history and add the error details to the question? – ClumsyPuffin Nov 29 '17 at 03:52
  • There is no error details as I have to end the task and kill the python.exe manually through Task Manager. It just gets stuck there. With the trace option the logfile just bloats and bloats until I stop the task. – mtryingtocode Nov 29 '17 at 04:44
  • I went through the logs today and I see that there seems to be repeated calls to tempfile.py and random.py until I just kill the process as it never ends. I'm not sure which part of the pandas module also calls it – mtryingtocode Nov 30 '17 at 09:01
  • 1
    I had the same problem, even though pandas as a library was installed properly and the script runs fine when manually run from the command line – REdim.Learning Dec 04 '18 at 09:53

0 Answers0