codrsquad / codrsquad/portable-python

Can't add tkinter because of missing libx11-dev package

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

还没有人认领这个 Issue。

enhancement
主要语言
Python
星标
86
派生
13
PR 合并指标
30 天内没有已合并 PR

描述

Every time I'm trying to build python with all modules it failing on tkinter.
Main reason is missing libx11-dev package but even if I install libx11-dev package it's still failing because of "1 problematic" issue with tkinter.

INFO Symlink build/cpython-3.9.12/ppp-marker/3.9.12/lib/python3.9/config-3.9-x86_64-linux-gnu/libpython3.9.a <- build/cpython-3.9.12/ppp-marker/3.9.12/lib/libpython3.9.a
        prefix  build/cpython-3.9.12/ppp-marker/3.9.12
          _bz2  _bz2*.so
       _ctypes  1.1.0 _ctypes*.so
       _curses  2.2 _curses*.so
          _dbm  _dbm*.so
      _decimal  1.70 _decimal*.so
         _gdbm  1.23.0 _gdbm*.so
         _lzma  _lzma*.so
      _sqlite3  3.42.0 _sqlite3*.so
          _ssl  OpenSSL 1.1.1u  30 May 2023 _ssl*.so
      _tkinter  *absent* None
         _uuid  _uuid*.so
           pip  23.1.2 lib/python3.9/site-packages/pip
       pyexpat  2.4.7 pyexpat*.so
      readline  8.2 readline*.so
    setuptools  *absent* build/cpython-3.9.12/ppp-marker/3.9.12/lib/python3.9/distutils/core.py
          zlib  1.2.13 zlib*.so
  libpython*.a  54 MB lib/libpython3.9.a lib/python3.9/config-3.9-x86_64-linux-gnu/libpython3.9.a
 libpython*.so  -not used-
  install size  123 MB
ERROR Build failed: 
-- 1 problematic
_tkinter*_failed.so
INFO Compiling cpython took 3 minutes 32 seconds
INFO Overall compilation took 5 minutes 5 seconds

Used command:
portable-python -c portable-python.yml build 3.9.12 -m libffi,zlib,xz,bzip2,readline,openssl,sqlite,bdb,gdbm,uuid,tkinter

Tested in docker with and without installed libx11-dev packages.

Build without libx11-dev:
13-tk.log

Build with installed libx11-dev:
13-tk.log

贡献指南

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

从这里开始

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

调研方向

首先比较附带的两个 13-tk.log 构建结果,然后分别在安装和未安装 libx11-dev 的情况下重现针对 Python 3.9.12 所示的 portable-python 命令。追踪 _tkinter 被报告为缺失或失败的原因;在所示配置中成功构建 tkinter 模块即表示完成。

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

评估

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

把新 issue 发到你的邮箱

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