Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[已解决] [Bug] 更新后不能启动 #1466

Closed
3 of 4 tasks
hoody4032 opened this issue Apr 22, 2024 · 16 comments
Closed
3 of 4 tasks

[已解决] [Bug] 更新后不能启动 #1466

hoody4032 opened this issue Apr 22, 2024 · 16 comments
Labels
bug Something isn't working

Comments

@hoody4032
Copy link

Please search before asking

  • I searched in the issues and found nothing similar.

Please read README

  • I have read the troubleshooting section in the README in detail.

Please check your network and OpenAI API quota

  • I am sure it is not a network issue or an OpenAI API quota issue.

OpenAI Translator version

v0.3.49

Model name

chatgpt4

系统/浏览器版本 System/Browser version

Win11 version 22H2

复现步骤 Reproduce step

When I started the tool, it popped up a dialog with following error.
image

Microsoft Edge can't read and write to its data directory:

C:\Program Files\OpenAl Translator\am Files
(x86)\Microsoft\EdgeWebView\Application\123.0.2420.97\EBWe
bView

你看到了什么错误?What errors do you see?

Microsoft Edge can't read and write to its data directory:

C:\Program Files\OpenAl Translator\am Files
(x86)\Microsoft\EdgeWebView\Application\123.0.2420.97\EBWe
bView

你期望看到什么?What did you expect to see?

no this popped up dialog

还有其他的内容吗?Anything else?

No response

你是否愿意提交一份 PR 来修改这个错误?Are you willing to submit a PR?

  • 我愿意提供 PR! I'm willing to submit a PR!
@hoody4032 hoody4032 added the bug Something isn't working label Apr 22, 2024
@Mosney
Copy link

Mosney commented Apr 22, 2024

---------------------------
无法创建数据目录
---------------------------
Microsoft Edge 无法读取和写入其数据目录:

        C:\Program Files\OpenAI Translator\soft\EdgeUpdate\ClientState\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}\EBWebView
---------------------------
确定   
---------------------------
---------------------------
无法创建数据目录
---------------------------
Microsoft Edge 无法读取和写入其数据目录:

        C:\Program Files\OpenAI Translator\am Files (x86)\Microsoft\EdgeWebView\Application\123.0.2420.97\EBWebView
---------------------------
确定   
---------------------------

Similar here

@yetone
Copy link
Collaborator

yetone commented Apr 22, 2024

被 Windows Defender 误杀导致的, 请下载这个版本 *_x64-setup.exe 重新安装

@Mosney
Copy link

Mosney commented Apr 22, 2024

我没有使用defender,看了看杀毒软件日志也确实没有删除过文件,看了一下似乎压根没有softam Files (x86)这两个目录

❯ tree /f "C:\Program Files\OpenAI Translator"

C:\PROGRAM FILES\OPENAI TRANSLATOR
│  OpenAI Translator.exe
│  Uninstall OpenAI Translator.lnk
│
└─resources
    │  backspace.applescript
    │  copy.applescript
    │  get-selected-text-by-ax.applescript
    │  get-selected-text.applescript
    │  left.applescript
    │  paste.applescript
    │  right.applescript
    │  select-all.applescript
    │
    └─bin
            ocr_apple
            ocr_intel

@yetone
Copy link
Collaborator

yetone commented Apr 22, 2024

@Mosney 重新安装 *_x64-setup.exe 版本的可以正常启动吗?

@Mosney
Copy link

Mosney commented Apr 22, 2024

@Mosney 重新安装 *_x64-setup.exe 版本的可以正常启动吗?

确实只在MSI安装包出现,exe安装包是没有问题的,
另外上面的两个弹窗都是Edge webview发起的,执行文件路径为
"C:\Program Files (x86)\Microsoft\EdgeWebView\Application\123.0.2420.97\msedgewebview2.exe"

@Mosney
Copy link

Mosney commented Apr 22, 2024

确实只在MSI安装包出现,exe安装包是没有问题的,

可能区别在于exe默认安装到用户目录下%USERPROFILE%\AppData\Local\OpenAI Translator,MSI会安装给所有用户C:\Program Files\OpenAI Translator

@Mosney
Copy link

Mosney commented Apr 22, 2024

看了一下好像是缺失文件,exe安装完后目录是这样的,存在上述的两个目录:

❯ dir

    Directory: C:\Users\user\AppData\Local\OpenAI Translator

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----    2024.4.23 星期二     0:10                am Files (x86)
d----    2024.4.23 星期二     0:10                resources
d----    2024.4.23 星期二     0:10                soft
-a---    2024.4.22 星期一    22:56       28610048 OpenAI Translator.exe
-a---    2024.4.23 星期二     0:10         509115 uninstall.exe

@yetone
Copy link
Collaborator

yetone commented Apr 22, 2024

应该是 Tauri 的打包器坏了,我去他们那看看有没有相关 issue

@Mosney
Copy link

Mosney commented Apr 22, 2024

@yetone 但是现在的问题是MSI根本不能正常工作,自动更新的话手动更也没什么

@yetone
Copy link
Collaborator

yetone commented Apr 22, 2024

@Mosney 正在修复 .msi 的问题,下一个版本会好

@yetone
Copy link
Collaborator

yetone commented Apr 22, 2024

@Mosney 经过实验,发现 .msi 已经无药可救了,我已经彻底放弃了 .msi 安装包,接下来只会提供 .exe 的安装包,而且无法更新的问题也一并彻底解决了!

@yetone
Copy link
Collaborator

yetone commented Apr 22, 2024

如果你以前是用 .msi 安装包安装的,大家请手动卸载 OpenAI Translator,然后下载并安装最新版的 OpenAI Translator .exe 安装包!

@pretenderlu
Copy link

我卸载后重新安装exe也报错,是不是路径还得自己改一下

@Jinying-Tang
Copy link

我卸载后重新安装exe也报错,是不是路径还得自己改一下
我也是安装在原来的路径,确实还是不行,后来换个路径就好了,很奇怪

@yetone
Copy link
Collaborator

yetone commented Apr 23, 2024

我卸载后重新安装exe也报错,是不是路径还得自己改一下

你安装的是 0.4.0 的 .exe 吗?我刚刚完全卸载重试了一下,没发现问题

@Jinying-Tang
Copy link

我卸载后重新安装exe也报错,是不是路径还得自己改一下

你安装的是 0.4.0 的 .exe 吗?我刚刚完全卸载重试了一下,没发现问题

是的,刚试了下,我原来是安装在c:\program files下的, 把原来的安装uninstall后,再安装在这个目录下,安装目录下没有soft目录,我又uninstall后再安装到默认的app data下,就可以了

@yetone yetone pinned this issue Apr 23, 2024
@yetone yetone changed the title [Bug] 更新后不能启动 [已解决] [Bug] 更新后不能启动 Apr 23, 2024
@yetone yetone closed this as completed Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants