No module named 'polls.apps.PollsConfigdjango'; Django project tutorial 2

no module named error python3
python no module named same directory
modulenotfounderror: no module named
importerror: no module named mac
modulenotfounderror: no module named 'error'
modulenotfounderror: no module named 'config
importerror: no module named py
modulenotfounderror: no module named 'src'

So, I've been following the tutorial steps here and I got to the step where I am supposed to run this command:

python makemigrations polls

When I run it, I get this error:

python makemigrations polls
Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 2218, in_find_and_load_unlocked
AttributeError: 'module' object has no attribute '__path__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "", line 10, in <module>
  File "/home/tgumm/pythonenv/tutorial/lib/python3.4/site-packages/django/core/management/", line 353, in execute_from_command_line
  File "/home/tgumm/pythonenv/tutorial/lib/python3.4/site-packages/django/core/management/", line 327, in execute
  File "/home/tgumm/pythonenv/tutorial/lib/python3.4/site-packages/django/", line 18, in setup
  File "/home/tgumm/pythonenv/tutorial/lib/python3.4/site-packages/django/apps/", line 85, in populate
app_config = AppConfig.create(entry)
  File "/home/tgumm/pythonenv/tutorial/lib/python3.4/site-packages/django/apps/", line 116, in create
mod = import_module(mod_path)
  File "/home/tgumm/pythonenv/tutorial/lib/python3.4/importlib/", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2212, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2237, in _find_an``d_load
  File "<frozen importlib._bootstrap>", line 2221, in _find_and_load_unlocked
ImportError: No module named 'polls.apps.PollsConfigdjango'; 'polls.apps' is not a package

Here are my models:

from django.db import models

# Create your models here.
from django.db import models

class Question(models.Model):
    question_text = models.CharField(max_length=200)
    pub_date = models.DateTimeField('date published')

class Choice(models.Model):
    question = models.ForeignKey(Question, on_delete=models.CASCADE)
    choice_text = models.CharField(max_length=200)
    votes = models.IntegerField(default=0)

The first problem is this warning in the traceback:

No module named 'polls.apps.PollsConfigdjango'

That means that you are missing a comma after 'polls.apps.PollsConfig in your INSTALLED_APPS setting. It should be:


The second problem is the warning 'polls.apps' is not a package. That suggests that you have installed Django 1.8, but you are following the Django 1.9 tutorial.

If you are using Django 1.8, then follow the 1.8 tutorial so that you don't hit problems like this. Adding the polls app to INSTALLED_APPS is covered here in the Django 1.8 tutorial. Note that it doesn't use PollsConfig.


ImportError: No module named 'XYZ', ImportError: No module named 'XYZ'. Jupyter notebook cannot find the package you already installed? Let's solve the problem. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. Learn more ModuleNotFoundError: No module named 'object_detection'

ImportError: No module named 'polls.apps.PollsConfigdjango'

You forgot to add ',' in the list

Python error “ImportError: No module named”, To get rid of this error you just need to create in the appropriate directory and everything will work fine. To know more about this you  ModuleNotFoundError: No module named 'werkzeug.wrappers.json'; 'werkzeug.wrappers' is not a package. whenever I issue the command. from flask import Flask while developing and debugging. This even happens in the Flask script if I run it in either the Spyder or VSCode debuggers.

check for comma "," after 'polls.apps.PollsConfigdjango'

Traps for the Unwary in Python's Import System, While Python 3.3+ is able to import the submodule without any problems: File "​<string>", line 1, in <module> ImportError: No module named ''. Hi, sorry for being new to this. Trying to run your script, get this error: Traceback (most recent call last): File "./", line 18, in import git ModuleNotFoundError: No module named 'git'

I was getting a similar error: ImportError: No module named 'polls'

The cause was that I stored my apps inside the "apps" directory. The solution is to change the code inside


class PollsConfig(AppConfig):
    name = 'polls'

to ("apps" is the name of my django apps directory):

class PollsConfig(AppConfig):
    name = 'apps.polls'

ImportError: No module named github · Issue #856 · PyGithub , I'm trying to use PyGitHub and I'm getting "ImportError: No module named github". Setup specs: macOS v10.13.6 Python v3.7.0 Installed with  Traceback (most recent call last): File "/usr/local/bin/pip", line 7, in <module> from pip._internal import main ImportError: No module named _internal I have tried doing sudo apt-get remove python-pip followed by sudo apt-get install python-pip but nothing changed. Thank you for your time!

Quoted from


In tutorial 02, Writing your first Django app, part 2, typing in


will cause an ImportError: No module named 'polls.apps.PollsConfig'; 'polls.apps' is not a package

This is resolved by instead putting


ModuleNotFoundError: No module named 'tabpy_tools' · Issue #360 , ModuleNotFoundError: No module named 'tabpy_tools' #360. Closed. wilmo79 opened this issue on Nov 18, 2019 · 4 comments. Closed  ImportError: No module named dns.exception. I am trying to use the dnspython in my code but when it gets to the import statement, I get the following error: I have tried installing with pip, easy_install and manually from the git repo but nothing seems to do the trick.

No module named 'cfxmagic', It works fine when I work with preinstalled Intel kernels however I want to work with my own custom conda environment.I am tring to submit job  ImportError: No module named tensorflow - Can't install Tensorflow-3. Successfully installed Tensorflow-GPU, After “import tensorflow” nothing will be printed out. 0.

ModuleNotFoundError: No module named 'CommandNotFound , Whenever I try sudo apt update I got: Traceback (most recent call last): File "/usr/​lib/cnf-update-db", line 8, in <module> from  The error message indicates that there is no module named MySQLdb. It means, Python needs a module to interface with MySQL database and that modules does not seems to be present in the system. All you need to do is, just install MySQL-Python module and the script should work without any problem. You can use pip to install any Python module.

Error: no module named mathlabengineforpython2_7, Message: Please reinstall MATLAB Engine for Python or contact MathWorks Technical Support for assistance: No module named matlabengineforpython2_7. Some of the modules like pandas, etc., use openpyxl if you are working with Excel file functionalities. If you run your Python program and got this error “ModuleNotFoundError: No module named ‘openpyxl'”, it means that openpyxl module is not installed. An example stack trace would be as shown below.

  • I had almost the exact same problem. But, for me I had misspelled my class name. And ShogunT, if the answer solves your problem, will you accept the answer?
  • This is the right answer for the question... I had made exactly the same mistake as the OP. I don't think I've ever seen so many "almost right" other answers coming and confusing the "comma issue" ... add to that that yours was the first answer chronologically. Odd.
  • Awesome. Fixed my issue!
  • Solved my problem. But my django version is 2.0.4, python version 3.6.5. According to the document, django will generate since version 1.9 ...So don't know why