question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'django_nose' VENV

See original GitHub issue

Hi,

Everything runs perfectly outside of a VENV locally and in production

When I run Unit Testing via Jenkins all is also fine.

When I try to manage.py runserver inside of a VENV on my local machine I get the following traceback.


(eb-virt) PS E:\ITCIRCLECONSULT\GITHUB\maffaz-com\maffaz-com\maffaz> python manage.py runserver
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x000001E697738268>
Traceback (most recent call last):
  File "E:\ITCIRCLECONSULT\GITHUB\maffaz-com\maffaz-com\eb-virt\lib\site-packages\django\utils\autoreload.py", line 220, in wrapper
    fn(*args, **kwargs)
  File "E:\ITCIRCLECONSULT\GITHUB\maffaz-com\maffaz-com\eb-virt\lib\site-packages\django\core\management\commands\runserver.py", line 112, in inner_run
    autoreload.raise_last_exception()
  File "E:\ITCIRCLECONSULT\GITHUB\maffaz-com\maffaz-com\eb-virt\lib\site-packages\django\utils\autoreload.py", line 243, in raise_last_exception
    raise _exception[0](_exception[1]).with_traceback(_exception[2])
  File "E:\ITCIRCLECONSULT\GITHUB\maffaz-com\maffaz-com\eb-virt\lib\site-packages\django\utils\autoreload.py", line 220, in wrapper
    fn(*args, **kwargs)
  File "E:\ITCIRCLECONSULT\GITHUB\maffaz-com\maffaz-com\eb-virt\lib\site-packages\django\__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "E:\ITCIRCLECONSULT\GITHUB\maffaz-com\maffaz-com\eb-virt\lib\site-packages\django\apps\registry.py", line 89, in populate
    app_config = AppConfig.create(entry)
  File "E:\ITCIRCLECONSULT\GITHUB\maffaz-com\maffaz-com\eb-virt\lib\site-packages\django\apps\config.py", line 90, in create
    module = import_module(entry)
  File "E:\ITCIRCLECONSULT\GITHUB\maffaz-com\maffaz-com\eb-virt\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 978, in _gcd_import
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load
  File "<frozen importlib._bootstrap>", line 948, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'django_nose'

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
johnashucommented, Oct 10, 2017

Hey Ian,

I can’t remember what I did but Im fairly certain it was something simple like creating a new Virtual ENV… I also deleted the Caches .

1reaction
johnashucommented, Sep 1, 2017

Hang on I just noticed something… The last 3 lines omitted < frozen importlib._bootstrap > and pasted in “” instead

   return _bootstrap._gcd_import(name[level:], package, level)
  File "< frozen importlib._bootstrap >", line 978, in _gcd_import
  File "< frozen importlib._bootstrap >", line 961, in _find_and_load
  File "< frozen importlib._bootstrap >", line 948, in _find_and_load_unlocked

I had to put a space in between the < and the >… I assume its the github markup!

I hope this helps to explain things better

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named 'django_nose' VENV · Issue #286 ... - GitHub
When I try to manage.py runserver inside of a VENV on my local machine I ... ModuleNotFoundError: No module named 'django_nose' VENV #286....
Read more >
ImportError: How to import django-nose package?
As shown in the TEST_RUNNER setting, the Python package is django_nose ; that's what you need to use in INSTALLED_APPS rather than ...
Read more >
ModuleNotFoundError: No module named 'django' - QueWorx
If you got the error “ModuleNotFoundError: No module named 'django'” it means that Python couldn't find your Django package. Here's the full error...
Read more >
django-nose 1.4.1 - PyPI
Running the tests in one or more specific modules (or apps, or classes, ... otherwise you will get a `ImportError: No module named...
Read more >
ModuleNotFoundError: No module named 'datetime'
You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found