emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* export-as-hmtl fail
@ 2012-01-24  6:23 aaron barclay
  2012-01-24 13:02 ` Martyn Jago
  0 siblings, 1 reply; 3+ messages in thread
From: aaron barclay @ 2012-01-24  6:23 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 892 bytes --]

Hello,

When I use a python code block in a document any export-as-html results in
the error "Invalid file-name". Without a code block the export goes without
a hitch. Other exports work no probs such as export-as-ascii. The code
block within the document acts as expected, it is only the export that
fails. I was on org7.5 but updated to 7.8.03 but have the same result.

Also, it is only the python code blocks that fail, others work.

My babel setup is

(org-babel-do-load-languages
 'org-babel-load-languages
  '( (dot . t)
     (sh . t)
     (python . t)
     (emacs-lisp . t)
   ))

(setq org-babel-python-command "python2.6")

My code block is

#+begin_src python :results output
print "hi"

#+end_src

#+results:
: hi

Does anyone have any tips on what I might do to troubleshoot this. Could it
be something else in my setup or system? Any else ever experienced this?

cheers,
aaron.

[-- Attachment #2: Type: text/html, Size: 1061 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: export-as-hmtl fail
  2012-01-24  6:23 export-as-hmtl fail aaron barclay
@ 2012-01-24 13:02 ` Martyn Jago
  2012-01-27  2:34   ` aaron barclay
  0 siblings, 1 reply; 3+ messages in thread
From: Martyn Jago @ 2012-01-24 13:02 UTC (permalink / raw)
  To: emacs-orgmode

Hi Aaron

aaron barclay <aaron.diplopic@gmail.com> writes:

> Hello,
>
> When I use a python code block in a document any export-as-html results in
> the error "Invalid file-name". Without a code block the export goes without
> a hitch. Other exports work no probs such as export-as-ascii. The code
> block within the document acts as expected, it is only the export that
> fails. I was on org7.5 but updated to 7.8.03 but have the same result.
>
> Also, it is only the python code blocks that fail, others work.
>
> My babel setup is
>
> (org-babel-do-load-languages
>  'org-babel-load-languages
>   '( (dot . t)
>      (sh . t)
>      (python . t)
>      (emacs-lisp . t)
>    ))
>
> (setq org-babel-python-command "python2.6")
>
> My code block is
>
> #+begin_src python :results output
> print "hi"
>
> #+end_src
>
> #+results:
> : hi
>
> Does anyone have any tips on what I might do to troubleshoot this. Could it
> be something else in my setup or system? Any else ever experienced this?
>
> cheers,
> aaron.

I can't replicate this error (see my versions below). Even breaking
`org-babel-python-command' does not break your code for me in the way
you describe.

For diagnostic purposes, you may run the command: 
 - `M-x toggle-debug-on-error' 
...prior to exporting as html. This should give you a useful backtrace.

Note also that if you are wishing to export the python results as
opposed to the python code, you will also need :exports results since
the default is `:exports code' .

HTH

Best, Martyn

---
Org-mode version 7.8.03 (release_7.8.03.192.ga38b.dirty)
GNU Emacs 24.0.92.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
 of 2011-12-02 on bob.porkrind.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: export-as-hmtl fail
  2012-01-24 13:02 ` Martyn Jago
@ 2012-01-27  2:34   ` aaron barclay
  0 siblings, 0 replies; 3+ messages in thread
From: aaron barclay @ 2012-01-27  2:34 UTC (permalink / raw)
  To: Martyn Jago; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2024 bytes --]

Hi Martyn,

thank you, this helped to track down the problem. Seems to be a conflict
with flymake so have disabled that for now.

aaron.



On 25 January 2012 00:02, Martyn Jago <martyn.jago@btinternet.com> wrote:

> Hi Aaron
>
> aaron barclay <aaron.diplopic@gmail.com> writes:
>
> > Hello,
> >
> > When I use a python code block in a document any export-as-html results
> in
> > the error "Invalid file-name". Without a code block the export goes
> without
> > a hitch. Other exports work no probs such as export-as-ascii. The code
> > block within the document acts as expected, it is only the export that
> > fails. I was on org7.5 but updated to 7.8.03 but have the same result.
> >
> > Also, it is only the python code blocks that fail, others work.
> >
> > My babel setup is
> >
> > (org-babel-do-load-languages
> >  'org-babel-load-languages
> >   '( (dot . t)
> >      (sh . t)
> >      (python . t)
> >      (emacs-lisp . t)
> >    ))
> >
> > (setq org-babel-python-command "python2.6")
> >
> > My code block is
> >
> > #+begin_src python :results output
> > print "hi"
> >
> > #+end_src
> >
> > #+results:
> > : hi
> >
> > Does anyone have any tips on what I might do to troubleshoot this. Could
> it
> > be something else in my setup or system? Any else ever experienced this?
> >
> > cheers,
> > aaron.
>
> I can't replicate this error (see my versions below). Even breaking
> `org-babel-python-command' does not break your code for me in the way
> you describe.
>
> For diagnostic purposes, you may run the command:
>  - `M-x toggle-debug-on-error'
> ...prior to exporting as html. This should give you a useful backtrace.
>
> Note also that if you are wishing to export the python results as
> opposed to the python code, you will also need :exports results since
> the default is `:exports code' .
>
> HTH
>
> Best, Martyn
>
> ---
> Org-mode version 7.8.03 (release_7.8.03.192.ga38b.dirty)
> GNU Emacs 24.0.92.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
>  of 2011-12-02 on bob.porkrind.org
>
>
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 2791 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-27  2:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-24  6:23 export-as-hmtl fail aaron barclay
2012-01-24 13:02 ` Martyn Jago
2012-01-27  2:34   ` aaron barclay

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