Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ugettext* deprecated in Django 4.2.6 #91

Closed
jonsito opened this issue Oct 24, 2023 · 2 comments
Closed

ugettext* deprecated in Django 4.2.6 #91

jonsito opened this issue Oct 24, 2023 · 2 comments
Assignees

Comments

@jonsito
Copy link

jonsito commented Oct 24, 2023

Hi all
Trying to install openuds 3.6 in Ubuntu 20.04 ( python3.8 ... expect no problems )
"pip install Django" downloads and installs version 4.2.6

When running python manage.py sync get multiple errors about lack of ugettext* functions.
surfing in the web found that these functions are now deprecated:

https://code.djangoproject.com/ticket/30165

So had to manually surf across source code an replace ugettext* instances to gettext* to get no related errors.

Is this ok, or is there a better way to deal with?

Thanks in advance.
Juan Antonio

BTW: writing a tiny install_howto to avoid me getting lost :-)

@dkmstr
Copy link
Collaborator

dkmstr commented Oct 24, 2023

Right, UDS 3.6 is compatible with Django 3.2.x only

If you look at the "requirements.txt" file on server folder, you will see that 3.6 is compatible with Django 3.2.19 (well, i have currently upgraded it to 3.2.22). 4.0 will use Django 4.x (or maybe 5.x, if it is already in stable stage when finished 4.0 :) ).

Note that currently "master" (will be 4.0) version is not usable, it's under heavy changes (refactoring, new service models, ...), and its not ready for anything right now.

Also, i have added Pillow dependency version for 3.6 (due to some constants being removed...) to 9.5.0.

Hope this helps:

Note:
Look here, should have all dependencies if i'm not wrong :).
https://github.com/VirtualCable/openuds/blob/v3.6/server/requirements.txt

Any install help would be appreciated, we can include it somewhere so it's easier for next one to install it... :)

@jonsito
Copy link
Author

jonsito commented Oct 24, 2023

Thanks.
Downgrade Django to 3.2.19 and ugettext problem solved.

So looking for next issue... :-)
Juan Antonio

@jonsito jonsito closed this as completed Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants