Giter Site home page Giter Site logo

Comments (17)

manateelazycat avatar manateelazycat commented on August 9, 2024

please download all repo in your computer, not just eaf.py

from emacs-application-framework.

mgcyung avatar mgcyung commented on August 9, 2024

The whole repo is already cloned into directory "/home/magic/.emacs.d/elpa-alone/emacs-application-framework".

from emacs-application-framework.

Compro-Prasad avatar Compro-Prasad commented on August 9, 2024

You might have sorted the imports?

from emacs-application-framework.

mgcyung avatar mgcyung commented on August 9, 2024

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.

manateelazycat avatar manateelazycat commented on August 9, 2024

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.

mgcyung avatar mgcyung commented on August 9, 2024

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.

manateelazycat avatar manateelazycat commented on August 9, 2024

@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.

mgcyung avatar mgcyung commented on August 9, 2024

@manateelazycat

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.

Compro-Prasad avatar Compro-Prasad commented on August 9, 2024

@mgcyung What OS and python version are you using?

from emacs-application-framework.

manateelazycat avatar manateelazycat commented on August 9, 2024

@mgcyung

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.

mgcyung avatar mgcyung commented on August 9, 2024

from emacs-application-framework.

mgcyung avatar mgcyung commented on August 9, 2024

from emacs-application-framework.

manateelazycat avatar manateelazycat commented on August 9, 2024

@mgcyung It's so strange, i don't know why you can't import app.browser.buffer

from emacs-application-framework.

Compro-Prasad avatar Compro-Prasad commented on August 9, 2024

@mgcyung What if you use python3 over python2?

from emacs-application-framework.

manateelazycat avatar manateelazycat commented on August 9, 2024

@mgcyung Please use Python3, don't use Python2

from emacs-application-framework.

manateelazycat avatar manateelazycat commented on August 9, 2024

@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.

manateelazycat avatar manateelazycat commented on August 9, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.