selfteaching / selfteaching/selfteaching-python-camp
Day13 WARNING: QApplication was not created in the main() thread.
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 151
- Forks
- 875
- PR merge metrics
- No merged PRs in 30d
Description
今天被这个错误卡了几个小时:
WARNING: QApplication was not created in the main() thread.
试了统计词频步骤没错,生成图片没错,登录微信获取消息也没错。
最后发现应该是引用函数中保存的图片出错了。
问题可能出在两个地方:
1、main()这个函数里不能引用xxxx(x,y)这样的有两个值的函数,导致错误;
2、保存的图片没有被main里面的语句正确引用。
详细问题待我再模拟下错误。后续回复到留言里。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Day13 flow described in the issue: word-frequency statistics, image generation, and WeChat message retrieval. Inspect the main() function and the referenced image-saving function; the issue is complete only when the QApplication warning is reproducible, its cause is identified, and the required correction is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100