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

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

Open
9 tasks
Richard-Childers opened this issue Mar 31, 2021 · 0 comments

Comments

@Richard-Childers
Copy link

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

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

No branches or pull requests

1 participant