exercism / support

Please use https://github.com/exercism/exercism for opening support issues.
3 stars 3 forks source link

Cannot submit Hello_world.py from the correct directory #95

Open beembali opened 4 years ago

beembali commented 4 years ago

Hi, I am having trouble trying to submit the hello_world .py file from the correct directory in command prompt. I have tried redownloading the Hello World file several times now but still the correct directory to execute the comment returns the message 'The file you are trying to submit cannot be found.' appears in the command prompt.

NobbZ commented 4 years ago

Hi @beembali, I'm sorry you are having trouble.

Can you please tell us from which directory you are trying to run the submit command, what exact command you try to run, its exact output and the output of ls -la/dir in the folder you are trying to submit from.

github-actions[bot] commented 4 years ago

This repository is restricted to Exercism's core team. Please open issues in exercism/exercism/issues.

beembali commented 4 years ago

Hi @NobbZ . I have attached a photo of the exact output I get when I try to submit and what directory I try to run the submit comand. I run it on command prompt. I'm not sure what ls -la/dir means?

Pic1 Pic2

NobbZ commented 4 years ago

You need to use cd to navigate into the exercises folder first or use a relative path from your current location (Exercism\python\hello-world\hello_world.py) or use a path relative to the drive root (\Users\user1\Exercism\python\hello-world\hello_world.py) or an absolute path (C:\Users\user1\Exercism\python\hello-world\hello_world.py).

PS: Please also try avoid using screenshots, unless you really need to communicate something that isn't bare text. Prefer copy pasted text within fenced code blocks:

```py
from foo import Bar
just text without highlighting

Will produce:

```py
from foo import Bar
just text without highlighting
beembali commented 4 years ago

Hi @NobbZ , I have managed to now get to the correct directory however when I try to submit the hello world file the following message appears:

" 'exercism' is not recognized as an internal or external command, operable program or batch file."

also when i cd hello_world.py the following message appears: "The directory name is invalid"

NobbZ commented 4 years ago

Hmm… Have you copied the exercism.exe to your users home folder? That would explain why it was available there, but no where else.

Also hello_world.py is a file, not a folder, so you can not cd into it.