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.

There is an error collecting tests

[   78s] _________ ERROR collecting tests/management/commands/test_show_urls.py _________
[   78s] ImportError while importing test module '/home/abuild/rpmbuild/BUILD/django-extensions-3.1.5/tests/management/commands/test_show_urls.py'.
[   78s] Hint: make sure your test modules/packages have valid Python names.
[   78s] Traceback:
[   78s] /usr/lib/python3.9/site-packages/_pytest/python.py:578: in _importtestmodule
[   78s]     mod = import_path(self.fspath, mode=importmode)
[   78s] /usr/lib/python3.9/site-packages/_pytest/pathlib.py:524: in import_path
[   78s]     importlib.import_module(module_name)
[   78s] /usr/lib64/python3.9/importlib/__init__.py:127: in import_module
[   78s]     return _bootstrap._gcd_import(name[level:], package, level)
[   78s] <frozen importlib._bootstrap>:1030: in _gcd_import
[   78s]     ???
[   78s] <frozen importlib._bootstrap>:1007: in _find_and_load
[   78s]     ???
[   78s] <frozen importlib._bootstrap>:986: in _find_and_load_unlocked
[   78s]     ???
[   78s] <frozen importlib._bootstrap>:680: in _load_unlocked
[   78s]     ???
[   78s] /usr/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
[   78s]     exec(co, module.__dict__)
[   78s] tests/management/commands/test_show_urls.py:4: in <module>
[   78s]     from django.conf.urls import url
[   78s] E   ImportError: cannot import name 'url' from 'django.conf.urls' (/usr/lib/python3.9/site-packages/django/conf/urls/__init__.py)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jayvdbcommented, Dec 25, 2021

After that, lots of failures due to

[  125s]     from django.db.models.deletion import Collector
[  125s]     from django.utils import timezone
[  125s] >   from django.utils.encoding import force_str, smart_text
[  125s] E   ImportError: cannot import name 'smart_text' from 'django.utils.encoding' (/usr/lib/python3.9/site-packages/django/utils/encoding.py)
[  125s] 
[  125s] django_extensions/management/commands/dumpscript.py:44: ImportError
0reactions
jayvdbcommented, Feb 3, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Django 4.0 release notes
Django 4.0 supports Python 3.8, 3.9, and 3.10. We highly recommend and only officially support the latest release of each series. The Django...
Read more >
What's new in Django v4.0 - LogRocket Blog
Django v4.0 will only support Oracle ≥v19. The Django team has officially removed support for Oracle versions 18c and earlier. According to the ......
Read more >
Django 4.0 - What's New Features and Improvements
Django 4.0 supports Python 3.8, 3.9, and 3.10. The Django 3.2.x series is the last to support Python 3.6 and 3.7.
Read more >
Django - endoflife.date
Check End of Life, Support Schedule, and release timelines for AlmaLinux OS, Alpine Linux, Amazon Linux, Android OS, Angular, Ansible-core, Ansible, antiX, ...
Read more >
Django 4 support · Issue #1781 · django/channels - GitHub
Hello channels team. Do you have any plans to support Django 4? Thanks.
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