Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'invites.urls' #68

Open
Joe-Heffer-Shef opened this issue Jan 22, 2025 · 1 comment · Fixed by #69
Open

ModuleNotFoundError: No module named 'invites.urls' #68

Joe-Heffer-Shef opened this issue Jan 22, 2025 · 1 comment · Fixed by #69
Assignees

Comments

@Joe-Heffer-Shef
Copy link
Collaborator

In the dev branch:

python manage.py test
Found 0 test(s).
Traceback (most recent call last):
  File "C:\Users\cs1jsth\projects\SORT\manage.py", line 22, in <module>
    main()
  File "C:\Users\cs1jsth\projects\SORT\manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\core\management\__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\core\management\__init__.py", line 436, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\core\management\commands\test.py", line 24, in run_from_argv
    super().run_from_argv(argv)
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\core\management\base.py", line 413, in run_from_argv
    self.execute(*args, **cmd_options)
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\core\management\base.py", line 459, in execute
    output = self.handle(*args, **options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\core\management\commands\test.py", line 63, in handle
    failures = test_runner.run_tests(test_labels)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\test\runner.py", line 1072, in run_tests
    self.run_checks(databases)
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\test\runner.py", line 994, in run_checks
    call_command("check", verbosity=self.verbosity, databases=databases)
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\core\management\__init__.py", line 194, in call_command
    return command.execute(*args, **defaults)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\core\management\base.py", line 459, in execute
    output = self.handle(*args, **options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\core\management\commands\check.py", line 81, in handle
    self.check(
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\core\management\base.py", line 486, in check
    all_issues = checks.run_checks(
                 ^^^^^^^^^^^^^^^^^^
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\core\checks\registry.py", line 88, in run_checks
    new_errors = check(app_configs=app_configs, databases=databases)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\core\checks\urls.py", line 16, in check_url_config
    return check_resolver(resolver)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\core\checks\urls.py", line 26, in check_resolver
    return check_method()
           ^^^^^^^^^^^^^^
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\urls\resolvers.py", line 531, in check
    for pattern in self.url_patterns:
                   ^^^^^^^^^^^^^^^^^
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\utils\functional.py", line 47, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
                                         ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\urls\resolvers.py", line 718, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
                       ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\utils\functional.py", line 47, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
                                         ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\urls\resolvers.py", line 711, in urlconf_module
    return import_module(self.urlconf_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cs1jsth\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "C:\Users\cs1jsth\projects\SORT\SORT\urls.py", line 25, in <module>
    path("invite/", include("invites.urls"), name="invites"),
                    ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cs1jsth\projects\SORT\venv\Lib\site-packages\django\urls\conf.py", line 39, in include
    urlconf_module = import_module(urlconf_module)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cs1jsth\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'invites.urls'
@Joe-Heffer-Shef Joe-Heffer-Shef self-assigned this Jan 22, 2025
@Joe-Heffer-Shef
Copy link
Collaborator Author

The invites directory has been deleted in dev branch. I just needed to remove it from my machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant