Date: 2016-03-02 07:39 am (UTC)
ataashihunter: (0)
Hi. This is a fairly common error (at least for me). You get it because the file you tell python to run isn't in the folder you are in.
To solve this first check that the file you want to run is in the same folder you are in. You can either do this in the UI or the commandline. For commandline type dir and press enter. You will then get a list of contents of the folder you are in.

Here I have done it on my computer and you can see I have two files, the python file and the output.

The other option is that there is a typo between what you named the file and what you try to run. The second part of the above picture shows that where I try to run "python bargescraper.py" when my file is named without the extra r. The solution here is to type the filename exactly as you named the file.
There is a neat trick to avoid typos like this too. Type python and a space and then the first letter (or first few) of what you named your file and then press tab. Commandline should then autofill the rest of the file name. If you have several files that start with the same letter it will pick the first alphabetaically but you can press tab several times until you have the one you want.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

ataashihunter: (Default)
ataashihunter

2025

S M T W T F S

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 26th, 2025 06:23 am
Powered by Dreamwidth Studios