{"action":"created","issue":{"url":"https://api.github.com/repos/getpelican/pelican/issues/1668","labels_url":"https://api.github.com/repos/getpelican/pelican/issues/1668/labels{/name}","comments_url":"https://api.github.com/repos/getpelican/pelican/issues/1668/comments","events_url":"https://api.github.com/repos/getpelican/pelican/issues/1668/events","html_url":"https://github.com/getpelican/pelican/issues/1668","id":62707069,"number":1668,"title":"org_reader does nothing?!","user":{"login":"dsteuer","id":6145735,"avatar_url":"https://avatars.githubusercontent.com/u/6145735?v=3","gravatar_id":"","url":"https://api.github.com/users/dsteuer","html_url":"https://github.com/dsteuer","followers_url":"https://api.github.com/users/dsteuer/followers","following_url":"https://api.github.com/users/dsteuer/following{/other_user}","gists_url":"https://api.github.com/users/dsteuer/gists{/gist_id}","starred_url":"https://api.github.com/users/dsteuer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsteuer/subscriptions","organizations_url":"https://api.github.com/users/dsteuer/orgs","repos_url":"https://api.github.com/users/dsteuer/repos","events_url":"https://api.github.com/users/dsteuer/events{/privacy}","received_events_url":"https://api.github.com/users/dsteuer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-18T14:28:16Z","updated_at":"2015-03-18T15:02:13Z","closed_at":"2015-03-18T15:02:13Z","body":"Hi! I´m completely new to pelican, so maybe my problem will have a trivial solution. \r\n\r\nMy setting:\r\n- I want to use org-mode as source format. There is a plugin org_reader in pelican-plugins. So\r\n  it should be easy.\r\n- I have successfully installed pelican 3.5.0 on OpenSuse 13.1\r\n- My testproject was created by pelican quickstart. Posts in markdown are translated as expected.\r\n- If I use org-syntax I get an error.\r\nThis  is my file ./content/first.org:\r\n-----\r\n#+TITLE: My Second Review\r\n#+DATE: 2010-12-03 \r\n#+CATEGORY: Review\r\n\r\n* Following is a review of my favorite mechanical keyboard.\r\n  very important message\r\n-----\r\nThis is my pelicanconf.py:\r\n-----\r\n# -*- coding: utf-8 -*- #\r\nfrom __future__ import unicode_literals\r\n\r\nAUTHOR = u'dsteuer'\r\nSITENAME = u'Endloser Test'\r\nSITEURL = ''\r\n\r\nPATH = 'content'\r\n\r\nTIMEZONE = 'Europe/Paris'\r\n\r\nDEFAULT_LANG = u'de'\r\n\r\nPLUGIN_PATHS = [\"pelican-plugins\"]\r\nPLUGINS = [\"org_reader\"]\r\n\r\nREADERS = {'org': \"org_reader\"}\r\n\r\n# Feed generation is usually not desired when developing\r\nFEED_ALL_ATOM = None\r\nCATEGORY_FEED_ATOM = None\r\nTRANSLATION_FEED_ATOM = None\r\nAUTHOR_FEED_ATOM = None\r\nAUTHOR_FEED_RSS = None\r\n\r\n# Blogroll\r\nLINKS = (('Pelican', 'http://getpelican.com/'),\r\n         ('Python.org', 'http://python.org/'),\r\n         ('Jinja2', 'http://jinja.pocoo.org/'),\r\n         ('You can modify those links in your config file', '#'),)\r\n\r\n# Social widget\r\nSOCIAL = (('You can add links in your config file', '#'),\r\n          ('Another social link', '#'),)\r\n\r\nDEFAULT_PAGINATION = 10\r\n\r\n# Uncomment following line if you want document-relative URLs when developing\r\n#RELATIVE_URLS = True\r\n\r\n# Settings for org-reader\r\nORG_READER_EMACS_LOCATION = [\"/usr/bin/emacs\"]\r\nORG_READER_EMACS_SETTINGS = [\"/home/steuer/.emacs.d/init.el\"]\r\n\r\n-----\r\n And this is my resulting debug output:\r\n\r\n-----\r\npelican --debug content/\r\nDEBUG: Adding current directory to system path\r\nDEBUG: Temporarily adding PLUGIN_PATHS to system path\r\nDEBUG: Loading plugin `org_reader`\r\nDEBUG: Registering plugin `org_reader`\r\nDEBUG: Restoring system path\r\nDEBUG: Template list: [u'!simple/archives.html', u'!simple/article.html', u'!simple/author.html', u'!simple/authors.html', u'!simple/base.html', u'!simple/categories.html', u'!simple/category.html', u'!simple/gosquared.html', u'!simple/index.html', u'!simple/page.html', u'!simple/pagination.html', u'!simple/period_archives.html', u'!simple/tag.html', u'!simple/tags.html', u'!simple/translations.html', u'analytics.html', u'archives.html', u'article.html', u'article_infos.html', u'author.html', u'authors.html', u'base.html', u'categories.html', u'category.html', u'comments.html', u'disqus_script.html', u'github.html', u'gosquared.html', u'index.html', u'page.html', u'pagination.html', u'period_archives.html', u'tag.html', u'taglist.html', u'tags.html', u'translations.html', u'twitter.html']\r\nDEBUG: Read file first.org -> Article\r\nDEBUG: Signal article_generator_preread.send(ArticlesGenerator)\r\n-> Reading Org file /home/steuer/Test/Pelican/content/first.org\r\nDEBUG: OrgReader: running command `[[u'/usr/bin/emacs'], '--batch', '-l', [u'/home/steuer/.emacs.d/init.el'], '-l', '/home/steuer/Test/Pelican/pelican-plugins/org_reader/org_reader.el', '--eval', '(org->pelican \"/home/steuer/Test/Pelican/content/first.org\" \\'html)']`\r\nERROR: Could not process ./first.org\r\n  | 'list' object has no attribute 'rfind'\r\n  |___\r\n  | Traceback (most recent call last):\r\n  |   File \"/usr/lib/python2.7/site-packages/pelican/generators.py\", line 502, in generate_context\r\n  |     context_sender=self)\r\n  |   File \"/usr/lib/python2.7/site-packages/pelican/readers.py\", line 459, in read_file\r\n  |     content, reader_metadata = reader.read(path)\r\n  |   File \"/home/steuer/Test/Pelican/pelican-plugins/org_reader/org_reader.py\", line 71, in read\r\n  |     json_result = subprocess.check_output(cmd)\r\n  |   File \"/usr/lib64/python2.7/subprocess.py\", line 566, in check_output\r\n  |     process = Popen(stdout=PIPE, *popenargs, **kwargs)\r\n  |   File \"/usr/lib64/python2.7/subprocess.py\", line 709, in __init__\r\n  |     errread, errwrite)\r\n  |   File \"/usr/lib64/python2.7/subprocess.py\", line 1326, in _execute_child\r\n  |     raise child_exception\r\n  | AttributeError: 'list' object has no attribute 'rfind'\r\n-> Writing /home/steuer/Test/Pelican/output/index.html\r\n-> Writing /home/steuer/Test/Pelican/output/tags.html\r\n-> Writing /home/steuer/Test/Pelican/output/categories.html\r\n-> Writing /home/steuer/Test/Pelican/output/authors.html\r\n-> Writing /home/steuer/Test/Pelican/output/archives.html\r\nDone: Processed 0 article(s), 0 draft(s) and 0 page(s) in 0.10 seconds.\r\n\r\n-----\r\n\r\nAny help very appreciated.\r\nDetlef"},"comment":{"url":"https://api.github.com/repos/getpelican/pelican/issues/comments/83011385","html_url":"https://github.com/getpelican/pelican/issues/1668#issuecomment-83011385","issue_url":"https://api.github.com/repos/getpelican/pelican/issues/1668","id":83011385,"user":{"login":"dsteuer","id":6145735,"avatar_url":"https://avatars.githubusercontent.com/u/6145735?v=3","gravatar_id":"","url":"https://api.github.com/users/dsteuer","html_url":"https://github.com/dsteuer","followers_url":"https://api.github.com/users/dsteuer/followers","following_url":"https://api.github.com/users/dsteuer/following{/other_user}","gists_url":"https://api.github.com/users/dsteuer/gists{/gist_id}","starred_url":"https://api.github.com/users/dsteuer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsteuer/subscriptions","organizations_url":"https://api.github.com/users/dsteuer/orgs","repos_url":"https://api.github.com/users/dsteuer/repos","events_url":"https://api.github.com/users/dsteuer/events{/privacy}","received_events_url":"https://api.github.com/users/dsteuer/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T15:02:13Z","updated_at":"2015-03-18T15:02:13Z","body":"Duuh. I should have guessed that myself...\r\nThank you a lot. My first.org now gets processed just fine.\r\nMay be pelican-plugins/org_reader/org_reader.el should get a line (require 'json)? Or at least \r\nthat should be mentioned in pelican-plugins/org_reader/README.md ?\r\n\r\nThx again! I close this thread."}}