Django 3.1.2 / Python 3.7.8 -> ImportError: cannot import name 'classproperty' from 'django.utils.decorators'
See original GitHub issue- django-getpaid version: last one
- Django version: 3.1.2
- Python version: 3.7.8
- Operating System: Cpanel (Mysql)
Description
Traceback (most recent call last):
File "/opt/alt/python37/lib64/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/opt/alt/python37/lib64/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/exemple/virtualenv/FC/3.7/lib/python3.7/site-packages/django/utils/autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "/home/exemple/virtualenv/FC/3.7/lib/python3.7/site-packages/django/core/management/commands/runserver.py", line 110, in inner_run
autoreload.raise_last_exception()
File "/home/exemple/virtualenv/FC/3.7/lib/python3.7/site-packages/django/utils/autoreload.py", line 76, in raise_last_exception
raise _exception[1]
File "/home/exemple/virtualenv/FC/3.7/lib/python3.7/site-packages/django/core/management/__init__.py", line 357, in execute
autoreload.check_errors(django.setup)()
File "/home/exemple/virtualenv/FC/3.7/lib/python3.7/site-packages/django/utils/autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "/home/exemple/virtualenv/FC/3.7/lib/python3.7/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/exemple/virtualenv/FC/3.7/lib/python3.7/site-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "/home/exemple/virtualenv/FC/3.7/lib/python3.7/site-packages/django/apps/config.py", line 90, in create
module = import_module(entry)
File "/home/exemple/virtualenv/FC/3.7/lib64/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/exemple/virtualenv/FC/3.7/lib/python3.7/site-packages/getpaid/__init__.py", line 1, in <module>
from .types import FraudStatus, PaymentStatus
File "/home/exemple/virtualenv/FC/3.7/lib/python3.7/site-packages/getpaid/types.py", line 6, in <module>
from django.utils.decorators import classproperty
ImportError: cannot import name 'classproperty' from 'django.utils.decorators' (/home/exemple/virtualenv/FC/3.7/lib/python3.7/site-packages/django/utils/decorators.py)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
ImportError: cannot import name 'classproperty' - Stack Overflow
try: # Django 3.1 and above from django.utils.functional import classproperty except ImportError: from django.utils.decorators import classproperty.
Read more >[Solved]-ImportError: cannot import name 'classproperty'-django
try: # Django 3.1 and above from django.utils.functional import classproperty except ImportError: from django.utils.decorators import classproperty.
Read more >Compare Django release notes | CodeReview.doctor
Fixed a regression in Django 3.1 that caused RuntimeError instead of connection errors when using only the 'postgres' database (#32403).
Read more >Open edX Developer's Guide - Read the Docs
Note: If you find an error or mistake in a course, contact the course staff by adding ... The Django server-side code in...
Read more >2021-December.txt - Python mailing list
files: Python error.png messages: 407473 nosy: boett1 priority: normal severity: normal status: open title: Debugger cannot be resolved ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dekoza What is holding the release?
Yeah, sorry for the delay.