emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dave Marquardt <davemarq@linux.vnet.ibm.com>
To: emacs-orgmode@gnu.org
Subject: Re: undefined symbol 'org-export-create-backend' when calling org-plot/gnuplot
Date: Tue, 29 Sep 2015 08:33:57 -0500	[thread overview]
Message-ID: <m337xxe4e2.fsf@linux.vnet.ibm.com> (raw)
In-Reply-To: 87mvw5hp4y.fsf@alphaville.usersys.redhat.com

Nick Dokos <ndokos@gmail.com> writes:

> Dave Marquardt <davemarq@linux.vnet.ibm.com> writes:
>
>> I attempted to plot a table after installing the 20150928 ELPA package,
>> and got
>>
>> Debugger entered--Lisp error: (void-function org-export-create-backend)
>>   org-export-create-backend(:parent org :transcoders ((table lambda
>> (table contents info) (concat nil contents nil)) (table-row lambda
>> (row contents info) (if (eq (org-element-property :type row) (quote
>> rule)) nil (let ((headerp (org-export-table-row-in-header-p row info))
>> (lastp (not (org-export-get-next-element row info))) (last-header-p
>> (org-export-table-row-ends-header-p row info))) (when contents (cond
>> nil nil nil (t (concat ...))))))) (table-cell lambda (cell contents
>> info) (let ((headerp (org-export-table-row-in-header-p
>> (org-export-get-parent-element cell) info)) (column (1+ (cdr
>> (org-export-table-cell-address cell info))))) nil (when contents nil
>> (cond nil (t (setq contents (funcall ... contents))))) (if (or nil
>> (plist-get info :orgtbl-ignore-sep) (not (org-export-get-next-element
>>   cell info))) contents (concat contents " ")))) (macro lambda (m c
>> i) (org-element-macro-interpreter m nil))))
>>   orgtbl-to-generic((("*Total time*" "*4:11*" "" "100.0") ("Time"
>> "4:11" "" "100.0") ("CMVC" "" "0:21" "8.4") ("Connections" "" "0:23"
>> "9.2") ("DAT" "" "0:02" "0.8") ("Defects" "" "1:24" "33.5")
>> ("developerWorks" "" "0:02" "0.8") ("Mail" "" "0:39" "15.5") ("RDS" ""
>> "0:06" "2.4") ("SDB" "" "0:01" "0.4") ("SDN" "" "0:01" "0.4") ("SMC-R"
>> "" "0:01" "0.4") ("Startup" "" "0:27" "10.8") ("TCP" "" "0:02" "0.8")
>> ("Team" "" "0:42" "16.7")) (:sep " " :fmt org-plot-quote-tsv-field
>> :plot-type 2d :with histograms :ind 1 :labels ("Headline" "Time" ""
>> "%") :set ("style fill solid") :deps (4)))
>>   org-plot/gnuplot-to-data((("*Total time*" "*4:11*" "" "100.0")
>> ("Time" "4:11" "" "100.0") ("CMVC" "" "0:21" "8.4") ("Connections" ""
>> "0:23" "9.2") ("DAT" "" "0:02" "0.8") ("Defects" "" "1:24" "33.5")
>> ("developerWorks" "" "0:02" "0.8") ("Mail" "" "0:39" "15.5") ("RDS" ""
>> "0:06" "2.4") ("SDB" "" "0:01" "0.4") ("SDN" "" "0:01" "0.4") ("SMC-R"
>> "" "0:01" "0.4") ("Startup" "" "0:27" "10.8") ("TCP" "" "0:02" "0.8")
>> ("Team" "" "0:42" "16.7")) "/tmp/org-plot18132EYn" (:plot-type 2d
>> :with histograms :ind 1 :labels ("Headline" "Time" "" "%") :set
>> ("style fill solid") :deps (4)))
>>   org-plot/gnuplot()
>>   call-interactively(org-plot/gnuplot record nil)
>>   command-execute(org-plot/gnuplot record)
>>   execute-extended-command(nil "org-plot/gnuplot")
>>   call-interactively(execute-extended-command nil nil)
>>
>> org-table.el has a declare-function call that points to a "org-export"
>> file, but I don't find such a file in either the code installed by ELPA
>> or the daily snapshot:
>>
>> (declare-function org-export-create-backend "org-export" (&rest rest))
>>
>> Calling org-plot/gnuplot worked last week, before I upgraded to 20150928.
>>
>> -Dave
>
> This sounds like a mixed installation: different versions of org
> installed and you are picking up bits from both of them.
> Search the list for "mixed installation", e.g. check out
>
> http://thread.gmane.org/gmane.emacs.orgmode/68240/focus=68265
>
> and the link therein:
>
> http://orgmode.org/worg/org-faq.html#mixed-install

Yes, I've run into that issue before. I specifically removed the org
installation that was provided with Gnu Emacs 24.3.2 some time back. I
went back and looked at whether that was an issue here, and I discovered
some .elc files had crept into the Emacs directory tree, so I removed
them.

When I check each org function in the backtrace, each function definition
is in a file in my ELPA installation.

orgtbl-to-generic is in ~/.emacs.d/elpa/org-20150928/org-table.el
org-plot/gnuplot-to-data is in ~/.emacs.d/elpa/org-20150928/org-plot.el
org-plot/gnuplot is in ~/.emacs.d/elpa/org-20150828/org-plot.el

I checked the Git tree, and saw the change that was made related to the
declare-function definitions. From the doc information on
declare-function, it's not clear to me this does anything at run
time. It references "org-export", and I don't see that when I grab the
Git tree. Is "org-export" a file built by the make process? 

Is this just a problem with the ELPA installation? I'm going to try
removing and reinstalling the ELPA package, then if that doesn't change
anything, try instaling from the Git tree.

-Dave

  reply	other threads:[~2015-09-29 13:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-28 18:36 undefined symbol 'org-export-create-backend' when calling org-plot/gnuplot Dave Marquardt
2015-09-29  3:37 ` Nick Dokos
2015-09-29 13:33   ` Dave Marquardt [this message]
2015-09-30 16:30     ` Dave Marquardt
2015-10-01 13:06       ` Dave Marquardt
2015-10-01 19:58         ` Nicolas Goaziou
2015-10-01 21:19           ` Dave Marquardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m337xxe4e2.fsf@linux.vnet.ibm.com \
    --to=davemarq@linux.vnet.ibm.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).