Comments (17)
please download all repo in your computer, not just eaf.py
from emacs-application-framework.
The whole repo is already cloned into directory "/home/magic/.emacs.d/elpa-alone/emacs-application-framework".
from emacs-application-framework.
You might have sorted the imports?
from emacs-application-framework.
You might have sorted the imports?
Do you mean imports in eaf.py? It is as follows
[code]
from PyQt5.QtWidgets import QApplication
from dbus.mainloop.glib import DBusGMainLoop
from fake_key_event import fake_key_event
from pymediainfo import MediaInfo
from utils import file_is_image, file_is_video
from view import View
import dbus
import dbus.service
import os,sys,inspect
current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parent_dir = os.path.dirname(current_dir)
sys.path.insert(0, parent_dir)
from app.browser.buffer import BrowserBuffer
from app.imageviewer.buffer import ImageViewerBuffer
from app.videoplayer.buffer import VideoPlayerBuffer
from app.pdfviewer.buffer import PdfViewerBuffer
from app.demo.buffer import DemoBuffer
[/code]
from emacs-application-framework.
Can you add below code in eaf.py?
print(parent_dir)
Just put it after "parent_dit = os.path.dirname(current_dir)
I need see what's it parent_dir
from emacs-application-framework.
Can you add below code in eaf.py?
print(parent_dir)
Just put it after "parent_dit = os.path.dirname(current_dir)
I need see what's it parent_dir
The parent_dir is
"/home/magic/.emacs.d/elpa-alone/emacs-application-framework"
as shown in buffer "eaf"
/home/magic/.emacs.d/elpa-alone/emacs-application-framework
Traceback (most recent call last):
File "/home/magic/.emacs.d/elpa-alone/emacs-application-framework/core/eaf.py", line 36, in
from app.browser.buffer import BrowserBuffer
ImportError: No module named app.browser.buffer
from emacs-application-framework.
@mgcyung I see your problem, I have write new patch to fix this problem: 2cf99b2
Can you update repo to newest and try again?
Thanks for your feedback!
from emacs-application-framework.
It seems the problem still exists
Traceback (most recent call last):
File "/home/magic/.emacs.d/elpa-alone/emacs-application-framework/eaf.py", line 23, in
from app.browser.buffer import BrowserBuffer
ImportError: No module named app.browser.buffer
from emacs-application-framework.
@mgcyung What OS and python version are you using?
from emacs-application-framework.
Open python in terminal
Paste below code in python shell:
from PyQt5.QtWebKitWidgets import QWebView, QWebPage
What's output from python?
from emacs-application-framework.
from emacs-application-framework.
from emacs-application-framework.
@mgcyung It's so strange, i don't know why you can't import app.browser.buffer
from emacs-application-framework.
@mgcyung What if you use python3 over python2?
from emacs-application-framework.
@mgcyung Please use Python3, don't use Python2
from emacs-application-framework.
@mgcyung I don't know how to fixed your problem, you need switch to Python3 and try.
Anyway, i add new patch 0d934dd
Make you still can use eaf even you can't import some plugin.
from emacs-application-framework.
@mgcyung I think pyqt5 install in Python3 env, but you system default python is Python2.
I will close this issue.
If you still have problem after you switch system default Python to Python3, feel free to re-open this issue.
from emacs-application-framework.
Related Issues (20)
- 大佬可不可以考虑一下在eaf-browser、eaf-pdf中实现类似avy的跳转功能 HOT 2
- `RuntimeError: PyQt6.QtWebEngineCore cannot import type 'QModelRoleDataSpan' from PyQt6.QtCore` after install HOT 2
- Global Scaling Configuration Setting HOT 3
- Installation failure caused by sexpdata HOT 1
- 打开file-manager空白 HOT 1
- Grammar improvements in Readme.md HOT 1
- Better way to distribute dependencies? HOT 3
- Support for non "off the record" profiles for modern web applications like whatsapp/google login and other HOT 5
- Wheel mouse button open page in the same window instead of other-window HOT 1
- Can't open pdf HOT 7
- TypeError: QWebEngineView(parent: QWidget = None): argument 1 has unexpected type 'QWebEngineProfile' HOT 10
- Add support for the `iced` toolkit.
- eaf browser haning HOT 2
- 正则表达在python 3.12中错误 HOT 1
- arch系统安装成功了怎么却使用不了 HOT 1
- error message during startup and eaf-open-demo does not work HOT 1
- Problem with emacs-wayland or emacs-pgkt build enabled with pure-gtk support HOT 2
- qt.dbus.integration: Could not connect "org.freedesktop.IBus" to globalEngineChanged(QString) HOT 1
- Windows下安装eaf报错 HOT 2
- EAF keep warning in emacs daemon HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emacs-application-framework.