binary-husky / binary-husky/gpt_academic
[Bug]: 配置报错
- Dominant language
- Python
- Stars
- 71.3k
- Forks
- 8.3k
- PR merge metrics
- No merged PRs in 30d
Description
### Installation Method | 安装方法与平台
Pip Install (I ignored requirements.txt)
### Version | 版本
Latest | 最新版
### OS | 操作系统
Windows
### Describe the bug | 简述
PS D:\software\gpt_academic-master> python main.py
Traceback (most recent call last):
File "D:\software\gpt_academic-master\main.py", line 371, in
main()
File "D:\software\gpt_academic-master\main.py", line 28, in main
import gradio as gr
File "D:\Python 3.10\lib\site-packages\gradio\__init__.py", line 3, in
import gradio.components as components
File "D:\Python 3.10\lib\site-packages\gradio\components.py", line 56, in
from gradio.blocks import Block, BlockContext
File "D:\Python 3.10\lib\site-packages\gradio\blocks.py", line 26, in
from gradio import (
File "D:\Python 3.10\lib\site-packages\gradio\networking.py", line 17, in
from gradio.routes import App
File "D:\Python 3.10\lib\site-packages\gradio\routes.py", line 48, in
from gradio.helpers import EventData
File "D:\Python 3.10\lib\site-packages\gradio\helpers.py", line 17, in
import matplotlib.pyplot as plt
File "D:\Python 3.10\lib\site-packages\matplotlib\pyplot.py", line 2230, in
switch_backend(rcParams["backend"])
File "D:\Python 3.10\lib\site-packages\matplotlib\__init__.py", line 672, in __getitem__
plt.switch_backend(rcsetup._auto_backend_sentinel)
File "D:\Python 3.10\lib\site-packages\matplotlib\pyplot.py", line 247, in switch_backend
switch_backend(candidate)
File "D:\Python 3.10\lib\site-packages\matplotlib\pyplot.py", line 267, in switch_backend
class backend_mod(matplotlib.backend_bases._Backend):
File "D:\Python 3.10\lib\site-packages\matplotlib\pyplot.py", line 268, in backend_mod
locals().update(vars(importlib.import_module(backend_name)))
File "D:\Python 3.10\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "D:\Python 3.10\lib\site-packages\matplotlib\backends\backend_qtagg.py", line 12, in
from .backend_qt import (
File "D:\Python 3.10\lib\site-packages\matplotlib\backend
File "D:\Python 3.10\lib\site-packages\matplotlib\pyplot.py", line 247, in switch_backend
switch_backend(candidate)
File "D:\Python 3.10\lib\site-packages\matplotlib\pyplot.py", line 267, in switch_backend
class backend_mod(matplotlib.backend_bases._Backend):
File "D:\Python 3.10\lib\site-packages\matplotlib\pyplot.py", line 268, in backend_mod
locals().update(vars(importlib.import_module(backend_name)))
File "D:\Python 3.10\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "D:\Python 3.10\lib\site-packages\matplotlib\backends\backend_qtagg.py", line 12, in
from .backend_qt import (
File "D:\Python 3.10\lib\site-packages\matplotlib\backends\backend_qt.py", line 73, in
_MODIFIER_KEYS = [
File "D:\Python 3.10\lib\site-packages\matplotlib\backends\backend_qt.py", line 74, in
(_to_int(getattr(_enum("QtCore.Qt.KeyboardModifier"), mod)),
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'KeyboardModifier'
PS D:\software\gpt_academic-master>
### Screen Shot | 有帮助的截图
我复制代码了
### Terminal Traceback & Material to Help Reproduce Bugs | 终端traceback(如有) + 帮助我们复现的测试材料样本(如有)
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at main.py line 28 and compare the installation described with requirements.txt, then follow the traceback through Gradio and matplotlib on Windows. Reproduce the failure with the reported Python 3.10 setup; done means the application starts without this import-time TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- matplotlib, python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100