AssertionError in make_module_translation_map
オープン
まだ誰も着手していません。
crash
topic-mypyc
- 主要言語
- Python
- スター
- 20.6k
- フォーク
- 3.3k
- PR マージ指標
- PR 指標を取得中
説明
Crash Report
mypyc asserted on specific directory.
Traceback
mypyc subtasks --show-traceback
Traceback (most recent call last):
File "/tmp/ttrt/build/setup.py", line 5, in <module>
ext_modules=mypycify(['subtasks', '--show-traceback'], opt_level="3", debug_level="1"),
File "mypyc/build.py", line 525, in mypycify
File "mypyc/build.py", line 435, in mypyc_build
File "mypyc/build.py", line 243, in generate_c
File "mypyc/codegen/emitmodule.py", line 425, in compile_modules_to_c
File "mypyc/codegen/emitmodule.py", line 292, in compile_ir_to_c
File "mypyc/namegen.py", line 50, in __init__
File "mypyc/namegen.py", line 106, in make_module_translation_map
AssertionError: ['subtasks', 'subtasks.subtasks']
To Reproduce
cd /tmp/
mkdir ttrt
mkdir subtasks
touch subtasks/subtasks.py
mypyc subtasks # this works
touch subtasks/__init__.py
mypyc subtasks --show-traceback # this fails
Your Environment
mypyc -V
mypy 1.9.0 (compiled: yes)
python -V
Python 3.9.18
python is in venv
Linux Mint 21.1 Vera
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Reproduce the failure with the directory layout and commands in the issue, then inspect mypyc/namegen.py around make_module_translation_map and the callers in mypyc/codegen/emitmodule.py. Confirm the fix by rerunning mypyc subtasks --show-traceback with subtasks/init.py present and checking that the assertion no longer occurs.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- compilers
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 35/100