Giter Site home page Giter Site logo

Comments (14)

manateelazycat avatar manateelazycat commented on August 9, 2024

When you got exited anhormally error, please switch to buffer eaf, then paste output from eaf, it's useful.

Don't do

python ~/.emacs.d/emacs-application-framework/app/pdfviewer/buffer.py

Because all code is execute from /emacs-application-framework/eaf.py by eaf.el

If you execute from app directory, it's wrong root directory to execute, "No module" error of course will throw, but it's not problem.

Please paste buffer eaf content.

from emacs-application-framework.

Qquanwei avatar Qquanwei commented on August 9, 2024

eaf buffer:

Traceback (most recent call last):
  File "/home/quanwei/.emacs.d/emacs-application-framework/eaf.py", line 23, in <module>
    from core.fake_key_event import fake_key_event
ImportError: No module named core.fake_key_event

from emacs-application-framework.

manateelazycat avatar manateelazycat commented on August 9, 2024

Can you do "ls -al" in your emacs-application-framework/core directory ?

from emacs-application-framework.

Qquanwei avatar Qquanwei commented on August 9, 2024
~/.emacs.d/emacs-application-framework/core $ ls -al
total 20
drwxr-xr-x   2 quanwei        quanwei  4096 2018-07-09 21:36 .
drwxr-xr-x   6 quanwei        quanwei  4096 2018-07-09 21:36 ..
-rw-r--r--   1 quanwei        quanwei  2299 2018-07-09 21:36 buffer.py
-rw-r--r--   1 quanwei        quanwei  2695 2018-07-09 21:36 fake_key_event.py
-rw-r--r--   1 quanwei        quanwei  1909 2018-07-09 21:36 utils.py
-rw-r--r--   1 quanwei        quanwei  4168 2018-07-09 21:36 view.py
-rw-r--r--   1 quanwei        quanwei  1470 2018-07-09 21:36 xutils.py

Sorry I'm late, I only work on my computer at night.

from emacs-application-framework.

manateelazycat avatar manateelazycat commented on August 9, 2024

@Qquanwei Can you touch empty file "init.py" in core directory, then try again?

from emacs-application-framework.

Qquanwei avatar Qquanwei commented on August 9, 2024

I touch init,py and output the same error. I just clone this project to .emacs.d.

from emacs-application-framework.

manateelazycat avatar manateelazycat commented on August 9, 2024

It's so strange.

from emacs-application-framework.

manateelazycat avatar manateelazycat commented on August 9, 2024

@Qquanwei I mean touch file name with:

__init__.py

in core directory, github convert

__

string, not init.py, is:

__init__.py

from emacs-application-framework.

Qquanwei avatar Qquanwei commented on August 9, 2024

It still not work.

I touch __init__.py and M-x eaf-open with a picture path.

dbus-call-method: D-Bus error: "Traceback (most recent call last):
  File \"/usr/lib/python2.7/dist-packages/dbus/service.py\", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File \"/home/quanwei/.emacs.d/emacs-application-framework/eaf.py\", line 71, in new_buffer
    return self.create_app(buffer_id, url, \"app.imageviewer.buffer\")
  File \"/home/quanwei/.emacs.d/emacs-application-framework/eaf.py\", line 92, in create_app
    if importlib.util.find_spec(module_path) is not None:
AttributeError: 'module' object has no attribute 'util'

from emacs-application-framework.

Qquanwei avatar Qquanwei commented on August 9, 2024

Is that I miss some package ?

from emacs-application-framework.

manateelazycat avatar manateelazycat commented on August 9, 2024

@Qquanwei you need use python3 execute those code, all your error is you use python2

from emacs-application-framework.

manateelazycat avatar manateelazycat commented on August 9, 2024

@Qquanwei I have patch 12e6e82

Force use python3, please try again.

from emacs-application-framework.

Qquanwei avatar Qquanwei commented on August 9, 2024

@manateelazycat It works.
I saw you fixed, so I closed this issue.

from emacs-application-framework.

manateelazycat avatar manateelazycat commented on August 9, 2024

@Qquanwei Thanks for your feedback.

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.