the-ted / org-mind-map

This is an emacs package that creates graphviz directed graphs.
GNU General Public License v3.0
540 stars 53 forks source link

org-export-register-backend: Cannot use unknown "org" back-end as a parent #22

Open rogorido opened 6 years ago

rogorido commented 6 years ago

I'm getting this error with the last (stable) orgmode version. Any ideas?

felipelalli commented 6 years ago

Not sure if it is related:

Debugger entered--Lisp error: (void-function org-export-define-derived-backend)
  (org-export-define-derived-backend (quote graphviz) (quote org) :menu-entry (quote (103 "Export to graphviz diagram" ((102 "Create graph" ox-graphviz-export) (111 "Create graph and open" ox-graphviz-export-and-open) (100 "Create graph & dot file" ox-graphviz-export-dot) (79 "Create graph & dot file, and open graph" ox-graphviz-export-dot-and-open)))))
  eval-buffer(#<buffer  *load*-225262> nil
uMtMu commented 6 years ago

ı got same error too. installed with install-package

(require 'ox-org) solved my problem

nrvale0 commented 6 years ago

Also seeing this error message:

I couldn't get the package installed at all using use-package so the above uses straight.el for package management.

EDIT:

I had to do the following to get this package to work:

  1. Install org using straight.el instead of use-package or relying on the vendor packaged org
  2. Add the following to init to do necessary requires and pull in a pending PR:
    
    (require 'ox)
    (require 'ox-org)

(straight-use-package '(org-mind-map :type git :host github :repo "lispmeister/org-mind-map"))



I'll leave the process of setting up straight.el package management as a (non-trivial) exercise for the reader.
whatacold commented 6 years ago

I have this problem too with org-mode 9.1.4 and I've figured out that this error is due to the org export backend is loaded yet.

from this doc https://orgmode.org/manual/Exporting.html , there are two solutions:

Org loads back-ends for the following formats by default: ascii, html, icalendar, latex and odt.

Org can load additional back-ends either of two ways: through the org-export-backends variable configuration; or, by requiring the library in the Emacs init file like this:

(require 'ox-md)

For me, explicitly requiring ox-org is easier, i.e.

(require 'ox-org)
(require 'org-mind-map)
ruiying-ocean commented 3 years ago

I also met this issue and my way was to add (require 'ox-org) into the org-mind-map.el file. Then I can lazy-load it using use-package.