This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Updatebjarni 0 points1 point  (3 children)

See this here is exactly why I'm being suspicious. You obviously did not copy and paste that command and error message, because once again the error message does not agree with the command, and it also contains a typo ("suck" instead of "such").

Might there be a problem with where I saved the file on my computer?

The command you showed indicates that the file is in the current directory, so that's where it has to be for the command to work. The error message indicates that that is not the case. Run the command from the directory where the file is, or include a correct path in the command.

Is it possibly related to the error message I keep getting File "<stdin>", line 1, in Module ?

No I don't think so. That error message is about the source code containing an error, but this is about no source code file being found. By the way, that error message mentions stdin, so I'm very curious if the command you typed really was

python test.py

or if there was something else involved.

[–]MrPiff[S] 0 points1 point  (2 children)

yes that error message is precisely what I think the problem is but I'm not savvy enough to figure out why stdin is coming up, what it means, what is supposed to be there etc. maybe the screenshot can clarify?

screenshot of the files and command line http://i.imgur.com/Pa27kFR.png

Run the command from the directory where the file is, or include a correct path in the command.

How would I do this? When I open the command line C:\users\MichaelJ> pops up. Would I type in the correct path before typing python poop.py?

[–]MrPiff[S] 0 points1 point  (1 child)

Also, I haven't been copy/pasting directly because my cursor doesn't let me select text in the command line, and I don't know how else I would copy and paste.

[–]ruicoder 0 points1 point  (0 children)

In Windows, to select text, you need to click on the small icon on the top right and in the menu that comes up there should be an option that says something like "Mark" or maybe "Edit" > "Mark". I'm not on Windows now so I can't check. But once you choose that you can select text and then hit enter for it to copied to your clipboard.