Re: 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/)]

2020-05-30 Thread Johannes Wasmer
Okay, thank you Nicolas. I will let you know if I find something out.
Best, Johannes

Am Sa., 16. Mai 2020 um 19:06 Uhr schrieb Nicolas Goaziou <
m...@nicolasgoaziou.fr>:

> Hello,
>
> Johannes Wasmer  writes:
>
> > 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.
>
> FWIW, I cannot reproduce it.
>
> > 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.
>
> It may be specific to the package providing
> `pythonic-python-readable-file-name' instead. I suggest to look there.
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: 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/)]

2020-05-16 Thread Nicolas Goaziou
Hello,

Johannes Wasmer  writes:

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

FWIW, I cannot reproduce it.

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

It may be specific to the package providing
`pythonic-python-readable-file-name' instead. I suggest to look there.

Regards,

-- 
Nicolas Goaziou



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/)]

2020-05-16 Thread Johannes Wasmer
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 
--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" . fu