From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: Bug: subtree export fails with src block Date: Mon, 04 Oct 2010 07:21:53 -0600 Message-ID: <87d3rq9jpq.fsf@gmail.com> References: <70a0cde5cbf513c515de12aa486b29cd.squirrel@webmail.godzone.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=41762 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2l0W-0001IH-8X for emacs-orgmode@gnu.org; Mon, 04 Oct 2010 09:23:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P2l0U-0000GP-No for emacs-orgmode@gnu.org; Mon, 04 Oct 2010 09:23:08 -0400 Received: from mail-qw0-f41.google.com ([209.85.216.41]:39325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P2l0U-0000Cr-BF for emacs-orgmode@gnu.org; Mon, 04 Oct 2010 09:23:06 -0400 Received: by qwb8 with SMTP id 8so3581007qwb.0 for ; Mon, 04 Oct 2010 06:22:38 -0700 (PDT) In-Reply-To: <70a0cde5cbf513c515de12aa486b29cd.squirrel@webmail.godzone.net.nz> (Giovanni Moretti's message of "Mon, 4 Oct 2010 16:02:32 +1300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Giovanni@reflections.co.nz Cc: emacs-orgmode@gnu.org Hi Giovanni, I'm unable to reproduce your bug. I can successfully export the following to html w/o issue. --8<---------------cut here---------------start------------->8--- Now let's see what happens: #+begin_src python :results output :exports both print "Babel" limits = [1,2,3,4,5,6,7,8,9,10] for i in limits: print "Hello" * i #+end_src python --8<---------------cut here---------------end--------------->8--- Are you using the latest version of Org-mode? Could you try exporting the above and see if it works for you. some more comments inline below. "Giovanni Moretti" writes: > I'm just starting with Babel and have been puzzled about why one file > worked and another didn't. > > I have been playing in a new file without any headers at all (no lines > starting with '*') and while I could execute the code in the buffer, > exporting to HTML always failed with: > > No such file: c:/org/babel-python-test.org:: > Hmm, it looks like it's trying to find a file with "::" attached to the end which is probably the source of the issue. I wonder if this is a windows specific problem? > > When searching, I found this thread and wondered if the heading were > important. It turns out they are. In the block below, exporting to HTML > fails if the first line isn't a heading. > > This seems like a clue ... > > Cheers and thanks > Giovanni > > PS: the BOTH option for :export is hard to find - only :export none is in > the intro page. > The documentation [1] is the place to look for header arguments and their usage, but I suppose we should mention that more explicitly (at all?) from the introduction page. Best -- Eric > > =============================== > * Python Babel test > > Now let's see what happens: > > #+begin_src python :results output :exports both > print "Babel" > limits = [1,2,3,4,5,6,7,8,9,10] > > for i in limits: > print "Hello" * i > #+end_src python > ================================ > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode Footnotes: [1] http://orgmode.org/manual/Working-With-Source-Code.html#Working-With-Source-Code