Bug 2394738 - python-django3: locale files missing from install
Summary: python-django3: locale files missing from install
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: python-django3
Version: epel9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michel Lind
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-12 02:02 UTC by Sam Fowler
Modified: 2025-09-12 02:02 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Sam Fowler 2025-09-12 02:02:27 UTC
Description of problem:

The EPEL9 package of python3-django3 doesn't seem to install any locale files (*.mo), despite them being included in the package manifest. This seems to break django apps with the setting USE_I18N = True.

Apologies in advance if I'm missing something obvious.


Version-Release number of selected component (if applicable):

3.2.25-1.el9

How reproducible:

Every time

Steps to Reproduce:
1. Create Containerfile which install the RPM from EPEL then validates if .mo files were installed:

$ cat Containerfile.debug
FROM registry.access.redhat.com/ubi9/ubi

RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm

RUN dnf install -y python3-django3

RUN rpm -a --verify python3-django3

RUN find /usr -name django.mo

RUN rpm -ql python3-django3 | grep .mo$ | head && \
  rpm -ql python3-django3 | grep .mo$ | head | xargs ls -l

2. Build container, observe output:

$ podman build --no-cache -t localhost/delme -f Containerfile.debug
STEP 1/6: FROM registry.access.redhat.com/ubi9/ubi
STEP 2/6: RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Red Hat Universal Base Image 9 (RPMs) - BaseOS  1.3 MB/s | 588 kB     00:00
Red Hat Universal Base Image 9 (RPMs) - AppStre 4.9 MB/s | 2.4 MB     00:00
Red Hat Universal Base Image 9 (RPMs) - CodeRea 589 kB/s | 287 kB     00:00
epel-release-latest-9.noarch.rpm                 13 kB/s |  19 kB     00:01
Dependencies resolved.
================================================================================
 Package              Arch       Version            Repository             Size
================================================================================
Installing:
 epel-release         noarch     9-10.el9           @commandline           19 k
Installing weak dependencies:
 dnf-plugins-core     noarch     4.3.0-20.el9       ubi-9-baseos-rpms      41 k

Transaction Summary
================================================================================
Install  2 Packages

Total size: 60 k
Total download size: 41 k
Installed size: 48 k
Downloading Packages:
dnf-plugins-core-4.3.0-20.el9.noarch.rpm        240 kB/s |  41 kB     00:00
--------------------------------------------------------------------------------
Total                                           235 kB/s |  41 kB     00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1
  Installing       : dnf-plugins-core-4.3.0-20.el9.noarch                   1/2
  Installing       : epel-release-9-10.el9.noarch                           2/2
  Running scriptlet: epel-release-9-10.el9.noarch                           2/2
Many EPEL packages require the CodeReady Builder (CRB) repository.
It is recommended that you run /usr/bin/crb enable to enable the CRB repository.

  Verifying        : dnf-plugins-core-4.3.0-20.el9.noarch                   1/2
  Verifying        : epel-release-9-10.el9.noarch                           2/2
Installed products updated.

Installed:
  dnf-plugins-core-4.3.0-20.el9.noarch       epel-release-9-10.el9.noarch

Complete!
--> aa01890ee608
STEP 3/6: RUN dnf install -y python3-django3
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Extra Packages for Enterprise Linux 9 - x86_64  4.7 MB/s |  20 MB     00:04
Extra Packages for Enterprise Linux 9 openh264  1.3 kB/s | 2.5 kB     00:01
Dependencies resolved.
================================================================================
 Package                        Arch   Version       Repository            Size
================================================================================
Installing:
 python3-django3                noarch 3.2.25-1.el9  epel                 4.3 M
Installing dependencies:
 bash-completion                noarch 1:2.11-5.el9  ubi-9-baseos-rpms    459 k
 libpkgconf                     x86_64 1.7.3-10.el9  ubi-9-baseos-rpms     37 k
 pkgconf                        x86_64 1.7.3-10.el9  ubi-9-baseos-rpms     45 k
 pkgconf-m4                     noarch 1.7.3-10.el9  ubi-9-baseos-rpms     16 k
 pkgconf-pkg-config             x86_64 1.7.3-10.el9  ubi-9-baseos-rpms     12 k
 python3-asgiref                noarch 3.7.2-1.el9   epel                  47 k
 python3-pytz                   noarch 2021.1-5.el9  ubi-9-appstream-rpms  55 k
 python3-sqlparse               noarch 0.4.2-1.el9   epel                  83 k
 python3-typing-extensions      noarch 4.12.2-2.el9  epel                  74 k
Installing weak dependencies:
 python-django3-bash-completion noarch 3.2.25-1.el9  epel                 9.7 k

Transaction Summary
================================================================================
Install  11 Packages

Total download size: 5.1 M
Installed size: 19 M
Downloading Packages:
(1/11): python-django3-bash-completion-3.2.25-1 9.3 kB/s | 9.7 kB     00:01
(2/11): python3-asgiref-3.7.2-1.el9.noarch.rpm   44 kB/s |  47 kB     00:01
(3/11): python3-sqlparse-0.4.2-1.el9.noarch.rpm 1.0 MB/s |  83 kB     00:00
(4/11): python3-typing-extensions-4.12.2-2.el9. 1.3 MB/s |  74 kB     00:00
(5/11): libpkgconf-1.7.3-10.el9.x86_64.rpm      138 kB/s |  37 kB     00:00
(6/11): python3-django3-3.2.25-1.el9.noarch.rpm 3.0 MB/s | 4.3 MB     00:01
(7/11): pkgconf-1.7.3-10.el9.x86_64.rpm         678 kB/s |  45 kB     00:00
(8/11): pkgconf-pkg-config-1.7.3-10.el9.x86_64. 388 kB/s |  12 kB     00:00
(9/11): bash-completion-2.11-5.el9.noarch.rpm   1.1 MB/s | 459 kB     00:00
(10/11): pkgconf-m4-1.7.3-10.el9.noarch.rpm     172 kB/s |  16 kB     00:00
(11/11): python3-pytz-2021.1-5.el9.noarch.rpm   969 kB/s |  55 kB     00:00
--------------------------------------------------------------------------------
Total                                           2.3 MB/s | 5.1 MB     00:02
Extra Packages for Enterprise Linux 9 - x86_64  1.6 MB/s | 1.6 kB     00:00
Importing GPG key 0x3228467C:
 Userid     : "Fedora (epel9) <epel>"
 Fingerprint: FF8A D134 4597 106E CE81 3B91 8A38 72BF 3228 467C
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1
  Installing       : python3-pytz-2021.1-5.el9.noarch                      1/11
  Installing       : pkgconf-m4-1.7.3-10.el9.noarch                        2/11
  Installing       : libpkgconf-1.7.3-10.el9.x86_64                        3/11
  Installing       : pkgconf-1.7.3-10.el9.x86_64                           4/11
  Installing       : pkgconf-pkg-config-1.7.3-10.el9.x86_64                5/11
  Installing       : bash-completion-1:2.11-5.el9.noarch                   6/11
  Installing       : python-django3-bash-completion-3.2.25-1.el9.noarch    7/11
  Installing       : python3-typing-extensions-4.12.2-2.el9.noarch         8/11
  Installing       : python3-asgiref-3.7.2-1.el9.noarch                    9/11
  Installing       : python3-sqlparse-0.4.2-1.el9.noarch                  10/11
  Installing       : python3-django3-3.2.25-1.el9.noarch                  11/11
  Running scriptlet: python3-django3-3.2.25-1.el9.noarch                  11/11
  Verifying        : python-django3-bash-completion-3.2.25-1.el9.noarch    1/11
  Verifying        : python3-asgiref-3.7.2-1.el9.noarch                    2/11
  Verifying        : python3-django3-3.2.25-1.el9.noarch                   3/11
  Verifying        : python3-sqlparse-0.4.2-1.el9.noarch                   4/11
  Verifying        : python3-typing-extensions-4.12.2-2.el9.noarch         5/11
  Verifying        : bash-completion-1:2.11-5.el9.noarch                   6/11
  Verifying        : libpkgconf-1.7.3-10.el9.x86_64                        7/11
  Verifying        : pkgconf-1.7.3-10.el9.x86_64                           8/11
  Verifying        : pkgconf-m4-1.7.3-10.el9.noarch                        9/11
  Verifying        : pkgconf-pkg-config-1.7.3-10.el9.x86_64               10/11
  Verifying        : python3-pytz-2021.1-5.el9.noarch                     11/11
Installed products updated.

Installed:
  bash-completion-1:2.11-5.el9.noarch
  libpkgconf-1.7.3-10.el9.x86_64
  pkgconf-1.7.3-10.el9.x86_64
  pkgconf-m4-1.7.3-10.el9.noarch
  pkgconf-pkg-config-1.7.3-10.el9.x86_64
  python-django3-bash-completion-3.2.25-1.el9.noarch
  python3-asgiref-3.7.2-1.el9.noarch
  python3-django3-3.2.25-1.el9.noarch
  python3-pytz-2021.1-5.el9.noarch
  python3-sqlparse-0.4.2-1.el9.noarch
  python3-typing-extensions-4.12.2-2.el9.noarch

Complete!
--> acf5ad01721e
STEP 4/6: RUN rpm -a --verify python3-django3
--> 927b1054566c
STEP 5/6: RUN find /usr -name django.mo
--> 9140e939b9ab
STEP 6/6: RUN rpm -ql python3-django3 | grep .mo$ | head &&   rpm -ql python3-django3 | grep .mo$ | head | xargs ls -l
/usr/lib/python3.9/site-packages/django/conf/locale/af/LC_MESSAGES/django.mo
/usr/lib/python3.9/site-packages/django/conf/locale/ar/LC_MESSAGES/django.mo
/usr/lib/python3.9/site-packages/django/conf/locale/ar_DZ/LC_MESSAGES/django.mo
/usr/lib/python3.9/site-packages/django/conf/locale/ast/LC_MESSAGES/django.mo
/usr/lib/python3.9/site-packages/django/conf/locale/az/LC_MESSAGES/django.mo
/usr/lib/python3.9/site-packages/django/conf/locale/be/LC_MESSAGES/django.mo
/usr/lib/python3.9/site-packages/django/conf/locale/bg/LC_MESSAGES/django.mo
/usr/lib/python3.9/site-packages/django/conf/locale/bn/LC_MESSAGES/django.mo
/usr/lib/python3.9/site-packages/django/conf/locale/br/LC_MESSAGES/django.mo
/usr/lib/python3.9/site-packages/django/conf/locale/bs/LC_MESSAGES/django.mo
ls: cannot access '/usr/lib/python3.9/site-packages/django/conf/locale/af/LC_MESSAGES/django.mo': No such file or directory
ls: cannot access '/usr/lib/python3.9/site-packages/django/conf/locale/ar/LC_MESSAGES/django.mo': No such file or directory
ls: cannot access '/usr/lib/python3.9/site-packages/django/conf/locale/ar_DZ/LC_MESSAGES/django.mo': No such file or directory
ls: cannot access '/usr/lib/python3.9/site-packages/django/conf/locale/ast/LC_MESSAGES/django.mo': No such file or directory
ls: cannot access '/usr/lib/python3.9/site-packages/django/conf/locale/az/LC_MESSAGES/django.mo': No such file or directory
ls: cannot access '/usr/lib/python3.9/site-packages/django/conf/locale/be/LC_MESSAGES/django.mo': No such file or directory
ls: cannot access '/usr/lib/python3.9/site-packages/django/conf/locale/bg/LC_MESSAGES/django.mo': No such file or directory
ls: cannot access '/usr/lib/python3.9/site-packages/django/conf/locale/bn/LC_MESSAGES/django.mo': No such file or directory
ls: cannot access '/usr/lib/python3.9/site-packages/django/conf/locale/br/LC_MESSAGES/django.mo': No such file or directory
ls: cannot access '/usr/lib/python3.9/site-packages/django/conf/locale/bs/LC_MESSAGES/django.mo': No such file or directory
Error: building at STEP "RUN rpm -ql python3-django3 | grep .mo$ | head &&   rpm -ql python3-django3 | grep .mo$ | head | xargs ls -l": while running runtime: exit status 123


Actual results:

None of the locale files (*.mo) listed in the package manifest are installed.


Expected results:

The locale files (*.mo) present in the package manifest should be installed or available from another sub(package).


Additional info:

Sorry in advance if I'm missing something obvious. I'm just trying to get my RPM packaged app working with it's default setting of USE_I18N = True.


Note You need to log in before you can comment on or make changes to this bug.