Closed zw963 closed 3 years ago
下面是 eaf 错误提示:
当运行 eaf-browser 的时候:
[EAF/browser] Opening http://www.baidu.com
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Traceback (most recent call last):
File "/home/zw963/Dropbox/common/.emacs.d/plugins/emacs-application-framework/eaf/core/utils.py", line 60, in on_signal_received
self._func(obj, *args, **kwargs)
File "/home/zw963/Dropbox/common/.emacs.d/plugins/emacs-application-framework/eaf/eaf.py", line 170, in new_buffer
self.create_buffer(buffer_id, url, module_path, arguments)
File "/home/zw963/Dropbox/common/.emacs.d/plugins/emacs-application-framework/eaf/eaf.py", line 187, in create_buffer
app_buffer = module.AppBuffer(buffer_id, url, arguments)
File "/home/zw963/Dropbox/common/.emacs.d/plugins/emacs-application-framework/eaf/app/browser/buffer.py", line 79, in __init__
self.buffer_widget.dark_mode_js = open(os.path.join(os.path.dirname(__file__),
FileNotFoundError: [Errno 2] No such file or directory: '/home/zw963/Dropbox/common/.emacs.d/plugins/emacs-application-framework/eaf/app/browser/node_modules/darkreader/darkreader.js'
Process *eaf* aborted (core dumped)
当运行 terminal 时.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
127.0.0.1 - - [11/Sep/2021 22:15:21] "GET /index.html HTTP/1.1" 200 -
Session is not restored, as /home/zw963/.emacs.d/eaf/session.json cannot be found.
127.0.0.1 - - [11/Sep/2021 22:15:21] code 404, message File not found
127.0.0.1 - - [11/Sep/2021 22:15:21] "GET /node_modules/xterm-addon-search/lib/xterm-addon-search.js HTTP/1.1" 404 -
127.0.0.1 - - [11/Sep/2021 22:15:21] code 404, message File not found
127.0.0.1 - - [11/Sep/2021 22:15:21] "GET /node_modules/xterm-addon-web-links/lib/xterm-addon-web-links.js HTTP/1.1" 404 -
127.0.0.1 - - [11/Sep/2021 22:15:21] "GET /dark_theme.js HTTP/1.1" 200 -
127.0.0.1 - - [11/Sep/2021 22:15:21] code 404, message File not found
127.0.0.1 - - [11/Sep/2021 22:15:21] "GET /node_modules/xterm/lib/xterm.js HTTP/1.1" 404 -
127.0.0.1 - - [11/Sep/2021 22:15:21] code 404, message File not found
127.0.0.1 - - [11/Sep/2021 22:15:21] "GET /node_modules/xterm-addon-attach/lib/xterm-addon-attach.js HTTP/1.1" 404 -
127.0.0.1 - - [11/Sep/2021 22:15:21] code 404, message File not found
127.0.0.1 - - [11/Sep/2021 22:15:21] "GET /node_modules/xterm/css/xterm.css HTTP/1.1" 404 -
127.0.0.1 - - [11/Sep/2021 22:15:21] code 404, message File not found
127.0.0.1 - - [11/Sep/2021 22:15:21] "GET /node_modules/xterm-addon-fit/lib/xterm-addon-fit.js HTTP/1.1" 404 -
127.0.0.1 - - [11/Sep/2021 22:15:21] code 404, message File not found
127.0.0.1 - - [11/Sep/2021 22:15:21] "GET /node_modules/xterm-addon-search/lib/xterm-addon-search.js HTTP/1.1" 404 -
127.0.0.1 - - [11/Sep/2021 22:15:21] code 404, message File not found
127.0.0.1 - - [11/Sep/2021 22:15:21] "GET /node_modules/xterm-addon-web-links/lib/xterm-addon-web-links.js HTTP/1.1" 404 -
127.0.0.1 - - [11/Sep/2021 22:15:21] code 404, message File not found
127.0.0.1 - - [11/Sep/2021 22:15:21] "GET /node_modules/xterm/css/xterm.css HTTP/1.1" 404 -
Uncaught ReferenceError: Terminal is not defined
WebSocket connection to 'ws://127.0.0.1:57153/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
Create session file /home/zw963/.emacs.d/eaf/session.json
Traceback (most recent call last):
File "/home/zw963/Dropbox/common/.emacs.d/plugins/emacs-application-framework/eaf/core/utils.py", line 60, in on_signal_received
self._func(obj, *args, **kwargs)
File "/home/zw963/Dropbox/common/.emacs.d/plugins/emacs-application-framework/eaf/eaf.py", line 250, in update_views
view = View(self.buffer_dict[buffer_id], view_info)
KeyError: '9ff7-0164-b8b5-be93-547a-7867-73b2'
Process *eaf* aborted (core dumped)
很明显,因为我在安装下面这一步的时候意外出错了,结果它跳过了后面的所有安装 node 依赖的步骤。
[EAF] Installing dependencies for installed applications
[EAF] Installing system dependencies
[EAF] Running sudo pacman -Sy --noconfirm python-qrcode aria2 python-qrcode filebrowser-bin fd python-qrcode python-qtconsole python-markdown taglib @ /home/zw963/Dropbox/common/.emacs.d/plugins/emacs-application-framework/eaf
:: Synchronizing package databases...
core.db failed to download
error: failed retrieving file 'core.db' from mirrors.bfsu.edu.cn : OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to mirrors.bfsu.edu.cn:443
error: failed to synchronize all databases (download library error)
我不得不手动删除整个 app 文件夹,来让那些丢失的步骤重新运行。
用代理来修复你的网络问题吧,网络出错下载到一半,python没法探测到里下载到一半挂的问题。
当时失败的错误信息:
然后再次运行时,就直接跳过了上面的步骤,直接提示安装成功,但是其实这些包根本没有安装。
我稍后不得不手动安装这些依赖。
所以,其实,我并不知道是不是完整的安装了所有依赖,现在的结果是,eaf-demo,eaf-camera 可用,eaf-browser, eaf-terminal 测试了一下还是无法使用。