New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[org-mode] complier org-mode post file failed #278

Closed
huhuang03 opened this Issue Jun 6, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@huhuang03

huhuang03 commented Jun 6, 2018

The log is:

Scanning posts..........done!
.  render_posts:cache/posts/mh-snnipt.html
Created img-url link.
Wrong type argument: char-or-string-p, nil
TaskError - taskid:render_posts:cache/posts/mh-snnipt.html
PythonAction Error
Traceback (most recent call last):
  File "/Users/th/source/huhuang03.github.io/plugins/orgmode/orgmode.py", line 74, in compile
    subprocess.check_call(command)
  File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['emacs', '--batch', '-l', '/Users/th/source/huhuang03.github.io/plugins/orgmode/init.el', '--eval', '(nikola-html-export "/Users/th/source/huhuang03.github.io/posts/mh-snnipt.org" "/Users/th/source/huhuang03.github.io/cache/posts/mh-snnipt.html")']' returned non-zero exit status 255.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/th/source/nikola/lib/python3.6/site-packages/doit/action.py", line 424, in execute
    returned_value = self.py_callable(*self.args, **kwargs)
  File "/Users/th/source/nikola/lib/python3.6/site-packages/nikola/post.py", line 579, in compile
    lang)
  File "/Users/th/source/huhuang03.github.io/plugins/orgmode/orgmode.py", line 94, in compile
    source, e.returncode))
Exception: Cannot compile posts/mh-snnipt.org -- bad org-mode configuration (return code 255)

########################################
render_posts:cache/posts/mh-snnipt.html <stdout>:

Can you find wha't wrong by this log, or I should perform my post file.org, or any test should I run?

@huhuang03

This comment has been minimized.

huhuang03 commented Jun 11, 2018

I have already find the reason, because my source block didn't not specify the language, and the plugin/orgmode/inti.el must have a language.

@huhuang03 huhuang03 closed this Jun 11, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment