[odoo20] CRITICAL ? odoo.modules.module: Couldn't load module base(pytz/zoneinfo/America/Catamarca)

未关闭
#584 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
52/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
docker, python
领域
devops

调研方向

The report identifies a startup failure in Odoo 20 under Python 3.14, with Babel failing to find America/Catamarca in the pytz zoneinfo directory. Start by reproducing the error with the recommended Resolute container and inspect how its image installs Python, Babel, and timezone data. Done means the base module loads successfully and the reported timezone is available.

由索引模型根据 Issue 内容生成。

描述

It is recommended to use the Resolute container with Python 3.14. Currently, there is some issue with determining the time zone; the window starts with the following error:
src: 20261128

image

odoo20   | 2026-11-30 13:27:12,736 11 CRITICAL ? odoo.modules.module: Couldn't load module base
odoo20   | 2026-11-30 13:27:12,736 11 ERROR ? odoo.service.server: Failed to load server-wide module `base`.
odoo20   | Traceback (most recent call last):
odoo20   |   File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 1427, in load_server_wide_modules
odoo20   |     load_openerp_module(m)
odoo20   |   File "/usr/lib/python3/dist-packages/odoo/modules/module.py", line 541, in load_openerp_module
odoo20   |     __import__(qualname)
odoo20   |   File "/usr/lib/python3/dist-packages/odoo/addons/base/__init__.py", line 4, in <module>
odoo20   |     from . import models
odoo20   |   File "/usr/lib/python3/dist-packages/odoo/addons/base/models/__init__.py", line 44, in <module>
odoo20   |     from . import res_partner
odoo20   |   File "/usr/lib/python3/dist-packages/odoo/addons/base/models/res_partner.py", line 136, in <module>
odoo20   |     _tzs = [(tz, tz) for tz in sorted(all_timezones, key=lambda tz: tz if not tz.startswith('Etc/') else '_')]
odoo20   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
odoo20   |   File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 189, in __iter__
odoo20   |     def __iter__(self): return iter(self._value)
odoo20   |                                     ^^^^^^^^^^^
odoo20   |   File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 155, in _value
odoo20   |     value = self._func(*self._args, **self._kwargs)
odoo20   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
odoo20   |   File "/usr/lib/python3/dist-packages/odoo/tools/date_utils.py", line 30, in all_timezones
odoo20   |     babel.dates.get_timezone(tz)
odoo20   |   File "/usr/lib/python3/dist-packages/babel/dates.py", line 204, in get_timezone
odoo20   |     return _pytz.timezone(zone)
odoo20   |            ^^^^^^^^^^^^^^^^^^^^
odoo20   |           FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/pytz/zoneinfo/America/Catamarca'
主要语言
Dockerfile
星标
1.2k
派生
1.7k
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

odoo/docker 的其他 Issue

查看 odoo/docker 的全部 Issue

相似的 Issue

更多 DevOps Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。