binary-husky / binary-husky/gpt_academic
[Bug]: 使用终端运行的时候自动更新程序会无法运行
- Dominant language
- Python
- Stars
- 71.4k
- Forks
- 8.3k
- PR merge metrics
- No merged PRs in 30d
Description
### Installation Method | 安装方法与平台
OneKeyInstall (一键安装脚本-windows)
### Version | 版本
Latest | 最新版
### OS | 操作系统
Windows
### Describe the bug | 简述
我发现在终端powershell调用conda的python来运行main进程的时候,自动更新程序会发生报错,但是不显示报错信息
于是我在程序中加入了显示报错,发现对同目录下的version文件的打开会发生报错,即路径指定不可用,具体见截图
当我使用os来指定路径的时候解决
另外,建议一下,自动更新的配置写入config中,这样不需要每次运行程序来指定
### Screen Shot | 有帮助的截图


### Terminal Traceback & Material to Help Reproduce Bugs | 终端traceback(如有) + 帮助我们复现的测试材料样本(如有)
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue on Windows by launching the main process through PowerShell with Conda's Python, then inspect the automatic updater's access to the version file in the same directory. Confirm the path failure and verify that the updater runs successfully with a resolved path. Treat the request to move update settings into config as a separate scope decision.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100