Hi! I have a python script that fetches a file from google drive using the API. When I run it from the console, it works OK, but when executing it from an automated task (using the interpreter from the virtual env - /home/pfisnqn/.virtualenvs/venv/bin/python /home/pfisnqn/webprofe/extract.py) it doesn't go as planned and I can't make the links from the task logs...
[24;1H[?1049l [?1l>[?1049h[1;24r(B[m[4l[?7h[?1h=[39;49m[39;49m[37m[40m[H[2J[37m[40m[J(B[m[39;49m[37m[40m[37m[40m[J[39;49m(B[m[22d[93m[44mGetting https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=[K[39;49m(B[m [93m[44mLooking up proxy.server:3128[K[39;49m(B[m [93m[44mMaking HTTP connection to proxy.server:3128[39;49m(B[m [93m[44mSending HTTP request.[K[39;49m(B[m [93m[44mHTTP request sent; waiting for response.[39;49m(B[m [93m[44mVerified connection to accounts.google.com (cert=accounts.google.com)[39;49m(B[m [93m[44mCertificate issued by: /C=US/O=Google Trust Services/CN=GTS CA 1O1[K[39;49m(B[m [93m[44mSecure 128-bit TLS1.2 (ECDHE_ECDSA_AES_128_GCM_SHA256) HTTP connection[39;49m(B[m[3G[93m[44mnding HTTP request.[K[39;49m(B[m [93m[44mHTTP request sent; waiting for response.[39;49m(B[m[5G[93m[44m/1.0 302 Moved Temporarily[K[39;49m(B[m [93m[44maccounts.google.com cookie: __Ho=1:T-OXvDXZG9GnBw16- Allow? (Y/N/Always/neVer)[39;49m(B[m[?1049h[1;24r(B[m[4l[?7h[?1h=[39;49m[39;49m[37m[40m[H[2J[37m[40m[J(B[m[39;49m[37m[40m[37m[40m[J[39;49m(B[m[22d[93m[44mGetting https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=[K[39;49m(B[m [93m[44mLooking up proxy.server:3128[K[39;49m(B[m [93m[44mMaking HTTP connection to proxy.server:3128[39;49m(B[m [93m[44mSending HTTP request.[K[39;49m(B[m/bin/bash: line 1: 1236589 Killed python /bin/run_scheduled_task.py '/home/pfisnqn/.virtualenvs/venv/bin/python /home/pfisnqn/webprofe/extract.py'
[93m[44mHTTP request sent; waiting for response.[39;49m(B[m
[93m[44mVerified connection to accounts.google.com (cert=accounts.google.com)[39;49m(B[m
[93m[44mCertificate issued by: /C=US/O=Google Trust Services/CN=GTS CA 1O1[K[39;49m(B[m
[93m[44mSecure 128-bit TLS1.2 (ECDHE_ECDSA_AES_128_GCM_SHA256) HTTP connection[39;49m(B[m[3G[93m[44mnding HTTP request.[K[39;49m(B[m
[93m[44mHTTP request sent; waiting for response.[39;49m(B[m[5G[93m[44m/1.0 302 Moved Temporarily[K[39;49m(B[m
[93m[44maccounts.google.com cookie: __Ho=1:hbmrMKdSzLAum2gQM Allow? (Y/N/Always/neVer)[39;49m(B[m
2020-10-14 15:08:10 -- Completed task, took 10445.11 seconds, return code was 137.
I'd appreciate any help in making this work as if I ran it manually from the console... Cheers