docker-library / docker-library/python

bullseye images has issue with mktime OverflowError

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

还没有人认领这个 Issue。

主要语言
Dockerfile
星标
2.8k
派生
1.1k
平均合并
3 天 1 小时
30 天内合并 PR
1

描述

Hi
We are trying to run the following code snippet on bullseye after installing pytz

from datetime import datetime
import time
import pytz
tz=pytz.timezone('America/New_York')
nytime= datetime.utcnow().astimezone(tz)
time.mktime(nytime.timetuple())

But we get the following exception:
OverflowError: mktime argument out of range

Knowing that it works normally in buster images.
Is there any OS dependency that I need to install for bullseye?
Thank you

贡献指南

这个仓库没有索引到贡献指南

从这里开始

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

调研方向

在 Bullseye 和 Buster 镜像中使用 pytz 重现提供的 Python 代码片段,然后比较 time.mktime 涉及的运行时和 OS 依赖项。确定 Bullseye 镜像是否需要记录依赖项或进行打包更改,并确认该代码片段不再引发 OverflowError。

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

评估

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

把新 issue 发到你的邮箱

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