emacs-eaf / emacs-application-framework

EAF, an extensible framework that revolutionizes the graphical capabilities of Emacs
GNU General Public License v3.0
3.1k stars 234 forks source link

`RuntimeError: PyQt6.QtWebEngineCore cannot import type 'QModelRoleDataSpan' from PyQt6.QtCore` after install #1128

Closed Thysrael closed 11 months ago

Thysrael commented 11 months ago

Describe the bug After I following README to install eaf, I try to run eaf-open-demo or eaf-open, eaf didn't work.

To Reproduce Yes I git clone the newest update of eaf. And I run the install_eaf.py successfully(I guess, because nothing wrong happend). I use emacs -Q and eval the code below:

(add-to-list 'load-path "~/.emacs.d/site-lisp/emacs-application-framework/")
(require 'eaf)

(require 'eaf-browser)
(require 'eaf-pdf-viewer)
(require 'eaf-demo)

Expected behavior I hope eaf can work correctly.

Versions (please complete the following info):


 ██████████████████  ████████     thysrael@thysrael-82av
 ██████████████████  ████████     OS: Manjaro 23.1.0 Vulcan
 ██████████████████  ████████     Kernel: x86_64 Linux 6.1.62-1-MANJARO
 ██████████████████  ████████     Uptime: 1d 1h 6m
 ████████            ████████     Packages: 2233
 ████████  ████████  ████████     Shell: bash
 ████████  ████████  ████████     Resolution: 1920x1080
 ████████  ████████  ████████     DE: KDE 5.112.0 / Plasma 5.27.9
 ████████  ████████  ████████     WM: KWin
 ████████  ████████  ████████     GTK Theme: Breeze [GTK2/3]
 ████████  ████████  ████████     Icon Theme: breeze
 ████████  ████████  ████████     Disk: 360G / 1.3T (29%)
 ████████  ████████  ████████     CPU: Intel Core i7-10750H @ 12x 2.6GHz [43.0°C]
 ████████  ████████  ████████     GPU: NVIDIA GeForce GTX 1650 Ti
                                  RAM: 5879MiB / 15904MiB

Process eaf exited abnormally with code 1 Traceback (most recent call last): File "/home/thysrael/.emacs.d/site-lisp/emacs-application-framework/eaf.py", line 25, in from PyQt6 import QtWebEngineWidgets as NeverUsed # noqa ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: PyQt6.QtWebEngineCore cannot import type 'QModelRoleDataSpan' from PyQt6.QtCore



**Screenshots**
![image](https://github.com/emacs-eaf/emacs-application-framework/assets/72613958/8a01b512-e719-49d8-8e18-d74e0963d2c6)
manateelazycat commented 11 months ago

Looks your Qt or PyQt not install complete in your system.

Thysrael commented 11 months ago

Looks your Qt or PyQt not install complete in your system.

Thank you, it fixed.

I remove the pyqt6 installed from pacman, and create a new python venv at eaf directory. It works well.

kascesar commented 2 weeks ago

pls may show how to solve this in detail pls. I do not understand how to set up eaf for use this venv automatic. Thanks :D