Skip to content

Error trying to run tests: ModuleNotFoundError: No module named 'django_coverage_plugin' #374

@Richard-Childers

Description

@Richard-Childers

Location within the Book

  • Book order number: 12003
  • Book build date (Is the date on page 1): 2020-09-16
  • Book format (PDF, Epub or Mobi): PDF
  • Chapter or Appendix: Introducing Tests
  • Section: 25
  • Subsection: 25.2
  • What operating system are you using:
    • Linux (Ubuntu 20.04)
    • Linux (Ubuntu 18.04)
    • Linux (Other)
    • MacOS Catalina
    • MacOS Mojave
    • MacOS Big Sur
    • Windows 10 Pro, Version 2004 or higher
    • Windows 10 Pro, Version 1909 or lower
    • [ x] Windows 10 Home, Version 2004 or higher
    • Windows 10 Home, Version 1909 or lower

Hint: Page numbers change all the time. The best way to report an issue is by chapter, section, and subsection numbers.

Description

Hi, I run this command (everycheese) D:\projects\everycheese>coverage run -m pytest
and get the following errors:

Traceback (most recent call last):
File "D:\miniconda3\envs\everycheese\Scripts\coverage-script.py", line 10, in
sys.exit(main())
File "D:\miniconda3\envs\everycheese\lib\site-packages\coverage\cmdline.py", line 871, in main
status = CoverageScript().command_line(argv)
File "D:\miniconda3\envs\everycheese\lib\site-packages\coverage\cmdline.py", line 588, in command_line
return self.do_run(options, args)
File "D:\miniconda3\envs\everycheese\lib\site-packages\coverage\cmdline.py", line 743, in do_run
self.coverage.start()
File "D:\miniconda3\envs\everycheese\lib\site-packages\coverage\control.py", line 532, in start
self._init()
File "D:\miniconda3\envs\everycheese\lib\site-packages\coverage\control.py", line 275, in _init
self._plugins = Plugins.load_plugins(self.config.plugins, self.config, self._debug)
File "D:\miniconda3\envs\everycheese\lib\site-packages\coverage\plugin_support.py", line 41, in load_plugins
import(module)
ModuleNotFoundError: No module named 'django_coverage_plugin'

If code-related, enter it within these backticks. Otherwise, delete this segment.

Possible Solutions

I tried to install coverage, >conda install coverage, but this did not fix the problem.

Your full name so we can provide accurate credit within the book

Richard Childers

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