有没有人在WSL下成功体验过EAF?

我是想知道你遇到的这个问题在WSL 1上面也出现了?

我没用wsl试过

你遇到的问题修好了吗?

没有啊。。。

Windows上用个Emacs真是折腾,唉

我只想问一下wsl下的ubuntu依赖总是装不上,尤其是python-dbus

wsl2 emacs 安装eaf卡在这里,有大佬遇到过这个问题吗?

Traceback (most recent call last):
  File "/usr/share/nodejs/node-gyp/gyp/gyp_main.py", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3254, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3237, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3266, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 584, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 901, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 787, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'gyp==0.1' distribution was not found and is required by the application
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/nodejs/node-gyp/lib/configure.js:355:16)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.19.128-microsoft-standard
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/jacklisp/soft/emacs-application-framework/app/terminal/node_modules/node-pty
gyp ERR! node -v v10.19.0
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok
npm WARN [email protected] No description

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jacklisp/.npm/_logs/2021-01-25T03_47_18_995Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `(cd app/js-video-player && npm install); (cd app/mermaid && npm install); (cd app/terminal && npm install)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jacklisp/.npm/_logs/2021-01-25T03_47_19_011Z-debug.log

依赖没装好吧。

确实,npm 那里依赖有问题,还是先用Windows下的吧

搞定了,要装python2.7 才行,加一条命令ok

sudo apt install -y make python build-essential

eaf可以使用,可以打开pdf,可以将office文件转换成pdf来看 没法打开浏览器,我估计是wsl的网络浏览器模块有问题 evil用户要进入insert-mode才能对eaf的相关buffer进行操作 因为经过xserver,会稍微有一点点延迟 另外,wsl 下的gcceamcs可以使用eaf 其他的继续摸索…

eaf代码是用python3语法写的,部分代码会不兼容python 2.7

Wsl1不支持eaf的浏览器,缺乏必要的底层实现。wsl2没问题。

我也搞不清楚,主要是安装的时候,npm install那里 node-pty 安装不上,只有 根据 https://www.npmjs.com/package/node-pty 安装依赖

npm install

才通过,估计是包依赖python2.x?

我可以明确告诉你eaf需要python3,怕你走弯路。

我不用windows,windows平台只能靠大家折腾,我来合并补丁了。

另外一个帖子很多人已经在windows跑起来eaf了,可以请教下windows大神

想请教一下你wsl2是怎么配置的?我用eaf-open-browser 输入url后一片白:

你看看 *eaf* buffer里面有没有报错。

错误如下:

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-jacklisp'
EAF process starting...
Session is not restored, as no data present in session file.
[5645:5681:0126/111427.248446:ERROR:context_group.cc(274)] ContextResult::kFatalFailure: too few texture units supported (0, should be 8).
[5645:5681:0126/111427.259828:ERROR:context_group.cc(274)] ContextResult::kFatalFailure: too few texture units supported (0, should be 8).
[5645:5681:0126/111427.269138:ERROR:context_group.cc(274)] ContextResult::kFatalFailure: too few texture units supported (0, should be 8).
[5645:5681:0126/111427.278611:ERROR:context_group.cc(274)] ContextResult::kFatalFailure: too few texture units supported (0, should be 8).
[5645:5681:0126/111427.288080:ERROR:context_group.cc(274)] ContextResult::kFatalFailure: too few texture units supported (0, should be 8).
[5645:5681:0126/111427.297126:ERROR:context_group.cc(274)] ContextResult::kFatalFailure: too few texture units supported (0, should be 8).
[5645:5681:0126/111427.306707:ERROR:context_group.cc(274)] ContextResult::kFatalFailure: too few texture units supported (0, should be 8).
[5645:5681:0126/111427.315411:ERROR:context_group.cc(274)] ContextResult::kFatalFailure: too few texture units supported (0, should be 8).
[5645:5681:0126/111427.324727:ERROR:context_group.cc(274)] ContextResult::kFatalFailure: too few texture units supported (0, should be 8).
[5645:5681:0126/111427.335023:ERROR:context_group.cc(274)] ContextResult::kFatalFailure: too few texture units supported (0, should be 8).
[5645:5681:0126/111427.413257:ERROR:context_group.cc(274)] ContextResult::kFatalFailure: too few texture units supported (0, should be 8).
[5645:5681:0126/111427.578930:ERROR:context_group.cc(274)] ContextResult::kFatalFailure: too few texture units supported (0, should be 8).
[5645:5681:0126/111427.697522:ERROR:context_group.cc(274)] ContextResult::kFatalFailure: too few texture units supported (0, should be 8).
[5645:5681:0126/111427.728674:ERROR:context_group.cc(274)] ContextResult::kFatalFailure: too few texture units supported (0, should be 8).
[5645:5681:0126/111427.740790:ERROR:context_group.cc(274)] ContextResult::kFatalFailure: too few texture units supported (0, should be 8).
[5645:5681:0126/111427.756396:ERROR:context_group.cc(274)] ContextResult::kFatalFailure: too few texture units supported (0, should be 8).
[5645:5681:0126/111427.776063:ERROR:context_group.cc(274)] ContextResult::kFatalFailure: too few texture units supported (0, should be 8).
[5645:5681:0126/111427.789061:ERROR:context_group.cc(274)] ContextResult::kFatalFailure: too few texture units supported (0, should be 8).
[5645:5681:0126/111427.801628:ERROR:context_group.cc(274)] ContextResult::kFatalFailure: too few texture units supported (0, should be 8).
js: A parser-blocking, cross site (i.e. different eTLD+1) script, https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/bundles/polyfill_9354efa.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
js: A parser-blocking, cross site (i.e. different eTLD+1) script, https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/bundles/polyfill_9354efa.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
js: A parser-blocking, cross site (i.e. different eTLD+1) script, https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/global/js/all_async_search_d399f77.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
[5645:5681:0126/111427.877956:ERROR:context_group.cc(274)] ContextResult::kFatalFailure: too few texture units supported (0, should be 8).
js: Uncaught TypeError: MutationObserver is not a constructor

大佬知道怎么解决吗?

其他应用能正常打开吗?比如demo和pdf。

Wsl2下面对eaf来说没什么特殊设置,跟Linux上面一样就行了。倒是wsl2本身,你要查查,你这个问题看着像是网络没设置好。

demo 和 pdf 都可以打开,我再自己查查吧,应该是安装的问题,谢谢了

这里是装npm依赖时需要python27,依赖用了node-gyp :grinning: