从今天开始,Emacs里面可以运行任何你想要的程序 (Linux & Windows & Mac & BSD)

更新了一下doom eamcs后不知道为啥突然eaf就不能用了,而且还提示缺少很多和pyqt相关的库,重新安装后就这样了。 M-x eaf-open 打开文件立马就崩溃

emacs -Q测试下

请问在archlinux下使用eaf会出现eafbuffer的位置偏移问题, 应该怎么解决? emacs -q时也会偏移. 我是完全按照github的安装步骤安装的

现在不支持emacs pgtk

谢谢回复,我重新编译了个emacs已经没问题了.

如果未来想要卸载eaf,有没有一种完全卸载的方法?(包括那些外部应用).

把eaf目录全部删除即可。

1 个赞

安装了 eaf,但出现如下报错,说 CPU 类型不对。

我用 m1 MacBook,macOS,按照 readme 里的 macOS 的安装方法。在终端里输入如下命令安装:

arch -x86_64 python3 ./install-eaf.py

1 个赞

已经可以正常地用 eaf 打开浏览网页,但无法调用 eaf-pdf-viewer。

我看了一下,看上去是无法引入 fitz 模组:

Traceback (most recent call last): File “/Users/chenyibin/.emacs.d/elpa/eaf/core/utils.py”, line 51, in on_signal_received self._func(obj, *args, **kwargs) File “/Users/chenyibin/.emacs.d/elpa/eaf/eaf.py”, line 153, in new_buffer self.create_buffer(buffer_id, url, module_path, arguments) File “/Users/chenyibin/.emacs.d/elpa/eaf/eaf.py”, line 168, in create_buffer spec.loader.exec_module(module) File “”, line 883, in exec_module File “”, line 241, in _call_with_frames_removed File “/Users/chenyibin/.emacs.d/elpa/eaf/app/pdf-viewer/eaf_pdf_buffer.py”, line 26, in import fitz ModuleNotFoundError: No module named ‘fitz’

但我已经从 pip install fitz,而且已经成功了:

(base) [email protected] eaf % pip install fitz Requirement already satisfied: fitz in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (0.0.1.dev2) Requirement already satisfied: configparser in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from fitz) (5.3.0) Requirement already satisfied: nibabel in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from fitz) (4.0.2) Requirement already satisfied: nipype in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from fitz) (1.8.4) Requirement already satisfied: scipy in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from fitz) (1.7.3) Requirement already satisfied: numpy in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from fitz) (1.21.5) Requirement already satisfied: httplib2 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from fitz) (0.20.4) Requirement already satisfied: configobj in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from fitz) (5.0.6) Requirement already satisfied: pandas in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from fitz) (1.4.2) Requirement already satisfied: pyxnat in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from fitz) (1.4) Requirement already satisfied: six in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from configobj->fitz) (1.16.0) Requirement already satisfied: pyparsing!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3,<4,>=2.4.2 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from httplib2->fitz) (3.0.4) Requirement already satisfied: packaging>=17.0 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from nibabel->fitz) (21.3) Requirement already satisfied: setuptools in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from nibabel->fitz) (61.2.0) Requirement already satisfied: pydot>=1.2.3 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from nipype->fitz) (1.4.2) Requirement already satisfied: prov>=1.5.2 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from nipype->fitz) (2.0.0) Requirement already satisfied: looseversion in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from nipype->fitz) (1.0.1) Requirement already satisfied: etelemetry>=0.2.0 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from nipype->fitz) (0.3.0) Requirement already satisfied: click>=6.6.0 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from nipype->fitz) (8.0.4) Requirement already satisfied: networkx>=2.0 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from nipype->fitz) (2.7.1) Requirement already satisfied: traits!=5.0,<6.4,>=4.6 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from nipype->fitz) (6.3.2) Requirement already satisfied: filelock>=3.0.0 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from nipype->fitz) (3.6.0) Requirement already satisfied: simplejson>=3.8.0 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from nipype->fitz) (3.17.6) Requirement already satisfied: rdflib>=5.0.0 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from nipype->fitz) (6.2.0) Requirement already satisfied: python-dateutil>=2.2 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from nipype->fitz) (2.8.2) Requirement already satisfied: ci-info>=0.2 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from etelemetry>=0.2.0->nipype->fitz) (0.3.0) Requirement already satisfied: requests in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from etelemetry>=0.2.0->nipype->fitz) (2.27.1) Requirement already satisfied: lxml>=3.3.5 in /Users/chenyibin/.local/lib/python3.9/site-packages (from prov>=1.5.2->nipype->fitz) (4.9.1) Requirement already satisfied: isodate in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from rdflib>=5.0.0->nipype->fitz) (0.6.1) Requirement already satisfied: pytz>=2020.1 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from pandas->fitz) (2021.3) Requirement already satisfied: pathlib>=1.0 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from pyxnat->fitz) (1.0.1) Requirement already satisfied: future>=0.16 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from pyxnat->fitz) (0.18.2) Requirement already satisfied: idna<4,>=2.5 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from requests->etelemetry>=0.2.0->nipype->fitz) (3.3) Requirement already satisfied: charset-normalizer~=2.0.0 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from requests->etelemetry>=0.2.0->nipype->fitz) (2.0.12) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from requests->etelemetry>=0.2.0->nipype->fitz) (1.26.9) Requirement already satisfied: certifi>=2017.4.17 in /Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages (from requests->etelemetry>=0.2.0->nipype->fitz) (2021.10.8)

我用 python import 的命令查看了一下,发现报错:

[email protected] ~ % python -m fitz Traceback (most recent call last): File “/Users/chenyibin/opt/anaconda3/lib/python3.9/runpy.py”, line 188, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File “/Users/chenyibin/opt/anaconda3/lib/python3.9/runpy.py”, line 147, in _get_module_details return _get_module_details(pkg_main_name, error) File “/Users/chenyibin/opt/anaconda3/lib/python3.9/runpy.py”, line 111, in _get_module_details import(pkg_name) File “/Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages/fitz/init.py”, line 10, in from fitz.fitz import * File “/Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages/fitz/fitz.py”, line 17, in from . import _fitz ImportError: dlopen(/Users/chenyibin/opt/anaconda3/lib/python3.9/site-packages/fitz/_fitz.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace (_fz_default_color_params)


不好意思,感觉超出了我的能力范围,不知道如何解决。

你也许需要装这个 pip install PyMuPDF

已经装了的:

(base) [email protected] ~ % pip install pymupdf Requirement already satisfied: pymupdf in ./.local/lib/python3.9/site-packages (1.20.2)

fitz 这个包是安装pymupdf的时候会默认安装的, 应该不用单独安装, 你可以先把这两个卸了再装pymupdf, 注意到你的环境是anaconda, 你可以用conda 来安装, 它会自动帮你解决一些依赖的版本问题

mermaid 这个应用已经干掉了, markdown-previewer 的功能应该完全覆盖 eaf-mermaid 的功能, 具体见: 通过mume.js实现先进的Markdown文档实时预览

用doom恢复session时提示这个怎么办

我无论选yes还是no都会导致EAF需要的那个python程序退出,有没有办法能让eaf在我需用用的时候再启动吗?

(setq eaf-start-python-process-when-require nil)

1 个赞

感谢 完美解决我的问题