Welcome, Guest
Username: Password: Remember me

TOPIC: Scheduled Task does NOT Execute Python code

Scheduled Task does Execute Python code 6 months 3 weeks ago #19285

  • DeanCovey
  • DeanCovey's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 214
  • Karma: 1
  • Thank you received: 12
I have a package that works perfectly when I run from the design tab. However, when I go to schedule the task with windows task scheduler, then every thing seems to execute except my python scripts. The scripts are updating the Trello API.


Attachments:

Please Log in or Create an account to join the conversation.

Scheduled Task does Execute Python code 6 months 3 weeks ago #19286

  • admin
  • admin's Avatar
  • Offline
  • Moderator
  • Moderator
  • Deeds not Words
  • Posts: 7717
  • Karma: 33
  • Thank you received: 441
Most likely the software is unable to find python libraries.
Have you installed python for all users?
Mike

Please Log in or Create an account to join the conversation.

Scheduled Task does Execute Python code 2 months 6 days ago #19553

  • DeanCovey
  • DeanCovey's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 214
  • Karma: 1
  • Thank you received: 12
Haven't had a chance back to this. No, it's not all for users. Do I need to reinstall it?

Please Log in or Create an account to join the conversation.

Scheduled Task does Execute Python code 2 months 6 days ago #19554

  • admin
  • admin's Avatar
  • Offline
  • Moderator
  • Moderator
  • Deeds not Words
  • Posts: 7717
  • Karma: 33
  • Thank you received: 441
Yes uninstall it and install it again for all users. Also remember that 32 bit version uses 32 version of python same for 64 bit.
Mike

Please Log in or Create an account to join the conversation.

Scheduled Task does Execute Python code 2 months 6 days ago #19556

  • DeanCovey
  • DeanCovey's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 214
  • Karma: 1
  • Thank you received: 12
I always run into trouble. I am running 64-bit Advanced ETL and Python 3.7 (64-Bit). Thoughts?

Attachments:

Please Log in or Create an account to join the conversation.

Scheduled Task does Execute Python code 2 months 6 days ago #19558

  • admin
  • admin's Avatar
  • Offline
  • Moderator
  • Moderator
  • Deeds not Words
  • Posts: 7717
  • Karma: 33
  • Thank you received: 441
You may have multiple pythons installed without even knowing about it

This script will print version info. Try running it from the scheduler

import etltools;
import sys;
etltools.WriteToLog(sys.version);
Result.Value = 1;
Mike

Please Log in or Create an account to join the conversation.

We have 199 guests and no members online