From mboxrd@z Thu Jan 1 00:00:00 1970 From: aaron barclay Subject: Re: export-as-hmtl fail Date: Fri, 27 Jan 2012 13:34:19 +1100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d043894af7a52d604b7795503 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:32794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqbdw-0003VT-2l for emacs-orgmode@gnu.org; Thu, 26 Jan 2012 21:34:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rqbdu-0003UL-Ay for emacs-orgmode@gnu.org; Thu, 26 Jan 2012 21:34:24 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:55075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rqbdt-0003Ty-Td for emacs-orgmode@gnu.org; Thu, 26 Jan 2012 21:34:22 -0500 Received: by wgbds1 with SMTP id ds1so1038394wgb.30 for ; Thu, 26 Jan 2012 18:34:19 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Martyn Jago Cc: emacs-orgmode@gnu.org --f46d043894af7a52d604b7795503 Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > Hi Aaron > > aaron barclay 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 > > > > > > --f46d043894af7a52d604b7795503 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Martyn,

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

aaron.


On 25 January 2012 00:02, Martyn J= ago <mar= tyn.jago@btinternet.com> wrote:
Hi Aaron

aaron barclay <aaron.diplopi= c@gmail.com> writes:

> Hello,
>
> When I use a python code block in a document any export-as-html result= s in
> the error "Invalid file-name". Without a code block the expo= rt 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
> =A0'org-babel-load-languages
> =A0 '( (dot . t)
> =A0 =A0 =A0(sh . t)
> =A0 =A0 =A0(python . t)
> =A0 =A0 =A0(emacs-lisp . t)
> =A0 =A0))
>
> (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. Cou= ld it
> be something else in my setup or system? Any else ever experienced thi= s?
>
> 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:
=A0- `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)
=A0of 2011-12-02 on b= ob.porkrind.org






--f46d043894af7a52d604b7795503--