emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Johannes Wasmer <johannes.wasmer@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: babel python html export error [9.3.6 (9.3.6-25-g685b2c-elpaplus @ /home/johannes/.emacs.d/elpa/26.3/develop/org-plus-contrib-20200330/)]
Date: Fri, 15 May 2020 20:52:12 +0200	[thread overview]
Message-ID: <CAPb=8-9T0LjfHFMm=f2p4LzeE2LgsaNO-gBaEknLVCWoWYk3nw@mail.gmail.com> (raw)

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

To: emacs-orgmode@gnu.org
Subject: Bug: babel python html export error [9.3.6
(9.3.6-25-g685b2c-elpaplus @
/home/johannes/.emacs.d/elpa/26.3/develop/org-plus-contrib-20200330/)]
From: Johannes Wasmer <johannes.wasmer@gmail.com>
--text follows this line--

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

Hi there,
I have a very simple test.org file with the content:

#+begin_src python
return 2+2
#+end_src

#+RESULTS:
: 4

When I export this to PDF via ~C-e l p~, I get the PDF with both the
code and the output.

But when I export to HTML via ~C-e h h~, I get no file.
In the *Messages* buffer, I find the following error message:
org-babel-exp process python at position 3...
Can’t guess python-indent-offset, using defaults: 4
pythonic-python-readable-file-name: Wrong type argument: stringp, nil

Note: python code evaluation works fine (also with :exports both). Only
the HTML export does not work.
So this bug is very specific to babel python HTML export.
The Python version used is 3.7.4.
Thank you for any pointers on how to resolve this.
Best, Johannes


Emacs  : GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
 of 2019-09-16
Package: Org mode version 9.3.6 (9.3.6-25-g685b2c-elpaplus @
/home/johannes/.emacs.d/elpa/26.3/develop/org-plus-contrib-20200330/)

current state:
==============
(setq
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
                     org-src-mode-configure-edit-buffer)
 org-link-shell-confirm-function 'yes-or-no-p
 org-babel-after-execute-hook '(spacemacs/ob-fix-inline-images)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-html-format-inlinetask-function
'org-html-format-inlinetask-default-function
 org-src-tab-acts-natively t
 org-odt-format-headline-function 'org-odt-format-headline-default-function
 org-imenu-depth 8
 org-download-annotate-function 'org-download-annotate-default
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-mode-hook '(org-tempo-setup
                 (lambda nil
                  (local-set-key [C-M-up] (quote
org-table-move-single-cell-up))
                  (local-set-key [C-M-down] (quote
org-table-move-single-cell-down))
                  (local-set-key [C-M-left] (quote
org-table-move-single-cell-left))
                  (local-set-key [C-M-right] (quote
org-table-move-single-cell-right)))
                 #[0 "\300\301\302\303\304$\207"
                   [add-hook change-major-mode-hook org-show-all append
local] 5]
                 #[0 "\300\301\302\303\304$\207"
                   [add-hook change-major-mode-hook
org-babel-show-result-all append
                    local]
                   5]
                 org-babel-result-hide-spec org-babel-hide-all-hashes
                 #[0 "\301\211 \207" [imenu-create-index-function
org-imenu-get-tree]
                   2]
                 flyspell-mode spacemacs/org-setup-evil-surround
                 spacemacs/load-yasnippet toc-org-enable org-download-enable
                 org-bullets-mode dotspacemacs//prettify-spacemacs-docs
                 spacemacs//org-babel-do-load-languages
spacemacs//evil-org-mode
                 org-eldoc-load spacemacs//init-company-org-mode
company-mode)
 org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-agenda-restore-windows-after-quit t
 org-confirm-elisp-link-function 'yes-or-no-p
 org-startup-with-inline-images t
 org-download-file-format-function 'org-download-file-format-default
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-bibtex-headline-format-function #[257 "\300 \236A\207" [:title] 3
"\n\n(fn ENTRY)"]
 org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
 org-babel-pre-tangle-hook '(save-buffer)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-babel-load-languages '((shell . t) (python . t) (C . t) (gnuplot . t)
(java . t))
 org-log-done 'time
 org-link-file-path-type 'relative
 org-ascii-format-drawer-function #[771 " \207" [] 4 "\n\n(fn NAME CONTENTS
WIDTH)"]
 org-src-lang-modes '(("arduino" . arduino) ("redis" . redis) ("php" . php)
("C" . c)
                      ("C++" . c++) ("asymptote" . asy) ("bash" . sh)
                      ("beamer" . latex) ("calc" . fundamental) ("cpp" .
c++)
                      ("ditaa" . artist) ("dot" . fundamental) ("elisp" .
emacs-lisp)
                      ("ocaml" . tuareg) ("screen" . shell-script) ("shell"
. sh)
                      ("sqlite" . sql))
 org-occur-hook '(org-first-headline-recenter)
 org-cycle-hook '(org-cycle-hide-archived-subtrees
org-cycle-show-empty-lines
                  org-optimize-window-after-visibility-change)
 org-speed-command-hook '(org-speed-command-activate
org-babel-speed-command-activate)
 org-clock-persist-file "/home/johannes/.emacs.d/.cache/org-clock-save.el"
 org-odt-format-inlinetask-function
'org-odt-format-inlinetask-default-function
 org-latex-prefer-user-labels t
 org-babel-tangle-lang-exts '(("java" . "java") ("D" . "d") ("C++" . "cpp")
                              ("python" . "py") ("emacs-lisp" . "el")
("elisp" . "el"))
 org-publish-timestamp-directory
"/home/johannes/.emacs.d/.cache/.org-timestamps/"
 org-export-async-init-file
"/home/johannes/.emacs.d/layers/+emacs/org/local/org-async-init.el"
 org-id-locations-file "/home/johannes/.emacs.d/.cache/.org-id-locations"
 org-confirm-shell-link-function 'yes-or-no-p
 org-link-parameters '(("attachment" :follow org-attach-open-link :export
                        org-attach-export-link :complete
org-attach-complete-link)
                       ("id" :follow org-id-open)
                       ("eww" :follow eww :store org-eww-store-link)
                       ("rmail" :follow org-rmail-open :store
org-rmail-store-link)
                       ("mhe" :follow org-mhe-open :store
org-mhe-store-link)
                       ("irc" :follow org-irc-visit :store
org-irc-store-link :export
                        org-irc-export)
                       ("info" :follow org-info-open :export
org-info-export :store
                        org-info-store-link)
                       ("gnus" :follow org-gnus-open :store
org-gnus-store-link)
                       ("docview" :follow org-docview-open :export
org-docview-export
                        :store org-docview-store-link)
                       ("bibtex" :follow org-bibtex-open :store
org-bibtex-store-link)
                       ("bbdb" :follow org-bbdb-open :export
org-bbdb-export :complete
                        org-bbdb-complete-link :store org-bbdb-store-link)
                       ("w3m" :store org-w3m-store-link)
                       ("orgit-rev" :store orgit-rev-store :follow
orgit-rev-open
                        :export orgit-rev-export :complete
orgit-rev-complete-link)
                       ("orgit-log" :store orgit-log-store :follow
orgit-log-open
                        :export orgit-log-export :complete
orgit-log-complete-link)
                       ("orgit" :store orgit-status-store :follow
orgit-status-open
                        :export orgit-status-export :complete
                        orgit-status-complete-link)
                       ("file+sys") ("file+emacs")
                       ("shell" :follow org-link--open-shell)
                       ("news" :follow
                        #[257 "\301\300\302 Q!\207" ["news" browse-url ":"]
5
                          "\n\n(fn URL)"]
                        )
                       ("mailto" :follow
                        #[257 "\301\300\302 Q!\207" ["mailto" browse-url
":"] 5
                          "\n\n(fn URL)"]
                        )
                       ("https" :follow spacemacs//space-doc-open)
                       ("http" :follow
                        #[257 "\301\300\302 Q!\207" ["http" browse-url ":"]
5
                          "\n\n(fn URL)"]
                        )
                       ("ftp" :follow
                        #[257 "\301\300\302 Q!\207" ["ftp" browse-url ":"] 5
                          "\n\n(fn URL)"]
                        )
                       ("help" :follow org-link--open-help)
                       ("file" :complete org-link-complete-file)
                       ("elisp" :follow org-link--open-elisp)
                       ("doi" :follow org-link--open-doi))
 org-latex-format-headline-function
'org-latex-format-headline-default-function
 org-present-mode-hook '(spacemacs//org-present-start)
 org-link-translation-function 'toc-org-unhrefify
 org-link-elisp-confirm-function 'yes-or-no-p
 org-latex-format-inlinetask-function
'org-latex-format-inlinetask-default-function
 org-tab-before-tab-emulation-hook '(org-tempo-complete-tag)
 org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-image-actual-width nil
 org-present-mode-quit-hook '(spacemacs//org-present-end)
 org-html-format-headline-function
'org-html-format-headline-default-function
 org-agenda-custom-commands '(("u" "Urgent things and phone calls"
                               ((tags "URGENT"
                                 ((org-agenda-overriding-header "Urgent
things to do")))
                                (tags "PHONE"
                                 ((org-agenda-overriding-header "Phone
calls to do")))
                                )
                               nil nil)
                              )
 org-download-link-format-function
'org-download-link-format-function-default
 org-download-abbreviate-filename-function 'file-relative-name
 org-default-notes-file "/home/johannes/org/notes.org"
 )

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

             reply	other threads:[~2020-05-16 15:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-15 18:52 Johannes Wasmer [this message]
2020-05-16 17:06 ` Bug: babel python html export error [9.3.6 (9.3.6-25-g685b2c-elpaplus @ /home/johannes/.emacs.d/elpa/26.3/develop/org-plus-contrib-20200330/)] Nicolas Goaziou
2020-05-30  9:42   ` Johannes Wasmer

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='CAPb=8-9T0LjfHFMm=f2p4LzeE2LgsaNO-gBaEknLVCWoWYk3nw@mail.gmail.com' \
    --to=johannes.wasmer@gmail.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).