binary-husky / binary-husky/gpt_academic

[Bug]: multi_language.py translate error

Open
#1,935 3 comments 0 reactions 0 assignees View on GitHub
Stale
Dominant language
Python
Stars
71.3k
Forks
8.3k
PR merge metrics
No merged PRs in 30d

Description

### Installation Method | 安装方法与平台

Please choose | 请选择

### Version | 版本

Please choose | 请选择

### OS | 操作系统

Please choose | 请选择

### Describe the bug | 简述

i got this error when i run script: multi_language.py", line 352, in step_1_core_key_translate
chinese_core_keys_norepeat_mapping.update({k:cached_translation[k]})
~~~~~~~~~~~~~~~~~~^^^
KeyError: '注释Python项目'

### Screen Shot | 有帮助的截图

i got this error when i run script: multi_language.py", line 352, in step_1_core_key_translate
chinese_core_keys_norepeat_mapping.update({k:cached_translation[k]})
~~~~~~~~~~~~~~~~~~^^^
KeyError: '注释Python项目'

### Terminal Traceback & Material to Help Reproduce Bugs | 终端traceback(如有) + 帮助我们复现的测试材料样本(如有)

i got this error when i run script: multi_language.py", line 352, in step_1_core_key_translate
chinese_core_keys_norepeat_mapping.update({k:cached_translation[k]})
~~~~~~~~~~~~~~~~~~^^^
KeyError: '注释Python项目'

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in multi_language.py at step_1_core_key_translate around line 352 and trace how cached_translation is populated before the lookup for '注释Python项目'. Reproduce the reported KeyError if possible, then verify that translation processing handles this missing key without failing and add coverage for the case.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
internationalization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.