MARKDOWN_EXTENSIONS error

60 views
Skip to first unread message

Icaro Perseo

unread,
May 11, 2013, 12:05:44 PM5/11/13
to nikola-...@googlegroups.com
Good day, just do git pull and I'm testing the new features but I get an error:

Scanning posts..done!
.  render_posts:cache/posts/perseos-blog-2-3-released-sistema-de-comentarios-mejorado.html.en
########################################
TaskError - taskid:render_posts:cache/posts/perseos-blog-2-3-released-sistema-de-comentarios-mejorado.html.en
PythonAction Error
Traceback (most recent call last):
  File "/home/user/.virtualenvs/nikola/local/lib/python2.7/site-packages/doit/action.py", line 326, in execute
    returned_value = self.py_callable(*self.args, **kwargs)
  File "/home/user/.virtualenvs/nikola/local/lib/python2.7/site-packages/nikola/plugins/compile_markdown/__init__.py", line 68, in compile_html
    self.extensions += self.SITE.config.get("MARKDOWN_EXTENSIONS")
AttributeError: 'CompileMarkdown' object has no attribute 'SITE'

In my conf.py I have established the following:


MARKDOWN_EXTENSIONS = ['fenced_code', 'codehilite','abbr', 'footnotes', 'tables']

Hope you can help me. Thanks in advance

Icaro Perseo

unread,
May 11, 2013, 12:08:21 PM5/11/13
to nikola-...@googlegroups.com
I just popped a question, to use these features you must install some extra dependency via pip?

Chris “Kwpolska” Warrick

unread,
May 11, 2013, 12:50:29 PM5/11/13
to Nikola—Discuss
On Sat, May 11, 2013 at 6:08 PM, Icaro Perseo <icaro....@gmail.com> wrote:
> I just popped a question, to use these features you must install some extra
> dependency via pip?

According to the source code, it wants to access self.SITE which
doesn’t exist. What should be done there is an import of SITE.config
from somewhere else. So, this is a bug in Nikola’s codebase.
--
Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16
stop html mail | always bottom-post
http://asciiribbon.org | http://caliburn.nl/topposting.html

Roberto Alsina

unread,
May 11, 2013, 12:58:11 PM5/11/13
to nikola-...@googlegroups.com
On 11/05/13 13:50, Chris �Kwpolska� Warrick wrote:
> On Sat, May 11, 2013 at 6:08 PM, Icaro Perseo <icaro....@gmail.com> wrote:
>> I just popped a question, to use these features you must install some extra
>> dependency via pip?
> According to the source code, it wants to access self.SITE which
> doesn�t exist. What should be done there is an import of SITE.config
> from somewhere else. So, this is a bug in Nikola�s codebase.

Yes, my bad, I'll fix it in a minute.

Roberto Alsina

unread,
May 11, 2013, 1:11:29 PM5/11/13
to nikola-...@googlegroups.com
There, should be ok now!

Icaro Perseo

unread,
May 11, 2013, 1:45:23 PM5/11/13
to nikola-...@googlegroups.com
quite so!

On the other hand I get the following error:

Scanning posts..done!
.  render_archive:output/en/archive/2013/05/index.html

Traceback (most recent call last):
  File "/home/user/.virtualenvs/nikola/local/lib/python2.7/site-packages/doit/doit_cmd.py", line 102, in run
    return self.sub_cmds[command].parse_execute(args)
  File "/home/user/.virtualenvs/nikola/local/lib/python2.7/site-packages/doit/cmd_base.py", line 58, in parse_execute
    return self.execute(params, args)
  File "/home/user/.virtualenvs/nikola/local/lib/python2.7/site-packages/doit/cmd_base.py", line 223, in execute
    return self._execute(**exec_params)
  File "/home/user/.virtualenvs/nikola/local/lib/python2.7/site-packages/doit/cmd_run.py", line 155, in _execute
    return runner.run_all(self.control.task_dispatcher())
  File "/home/user/.virtualenvs/nikola/local/lib/python2.7/site-packages/doit/runner.py", line 233, in run_all
    self.run_tasks(task_dispatcher)
  File "/home/user/.virtualenvs/nikola/local/lib/python2.7/site-packages/doit/runner.py", line 202, in run_tasks
    self.process_task_result(node, catched_excp)
  File "/home/user/.virtualenvs/nikola/local/lib/python2.7/site-packages/doit/runner.py", line 173, in process_task_result
    self.dep_manager.save_success(task)
  File "/home/user/.virtualenvs/nikola/local/lib/python2.7/site-packages/doit/dependency.py", line 310, in save_success
    timestamp = os.path.getmtime(dep)
  File "/home/user/.virtualenvs/nikola/lib/python2.7/genericpath.py", line 54, in getmtime
    return os.stat(filename).st_mtime
OSError: [Errno 2] No existe el archivo o el directorio: 'cache/posts/ejemplo.html.en'
Scanning posts..done!
########################################
DependencyError - taskid:render_archive:output/en/archive/2013/05/index.html
ERROR: Task 'render_archive:output/en/archive/2013/05/index.html' checking dependencies

Traceback (most recent call last):
  File "/home/user/.virtualenvs/nikola/local/lib/python2.7/site-packages/doit/runner.py", line 122, in select_task
    node.run_status = self.dep_manager.get_status(task, tasks_dict)
  File "/home/user/.virtualenvs/nikola/local/lib/python2.7/site-packages/doit/dependency.py", line 411, in get_status
    raise Exception("Dependent file '%s' does not exist." % dep)
Exception: Dependent file 'cache/posts/ejemplo.html.en' does not exist.

This error appears if you have activated the HIDE_UNTRANSLATED_POSTS = True option. Before starting to use MARKDOWN_EXTENSIONS did not happen :(.
Do not know if have relation with the same issue or not, but I did good idea to share it with you :)

El sábado, 11 de mayo de 2013 11:05:44 UTC-5, Icaro Perseo escribió:

Roberto Alsina

unread,
May 11, 2013, 5:55:28 PM5/11/13
to nikola-...@googlegroups.com
On 11/05/13 14:45, Icaro Perseo wrote:

This error appears if you have activated the HIDE_UNTRANSLATED_POSTS = True option. Before starting to use MARKDOWN_EXTENSIONS did not happen :(.
Do not know if have relation with the same issue or not, but I did good idea to share it with you :)

I'd be surprised if it's related. I'll take a look ASAP.
Reply all
Reply to author
Forward
0 new messages