Skip to content

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

Open

Description

@roger-yu-ds

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)

Activity

  1. switowski commented on Jun 22, 2021

    @switowski
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions