# Hi, I'm a beginner to python. as I'm running my program it works perfectly but I can see a message in problem saying that missing module docstring pylint(missing-module-docstring). can someone help me to fix this bug

**URL:** <https://forum.codewithmosh.com/t/hi-im-a-beginner-to-python-as-im-running-my-program-it-works-perfectly-but-i-can-see-a-message-in-problem-saying-that-missing-module-docstring-pylint-missing-module-docstring-can-someone-help-me-to-fix-this-bug/8278>\
**Category:** Python\
**Created:** [November 2, 2021, 8:34am UTC](https://forum.codewithmosh.com/t/hi-im-a-beginner-to-python-as-im-running-my-program-it-works-perfectly-but-i-can-see-a-message-in-problem-saying-that-missing-module-docstring-pylint-missing-module-docstring-can-someone-help-me-to-fix-this-bug/8278 "2021-11-02T08:34:58Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![meenachennu](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@meenachennu](https://forum.codewithmosh.com/u/meenachennu)\
**Post date:** [November 2, 2021, 8:34am UTC](https://forum.codewithmosh.com/t/hi-im-a-beginner-to-python-as-im-running-my-program-it-works-perfectly-but-i-can-see-a-message-in-problem-saying-that-missing-module-docstring-pylint-missing-module-docstring-can-someone-help-me-to-fix-this-bug/8278/1 "2021-11-02T08:34:58Z")

</div>

![Screenshot 2021-11-02 at 2.00.37 PM](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/d/dd09b5a8f845dff1e7af793612709cca8107e7e0.png)

---

<div class="post-metadata">

**Author:** ![Meski1488](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Meski1488](https://forum.codewithmosh.com/u/Meski1488)\
**Post date:** [November 2, 2021, 9:03am UTC](https://forum.codewithmosh.com/t/hi-im-a-beginner-to-python-as-im-running-my-program-it-works-perfectly-but-i-can-see-a-message-in-problem-saying-that-missing-module-docstring-pylint-missing-module-docstring-can-someone-help-me-to-fix-this-bug/8278/2 "2021-11-02T09:03:30Z")

</div>

Hi!  
Actually its not a big deal. Docstrings are just for documentation (in Your example - for documenting the content of a module or file). You can just add docstring on top of the file:

> “”" This file is for blah blah blah “”"

or simply turn of this messages in VSCode. To do so - find settings.json and add:

> `"python.linting.pylintArgs": ["--disable=C0111"]`,

---

<div class="post-metadata">

**Author:** ![meenachennu](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@meenachennu](https://forum.codewithmosh.com/u/meenachennu)\
**Post date:** [November 7, 2021, 5:37am UTC](https://forum.codewithmosh.com/t/hi-im-a-beginner-to-python-as-im-running-my-program-it-works-perfectly-but-i-can-see-a-message-in-problem-saying-that-missing-module-docstring-pylint-missing-module-docstring-can-someone-help-me-to-fix-this-bug/8278/3 "2021-11-07T05:37:02Z")

</div>

thank you so much for the help.

---

<div class="post-metadata">

**Author:** ![ariel.robaldo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/ariel.robaldo/32/2307_2.png) [@ariel.robaldo](https://forum.codewithmosh.com/u/ariel.robaldo)\
**Post date:** [November 10, 2021, 4:22pm UTC](https://forum.codewithmosh.com/t/hi-im-a-beginner-to-python-as-im-running-my-program-it-works-perfectly-but-i-can-see-a-message-in-problem-saying-that-missing-module-docstring-pylint-missing-module-docstring-can-someone-help-me-to-fix-this-bug/8278/4 "2021-11-10T16:22:36Z")

</div>

Hi,  
I’ve stumbled on that before, these two links may help you:

> **[PEP 8 -- Style Guide for Python Code](https://www.python.org/dev/peps/pep-0008/)**
>
> The official home of the Python Programming Language

and

> **[PEP 257 -- Docstring Conventions](https://www.python.org/dev/peps/pep-0257/)**
>
> The official home of the Python Programming Language

both describe expected style of your code, and VSCode checks if you compy that through the chosen “linter”, in your case the linter is “Pylint”  
Hope this helps.  
cheers  
AR

---

<div class="post-metadata">

**Author:** ![sanchumstiddlywinks](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@sanchumstiddlywinks](https://forum.codewithmosh.com/u/sanchumstiddlywinks)\
**Post date:** [March 20, 2022, 5:14pm UTC](https://forum.codewithmosh.com/t/hi-im-a-beginner-to-python-as-im-running-my-program-it-works-perfectly-but-i-can-see-a-message-in-problem-saying-that-missing-module-docstring-pylint-missing-module-docstring-can-someone-help-me-to-fix-this-bug/8278/5 "2022-03-20T17:14:22Z")

</div>

i’m having this same problem

---

<div class="post-metadata">

**Author:** ![snyking](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@snyking](https://forum.codewithmosh.com/u/snyking)\
**Post date:** [April 10, 2022, 12:25pm UTC](https://forum.codewithmosh.com/t/hi-im-a-beginner-to-python-as-im-running-my-program-it-works-perfectly-but-i-can-see-a-message-in-problem-saying-that-missing-module-docstring-pylint-missing-module-docstring-can-someone-help-me-to-fix-this-bug/8278/6 "2022-04-10T12:25:02Z")

</div>

I am a beginner too. I spent a lot of hours figuring this out. Follow my instruction below.

1. You need to open Command Pallette in order to access setting.json  
View → Command Palette → Open Setting(JSON)

2. You can copy and paste the code: `"python.linting.pylintArgs": ["--disable=C0111"]` ,

3. clos the tab. It will ask you to save. Save.

4. Go back to the code file you were working on with the error message. You need to save the file to see the change of disabled code.

---

<div class="post-metadata">

**Author:** ![egi](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@egi](https://forum.codewithmosh.com/u/egi)\
**Post date:** [August 21, 2022, 8:44am UTC](https://forum.codewithmosh.com/t/hi-im-a-beginner-to-python-as-im-running-my-program-it-works-perfectly-but-i-can-see-a-message-in-problem-saying-that-missing-module-docstring-pylint-missing-module-docstring-can-someone-help-me-to-fix-this-bug/8278/7 "2022-08-21T08:44:07Z")

</div>

put this at the beginning of all your files to remove common annoying warnings:

```auto
# pylint: disable=missing-module-docstring
# pylint: disable=missing-class-docstring
# pylint: disable=missing-function-docstring
# pylint: disable=invalid-name
# pylint: disable=trailing-newlines
# pylint: disable=trailing-whitespace
# pylint: disable=missing-final-newline

```

Egi

---

<div class="post-metadata">

**Author:** ![jmrunkle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/jmrunkle/32/3765_2.png) [@jmrunkle](https://forum.codewithmosh.com/u/jmrunkle)\
**Post date:** [August 21, 2022, 3:28pm UTC](https://forum.codewithmosh.com/t/hi-im-a-beginner-to-python-as-im-running-my-program-it-works-perfectly-but-i-can-see-a-message-in-problem-saying-that-missing-module-docstring-pylint-missing-module-docstring-can-someone-help-me-to-fix-this-bug/8278/8 "2022-08-21T15:28:28Z")

</div>

While that may work, that is a horrible practice since it clutters your code. It would never be acceptable in professional code.

---

<div class="post-metadata">

**Author:** ![Japhet](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/japhet/32/5878_2.png) [@Japhet](https://forum.codewithmosh.com/u/Japhet)\
**Post date:** [March 21, 2023, 6:13am UTC](https://forum.codewithmosh.com/t/hi-im-a-beginner-to-python-as-im-running-my-program-it-works-perfectly-but-i-can-see-a-message-in-problem-saying-that-missing-module-docstring-pylint-missing-module-docstring-can-someone-help-me-to-fix-this-bug/8278/9 "2023-03-21T06:13:34Z")

</div>

Hi! I have disabled Pylint extension and reloaded it again. It has worked for me and the errors were gone.

Here is my reference:

[![](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/2/2ad0f49a07c2c0d96489649f6aa4a00443fb6c27.jpeg "Missing Module Docstring | Final newline missing | Pylint Error in Visual Studio Code") ](https://www.youtube.com/watch?v=Y4s0wFyUE7I)

---

<div class="post-metadata">

**Author:** ![Deh](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@Deh](https://forum.codewithmosh.com/u/Deh)\
**Post date:** [April 3, 2023, 6:22pm UTC](https://forum.codewithmosh.com/t/hi-im-a-beginner-to-python-as-im-running-my-program-it-works-perfectly-but-i-can-see-a-message-in-problem-saying-that-missing-module-docstring-pylint-missing-module-docstring-can-someone-help-me-to-fix-this-bug/8278/10 "2023-04-03T18:22:16Z")

</div>

Thank you @Japhet, this worked. I tried uninstalling/install, no luck but the disable/reload did it.

---

<div class="post-metadata">

**Author:** ![Philo694](https://avatars.discourse-cdn.com/v4/letter/p/c4cdca/32.png) [@Philo694](https://forum.codewithmosh.com/u/Philo694)\
**Post date:** [January 12, 2024, 5:36pm UTC](https://forum.codewithmosh.com/t/hi-im-a-beginner-to-python-as-im-running-my-program-it-works-perfectly-but-i-can-see-a-message-in-problem-saying-that-missing-module-docstring-pylint-missing-module-docstring-can-someone-help-me-to-fix-this-bug/8278/11 "2024-01-12T17:36:48Z")

</div>

Hi the file just needs some comments at the top to say what its about for example add  
“”“This is to stop [missing-module-docstring] Error”“” putting your own comment.  
Hope this helps.

---

<div class="post-metadata">

**Author:** ![jdgen11](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@jdgen11](https://forum.codewithmosh.com/u/jdgen11)\
**Post date:** [March 1, 2024, 5:58am UTC](https://forum.codewithmosh.com/t/hi-im-a-beginner-to-python-as-im-running-my-program-it-works-perfectly-but-i-can-see-a-message-in-problem-saying-that-missing-module-docstring-pylint-missing-module-docstring-can-someone-help-me-to-fix-this-bug/8278/12 "2024-03-01T05:58:15Z")

</div>

Thank you @Japhet worked perfectly. Greatly appreciate the help!
