renard / o-blog

Standalone orgmode blog exporter. DEPECATED, NOT MAINTAINED
http://renard.github.com/o-blog-v2
260 stars 58 forks source link

sample.org gives error on publish #8

Closed pchalasani closed 12 years ago

pchalasani commented 12 years ago

I have emacs24, Org-mode version 7.7 (release_7.7.286.gf075a.dirty). When I follow the instructions and do M-x org-publish-blog I get the dreaded wrong type argument: stringp, nil. I dumped the trace by setting debug-on-error to t:

Debugger entered--Lisp error: (void-variable require)                                                                                        
  eval(require nil)                                                                                                                            eval-expression(require nil)                                                                                                               
  call-interactively(eval-expression nil nil)                                                                                                  recursive-edit()                                                                                                                           
  debug(error (wrong-type-argument stringp nil))                                                                                               string-match(nil "")                                                                                                                       
  byte-code("\304\211^X^Y\305\n^K\"\203A^@^H\204^U^@^K\306\211\224O^P   ^K\306\211\224O\307\310\225\205(^@\311\312\313\310^K\"\"\311\314\315$  org-html-handle-time-stamps("")                                                                                                            
  byte-code("^H\203^S^@\306     \n\"\203^S^@\307c\210\310 \210\311^P^H\203#^@\312\n!\313\261^B\210\314\315\311\"\210^K\203]^@\306\316\n\"\20$  org-export-as-html(nil nil nil string t)                                                                                                   
  (substring-no-properties (org-export-as-html nil nil nil (quote string) t))                                                                  (progn (insert string) (substring-no-properties (org-export-as-html nil nil nil (quote string) t)))                                        
  (unwind-protect (progn (insert string) (substring-no-properties (org-export-as-html nil nil nil (quote string) t))) (and (buffer-name temp$  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert string) (substring-no-properties (org-export-as-html nil nil $
  (with-current-buffer temp-buffer (unwind-protect (progn (insert string) (substring-no-properties (org-export-as-html nil nil nil (quote st$  (let ((temp-buffer (generate-new-buffer " *temp*"))) (with-current-buffer temp-buffer (unwind-protect (progn (insert string) (substring-no$
  (with-temp-buffer (insert string) (substring-no-properties (org-export-as-html nil nil nil (quote string) t)))                               ob-export-string-to-html("#+OPTIONS: H:7 num:nil  toc:8 d:nil todo:nil <:nil pri:nil tags:nil\n\n\nA blog consists of org entries. Each en$
  (make-ob:post :title title :tags tags :timestamp timestamp :year year :month month :day day :filename filename :filepath filepath :path-to$  (let* ((title (match-string-no-properties 4)) (tags (loop for tn in (org-get-local-tags) with td do (setf td (replace-regexp-in-string "_"$
  (progn (let* ((title (match-string-no-properties 4)) (tags (loop for tn in (org-get-local-tags) with td do (setf td (replace-regexp-in-str$  (if (search-forward-regexp org-complex-heading-regexp (point-at-eol) t) (progn (let* ((title (match-string-no-properties 4)) (tags (loop f$
  (when (search-forward-regexp org-complex-heading-regexp (point-at-eol) t) (let* ((title (match-string-no-properties 4)) (tags (loop for tn$  ob-parse-entry()                                                                                                                           
  (save-current-buffer (set-buffer (marker-buffer marker)) (goto-char (marker-position marker)) (ob-parse-entry))                              (with-current-buffer (marker-buffer marker) (goto-char (marker-position marker)) (ob-parse-entry))                                         
  (list (with-current-buffer (marker-buffer marker) (goto-char (marker-position marker)) (ob-parse-entry)))                                    (nconc posts (list (with-current-buffer (marker-buffer marker) (goto-char (marker-position marker)) (ob-parse-entry))))                    
  (setq posts (nconc posts (list (with-current-buffer (marker-buffer marker) (goto-char (marker-position marker)) (ob-parse-entry)))))         (while (consp --cl-var--) (setq marker (car --cl-var--)) (setq posts (nconc posts (list (with-current-buffer (marker-buffer marker) (goto-$
  (let* ((--cl-var-- markers) (marker nil) (posts nil) (posts nil)) (while (consp --cl-var--) (setq marker (car --cl-var--)) (setq posts (nc$  (catch (quote --cl-block-nil--) (let* ((--cl-var-- markers) (marker nil) (posts nil) (posts nil)) (while (consp --cl-var--) (setq marker ($
  (cl-block-wrapper (catch (quote --cl-block-nil--) (let* ((--cl-var-- markers) (marker nil) (posts nil) (posts nil)) (while (consp --cl-var$  (block nil (let* ((--cl-var-- markers) (marker nil) (posts nil) (posts nil)) (while (consp --cl-var--) (setq marker (car --cl-var--)) (set$
  (loop for marker in markers with posts = nil collect (with-current-buffer (marker-buffer marker) (goto-char (marker-position marker)) (ob-$  (save-excursion (loop for marker in markers with posts = nil collect (with-current-buffer (marker-buffer marker) (goto-char (marker-positi$
  ob-parse-entries((#<marker at 20348 in sample.org> #<marker at 21507 in sample.org> #<marker at 22006 in sample.org> #<marker at 28380 in $  (let* ((start-time (current-time)) (default-directory (file-name-directory file)) (BLOG (ob-parse-blog-headers)) (POSTS (ob-parse-entries $
  (save-current-buffer (set-buffer (or (get-file-buffer file) (find-file file))) (run-hooks (quote o-blog-before-publish-hook)) (let* ((star$  (with-current-buffer (or (get-file-buffer file) (find-file file)) (run-hooks (quote o-blog-before-publish-hook)) (let* ((start-time (curre$
  org-publish-blog-sync("/home/prasadch/.emacs.d/o-blog/example/sample.org")                                                                   (if async (org-publish-blog-async file) (org-publish-blog-sync file))                                                                      
  org-publish-blog("/home/prasadch/.emacs.d/o-blog/example/sample.org" nil)                                                                    call-interactively(org-publish-blog t nil)                                                                                                 
  execute-extended-command(nil)                                                                                                                call-interactively(execute-extended-command nil nil)        
renard commented 12 years ago

Hi,

Can you please follow http://renard.github.com/o-blog/bug-report.html and tell me if this still happens?

Cheers

pchalasani commented 12 years ago

Tried it, that went smoothly -- it opened an emacs window, then it closed with no error messages. I see that org is at version 7.8 and mine is 7.7 -- could that be it?

I'm scared of upgrading to the new org mode -- when something breaks in emacs it takes a lot of time hunting for solutions to fix it!

On Mar 22, 2012, at 11:00 AM, Sébastien Gross wrote:

Hi,

Can you please follow http://renard.github.com/o-blog/bug-report.html and tell me if this still happens?

Cheers


Reply to this email directly or view it on GitHub: https://github.com/renard/o-blog/issues/8#issuecomment-4639956

renard commented 12 years ago

Ok thus the org version is in cause.

You still can use a separate org installation a put the specific configuration to build your blog. Maybe you should look at the the org-publish-blog-async or run org-publish-blog with the C-u prefix.

renard commented 12 years ago

Hi,

Can you please try what defined on http://renard.github.com/o-blog/bug-report.html as you did before:

rm -rf ~/dev/.emacs.d
mkdir -p ~/dev/.emacs.d
cd ~/dev/.emacs.d
git clone git://github.com/renard/o-blog.git
git clone git://orgmode.org/org-mode.git

Then checkout your org-mode version:

cd ~/dev/.emacs.d/org-mode
git checkout f075a

and run:

cd ~/dev/
HOME=`pwd` emacs --debug-init --batch  -Q  -l ./.emacs.d/o-blog/sample-init.el --eval     '(progn (setq browse-url-generic-program "x-www-browser" browse-url-browser-function (quote browse-url-generic)) (ob-build-sample))'

With versions:

GNU Emacs 24.0.93.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of 2012-02-22 on cw-bkp0, modified by Debian
Org-mode version 7.8.03 (release_7.7.286.gf075a)
o-blog version 1.0-16-g19694aa

I got that result:

[...]

Org-mode version 7.8.03 (release_7.7.286.gf075a)
o-blog version 1.0-16-g19694aa

"GNU Emacs 24.0.93.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2012-02-22 on cw-bkp0, modified by Debian
Org-mode version 7.8.03 (release_7.7.286.gf075a)
o-blog version 1.0-16-g19694aa
"

[...]

Blog ~/.emacs.d/o-blog/example/sample.org published in 7.169s

As your org version is dirty that might be the cause of your issue.