eaf可以windows.安装吗

eaf 可以windows安装吗?eaf插件可以下到本地安装吗?

1 个赞

没问题,本人winserver2022,scoop安装的eaf。现在最好先用qt5-legacy branch,qt6在win上暂时有些问题,不知道现在修没修复呢~

你好,我是按照EAF Github上的指南,使用install-eaf.py安装,这个脚本目前默认安装的是PyQt6。脚本正常执行完,没有报错,启动emacs尝试用eaf打开网页,可以看到eaf的错误信息:

qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: minimal, offscreen, windows.


Process *eaf* exited abnormally with code 9

再次运行脚本重新安装依赖,脚本的输出是:

PS D:\emacs_home\.emacs.d\site-lisp\emacs-application-framework> python .\install-eaf.py --install-core-deps
[EAF] ------------------------------------------
[EAF] Installing core dependencies
[EAF] Running pip install --user -U epc lxml PyQt6==6.2.0 PyQt6-Qt6==6.2.0 PyQt6-sip==13.3.1 PyQt6-WebEngine==6.2.0 PyQt6-WebEngine-Qt6==6.2.0 @ D:\emacs_home\.emacs.d\site-lisp\emacs-application-framework
Requirement already satisfied: epc in c:\users\administrator\appdata\roaming\python\python310\site-packages (0.0.5)
Requirement already satisfied: lxml in c:\users\administrator\appdata\roaming\python\python310\site-packages (4.8.0)
Requirement already satisfied: PyQt6==6.2.0 in c:\users\administrator\appdata\roaming\python\python310\site-packages (6.2.0)
Requirement already satisfied: PyQt6-Qt6==6.2.0 in c:\users\administrator\appdata\roaming\python\python310\site-packages (6.2.0)
Requirement already satisfied: PyQt6-sip==13.3.1 in c:\users\administrator\appdata\roaming\python\python310\site-packages (13.3.1)
Requirement already satisfied: PyQt6-WebEngine==6.2.0 in c:\users\administrator\appdata\roaming\python\python310\site-packages (6.2.0)
Requirement already satisfied: PyQt6-WebEngine-Qt6==6.2.0 in c:\users\administrator\appdata\roaming\python\python310\site-packages (6.2.0)
Requirement already satisfied: sexpdata>=0.0.3 in c:\users\administrator\appdata\roaming\python\python310\site-packages (from epc) (0.0.3)
[EAF] Finished installing core dependencies
[EAF] ------------------------------------------
[EAF] install-eaf.py finished.

[EAF] Please run 'git pull ; ./install-eaf.py' (M-x eaf-install-and-update) to update EAF, applications and their dependencies.

现在不知道该如何解决了,对QT并不熟悉。

  1. eaf.el中包含setenv 什么xcb的那行删掉
  2. pip install --user pygetwindow packaging

然后就可以试试,不过除了eaf-browser,大概率会有问题

2 个赞

现在EAF的qt6分支可以在windows安装

1 个赞

您能给看看咱上面贴的问题是咋回事吗?安装脚本表示依赖没问题,但是程序一跑就报QT的错。

见我上面的描述。。。

你打开 eaf-enable-debug 这个选项,看看具体报啥错?

试了您的方法,确实能把browser运行起来,terminal,org-previewer也行,但是pdf-viewer和system-monitor就不行了。pdf-viewer打开pdf文件后反回错误码29。system-monitor返回错误码9。还有个问题就是org-preview的时候,每次保存org文件后emacs就失去了焦点,还要手动再切回来……

Traceback (most recent call last): File “”, line 3, in Modu - Pastebin.com 贴在这里了

前阵子还在windows上装过,一般存在的坑可能是:没有安装完依赖和使用了应用商店里的python

依赖安装全靠脚本;python的话,是choco安装的。

那可能是不是没有安装npm

PS C:\Users\Administrator> npm --version
8.5.1
PS C:\Users\Administrator> node --version
v16.15.0
PS C:\Users\Administrator>

一开始node的版本是17.+,然后装依赖的时候有一个什么digital envelope的错误,查到要降到16.+版本才能解决。

昨天从QT5升级到QT6也遇到了这个问题。

环境变量中打开QT日志,eaf buffer 日志显示如下:

qt.core.plugin.factoryloader: checking directory path "C:/Users/Yanyang/AppData/Roaming/Python/Python310/site-packages/PyQt6/Qt6/plugins/platforms" ...
qt.core.plugin.factoryloader: looking at "C:/Users/Yanyang/AppData/Roaming/Python/Python310/site-packages/PyQt6/Qt6/plugins/platforms/qminimal.dll"
qt.core.plugin.loader: Found metadata in lib C:/Users/Yanyang/AppData/Roaming/Python/Python310/site-packages/PyQt6/Qt6/plugins/platforms/qminimal.dll, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "archlevel": 0,
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 393984
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimal")
qt.core.plugin.factoryloader: looking at "C:/Users/Yanyang/AppData/Roaming/Python/Python310/site-packages/PyQt6/Qt6/plugins/platforms/qoffscreen.dll"
qt.core.plugin.loader: Found metadata in lib C:/Users/Yanyang/AppData/Roaming/Python/Python310/site-packages/PyQt6/Qt6/plugins/platforms/qoffscreen.dll, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "archlevel": 0,
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 393984
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("offscreen")
qt.core.plugin.factoryloader: looking at "C:/Users/Yanyang/AppData/Roaming/Python/Python310/site-packages/PyQt6/Qt6/plugins/platforms/qwindows.dll"
qt.core.plugin.loader: Found metadata in lib C:/Users/Yanyang/AppData/Roaming/Python/Python310/site-packages/PyQt6/Qt6/plugins/platforms/qwindows.dll, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "windows"
        ]
    },
    "archlevel": 0,
    "className": "QWindowsIntegrationPlugin",
    "debug": false,
    "version": 393984
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("windows")
qt.core.plugin.factoryloader: checking directory path "C:/Users/Yanyang/AppData/Local/Programs/Python/Python310/platforms" ...
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: minimal, offscreen, windows.


Process *eaf* exited abnormally with code 9

日志显示QT启动时加载完 minimal offscreen windows 这三个库之后,加载 xcb 库时报错了。

首先 AppData/Local/Programs/Python/Python310/platforms/ 这个路径就不存在,然后是我没查到windows系统下的xcb库具体是哪个包提供的(这个问题Ubuntu系统报的比较多)。

根据上述方法,注释掉eaf.el文件中 (setenv "QT_QPA_PLATFORM" "xcb") 行,的确能运行起来部分插件,但 org-previewer 保存时会丢失焦点,搭配 auto-save 基本没有使用体验,然后 eaf-git 启动不了 :sob:

eaf的最佳使用体验还是linux+gnome 没这些事。

xcb 的问题,下面这行去掉。

(setenv "QT_QPA_PLATFORM" "xcb")

请更新吧,默认只在 Linux 平台设置 XCB

我感觉帖子标题是「盲打」出来的。