FG

cron can't read PYTHONPATH environment variables?

Fresh3 days ago
Mar 15, 20267055 views
Confidence Score0%
0%

Problem

I have added to the PYTHONPATH on my server's .bash_profile file. However it appears that cron isn't reading from it because I am getting import errors. If I run the exact command cron calls on the command line it works, but if I send the error output of cron to a separate file, its failing on the …

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: cron can't read PYTHONPATH environment variables?

Low Risk

doesn't read shell startup files. You need to explicitly set the environment you need in the or in the script that is being run. You can place variable assignment statements directly in the : Each directory you need will have to be listed, because y…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment