Linked Questions
15 questions linked to/from When to use sys.path.append and when modifying %PYTHONPATH% is enough
512
votes
33
answers
1.1m
views
How can I clear the interpreter console?
Like most Python developers, I typically keep a console window open with the Python interpreter running to test commands, dir() stuff, help() stuff, etc.
Like any console, after a while the visible ...
22
votes
4
answers
27k
views
Installing pythonstartup file
How do I install the pythonstartup file so that it runs on command like python myfile.py?
I tried to install it into my /home/myuser directory for Ubuntu, but it said that I had insufficient ...
0
votes
2
answers
5k
views
Cannot schedule a python script to run through Windows Task Scheduler
I have set up my windows task scheduler to create a task to run a python script that will send out an email to a few people (including myself).
I added the location the location of my Python in the ...
0
votes
1
answer
5k
views
Python script not running in task scheduler
So I have a python script that is copying a bunch of files between folders. This script runs exactly as intended until I try to use the task scheduler to get it to run at regular intervals. I have run ...
1
vote
1
answer
2k
views
I scheduled a Python script in Windows Scheduler but the script doesn't work as it should
I have a simple Python script that runs correctly when I launch it in Jupyter Notebook or after I convert it to .exe, but doesn't work when I launch it via Windows Scheduler (I tried to launch both ...
2
votes
2
answers
2k
views
Python script can't find file when using Windows Task Scheduler
I have a batch file to execute Python and run a Python script that works fine when run manually. But when run using Windows Task Scheduler, the Python Script gives me a traceback because it can't find ...
1
vote
2
answers
985
views
How to schedule a script to run at a specified time only on weekdays on Windows 10?
I have tried to run a Python script via the Windows 10 task scheduler but the script will not run:
I have double-checked the path to python and to the script. What could be the problem with the task ...
1
vote
0
answers
1k
views
os.getenv() always returning None
I am trying to work on a bot using Twitter API, in order to hide my credentials I decided to put the four of them in environmental variables and use os module with the method os.getenv() to get them ...
0
votes
0
answers
616
views
Python Library to Convert Docx to PDF That Works With Task Scheduler
I am having trouble with converting docx to pdf. I was using 'from win32com import client' which works correctly when I run the program, but now that I have it being run with a windows task scheduler ...
1
vote
1
answer
487
views
Windows Task Scheduler and Python - code is good when run manually but issue when scheduled
So I have a script that uses the ArcPy module to create a series of PNGs. In particular I have an image that gets exported with a transparent background. The script runs great when I manually run it ...
-1
votes
2
answers
236
views
How to run python file in cmd?
I installed the Python 3.4 in C drive.
And add Environment variable as C:\Python34.
I save a python program in C>users>python>first.py.
I open cmd and enter command like this
C:\users\python>...
0
votes
2
answers
171
views
How can I add project directory to PYTHONPATH
Contents of my project is like this
C:/{user_name}/my_project/
│ bar.sh
├─scripts/
│ │ bar.sh
│ │
│ └─bar/
│ bar.sh
│
└─src/
foo.py
and
Content of all of bar.sh is
python src/foo.py
so ...
0
votes
1
answer
137
views
tempfile.NamedTemporaryFile crashing in Task Scheduler
I have a Python script that downloads a txt file from an SFTP site, changes the headers, writes a new text file then converts that to CSV. This script runs perfectly in IDLE. I'm trying to set this up ...
0
votes
0
answers
77
views
py2exe executing error
I have a dir structure .
location of dir is "d:\sources\dir"
/dir
__init__.py
commonlibs/
__init__.py
lib1.py
lib2.py
project1/
...
0
votes
0
answers
44
views
Windows Task Schedule will not run .py file
I have received a ton of errors trying to run my py script via task scheduler. This is on my personal computer and all files are on local drives. The last error I get is The System cannot find the ...