Installed Pretix LDAP via pip3 install pretix-ldap
Now running Pretix creates an error:
$ python -m pretix --help
$ python -m pretix --help
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/var/pretix/venv/lib/python3.11/site-packages/pretix/__main__.py", line 30, in <module>
execute_from_command_line(sys.argv)
File "/var/pretix/venv/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
File "/var/pretix/venv/lib/python3.11/site-packages/django/core/management/__init__.py", line 416, in execute
django.setup()
File "/var/pretix/venv/lib/python3.11/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/var/pretix/venv/lib/python3.11/site-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
^^^^^^^^^^^^^^^^^^^^^^^
File "/var/pretix/venv/lib/python3.11/site-packages/django/apps/config.py", line 193, in create
import_module(entry)
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/var/pretix/venv/lib/python3.11/site-packages/pretix_ldap/__init__.py", line 1, in <module>
from .ldap_connector import LDAPAuthBackend # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/pretix/venv/lib/python3.11/site-packages/pretix_ldap/ldap_connector.py", line 7, in <module>
from django.utils.translation import ugettext_lazy as _
ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation' (/var/pretix/venv/lib/python3.11/site-packages/django/utils/translation/__init__.py)
Could you please also publish 0.2.0 to pip? Even though this issue is fixed here, trying to install it still throws the same error. Thank you very much!
Installed Pretix based on it's docs:
Installed Pretix LDAP via
pip3 install pretix-ldap
Now running Pretix creates an error:
Package versions: