modern-python-projects-course icon indicating copy to clipboard operation
modern-python-projects-course copied to clipboard

'M' is not recognized as an internal or external command

Open roger-yu-ds opened this issue 4 years ago • 1 comments

When I run the poetry run make html in modern-python-projects-course\ch11-cli\uptimer:

'M' is not recognized as an internal or external command,
operable program or batch file.
make: [html] Error 1 (ignored)

roger-yu-ds avatar Jun 21 '21 21:06 roger-yu-ds

Hmm, it's the first time I see this message and google doesn't return any meaningful results. My guess would be that you have a typo somewhere in one of the files used by Sphinx or there is some problem with the file-endings encoding.

I just cloned the repository, tried running this command and it worked:

# Create a new virtual environment (you can use venv module or any other tool)
$ vf new testmpp
Creating testmpp via ~/.local/pipx/venvs/virtualfish/bin/python …

(testmpp)$ pip install poetry
...

(testmpp)$ poetry install
Installing dependencies from lock file

No dependencies to install or update

Installing the current project: uptimer (0.1.0)

(testmpp)$ poetry run make html
Running Sphinx v3.3.1
making output directory... done
WARNING: html_static_path entry '_static' does not exist
building [mo]: targets for 0 po files that are out of date
...
build succeeded, 1 warning.

The HTML pages are in build/html.

Can you confirm that those steps work for you? Otherwise, if you could push your version of the code somewhere, I can take a look, but for now I have no way to replicate this issue.

switowski avatar Jun 22 '21 07:06 switowski