Error while updating

Hello everyone !

Yesterday i found that my panel was not up to date (V2.3.2 if i remember), i tried to follow the documentation to upgrade to the latest version, but now i have an error that i can’t solve.

My postfix is always working (Thank to god) but i can’t access to anything from cyberpanel.

When i tried the cyberpanel command i have the following error:

root@cyberpanel:/usr/local/CyberCP# cyberpanel
Traceback (most recent call last):
  File "/usr/bin/cyberpanel", line 8, in <module>
    django.setup()
  File "/usr/local/CyberCP/lib/python3.10/site-packages/django/__init__.py", line 19, in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "/usr/local/CyberCP/lib/python3.10/site-packages/django/conf/__init__.py", line 102, in __getattr__
    self._setup(name)
  File "/usr/local/CyberCP/lib/python3.10/site-packages/django/conf/__init__.py", line 89, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/local/CyberCP/lib/python3.10/site-packages/django/conf/__init__.py", line 217, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/local/CyberCP/CyberCP/settings.py", line 14, in <module>
    from django.utils.translation import ugettext_lazy as _
ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation' (/usr/local/CyberCP/lib/python3.10/site-packages/django/utils/translation/__init__.py)

I tried a lot of solutions found on stackoverflow, in this forum, but nothing fixed my problem.

Please ca you help me ? :cry:

Oh, and juste in case, i’m stupid and i forgot to clean my backup, so i reached my backup limit a while ago and i don’t have a recent one…

If i can reinstall the panel but not loosing my data (Websites/Emails addresses/Users/Docker containers/…) it’s not a problem.