Re: [O] Wrong type argument listp on export

2011-07-21 Thread Aankhen
Hi,

On Wed, Jul 20, 2011 at 16:36, Dirk Scharff dirk.scha...@googlemail.com wrote:
 I narrowed down my problem to the following short example:

 * My Test Block
  This is a test
  #+source testblock
  #+begin_src python :var x=3 :exports both :results output
  print x*x
  #+end_src

 executing the source-bock yields the correct result. When exporting this
 file however I get the folowing error:

 Wrong type argument: listp, 3

I can confirm this using Org-mode from git (d8bd43e).  Enabling
debugging shows that the problem occurs in ‘org-babel-sha1-hash’ when
it tries to run ‘copy-seq’ on ‘(x . 3)’ at line 759.  It doesn’t seem
to be specific to Python—using ‘:var foo=bar’ seems to be what
triggers it.

Aankhen



Re: [O] Wrong type argument listp on export

2011-07-21 Thread Eric Schulte
Aankhen aank...@gmail.com writes:

 Hi,

 On Wed, Jul 20, 2011 at 16:36, Dirk Scharff dirk.scha...@googlemail.com 
 wrote:
 I narrowed down my problem to the following short example:

 * My Test Block
  This is a test
  #+source testblock
  #+begin_src python :var x=3 :exports both :results output
  print x*x
  #+end_src

 executing the source-bock yields the correct result. When exporting this
 file however I get the folowing error:

 Wrong type argument: listp, 3

 I can confirm this using Org-mode from git (d8bd43e).  Enabling
 debugging shows that the problem occurs in ‘org-babel-sha1-hash’ when
 it tries to run ‘copy-seq’ on ‘(x . 3)’ at line 759.  It doesn’t seem
 to be specific to Python—using ‘:var foo=bar’ seems to be what
 triggers it.


Thanks Dirk for pointing out this problem and thanks Aankhen for
isolating the offending line in the code.

I've just pushed up a fix -- Eric


 Aankhen


-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] Wrong type argument listp on export

2011-07-21 Thread Dirk Scharff
Hi Eric,

thanks again for your support. I pulled again from git 
(release_7.6.146.g6b389). I'm still having difficulties with this. I'll attach 
your something.org example from earlier in a slightly modified version to fit 
this case. 


something.org
Description: Binary data

When I C-c C-e A on this file i still get the same error.

I'm not good in using debug-on-error yet (and I don't know Lisp at all…), so 
I'll just paste the trace below this for now. 

Best regards,
Dirk. 

Debugger entered--Lisp error: (wrong-type-argument listp 3)
  copy-seq((x . 3))
  #[(G28402 G28403 arg) A\203
\303A!\202A\211\205[\304!\205$  :?\205$ G\305U?\205[
\203@\306\235\203\307\nJ!\310\\202[
;\203Z@\311\235\203Z\312\313\307\nJ\314!!\310\\315#\202[  )\207 
[arg v G28402 copy-seq sequencep 0 (:result-params) sort string (:results 
:exports) mapconcat identity split-string  ] 7](cl-var--28400-- 
cl-var--28401-- (:var x . 3))
  apply(#[(G28402 G28403 arg) A\203
\303A!\202A\211\205[\304!\205$  :?\205$ G\305U?\205[
\203@\306\235\203\307\nJ!\310\\202[
;\203Z@\311\235\203Z\312\313\307\nJ\314!!\310\\315#\202[  )\207 
[arg v G28402 copy-seq sequencep 0 (:result-params) sort string (:results 
:exports) mapconcat identity split-string  ] 7] cl-var--28400-- 
cl-var--28401-- (:var x . 3))
  (lambda (rest --cl-rest--) (apply #[(G28402 G28403 arg) A\203
\303A!\202A\211\205[\304!\205$  :?\205$ G\305U?\205[
\203@\306\235\203\307\nJ!\310\\202[
;\203Z@\311\235\203Z\312\313\307\nJ\314!!\310\\315#\202[  )\207 
[arg v G28402 copy-seq sequencep 0 (:result-params) sort string (:results 
:exports) mapconcat identity split-string  ] 7] (quote cl-var--28400--) 
(quote cl-var--28401--) --cl-rest--))((:var x . 3))
  #[(G28404 G28405 arg) J !\211\205
\303\304\n\)\207 [G28405 arg normalized format %S] 4](cl-var--28400-- 
cl-var--28401-- (:var x . 3))
  apply(#[(G28404 G28405 arg) J   !\211\205
\303\304\n\)\207 [G28405 arg normalized format %S] 4] cl-var--28400-- 
cl-var--28401-- (:var x . 3))
  (lambda (rest --cl-rest--) (apply #[(G28404 G28405 arg) J  !\211\205
\303\304\n\)\207 [G28405 arg normalized format %S] 4] (quote 
cl-var--28400--) (quote cl-var--28401--) --cl-rest--))((:var x . 3))
  mapcar((lambda (rest --cl-rest--) (apply #[(G28404 G28405 arg) J   
!\211\205
\303\304\n\)\207 [G28405 arg normalized format %S] 4] (quote 
cl-var--28400--) (quote cl-var--28401--) --cl-rest--)) ((:cache . no) 
(:colname-names) (:comments . ) (:exports . both) (:hlines . no) (:noweb 
. no) (:padline . ) (:padnewline . yes) (:result-params replace) 
(:result-type . value) (:results . replace) (:rowname-names) (:session . 
none) (:shebang . ) (:tangle . no) (:var x . 3)))
  org-babel-sha1-hash((sh echo $x ((:cache . no) (:colname-names) 
(:comments . ) (:exports . both) (:hlines . no) (:noweb . no) (:padline 
. ) (:padnewline . yes) (:result-params replace) (:result-type . value) 
(:results . replace) (:rowname-names) (:session . none) (:shebang . ) 
(:tangle . no) (:var x . 3))  nil 0))
  org-babel-exp-src-block(#(echo $x 0 7 (fontified t font-lock-fontified t 
line-prefix #(   0 2 (face org-indent)) wrap-prefix #(   0 2 (face 
org-indent #(sh 0 2 (wrap-prefix #(   0 2 (face org-indent)) 
line-prefix #(   0 2 (face org-indent)) font-lock-fontified t fontified t)) 
#(:exports 0 8 (wrap-prefix #(   0 2 (face org-indent)) line-prefix #(   
0 2 (face org-indent)) font-lock-fontified t fontified t)) #(both 0 4 
(wrap-prefix #(   0 2 (face org-indent)) line-prefix #(   0 2 (face 
org-indent)) font-lock-fontified t fontified t)) #(:var 0 4 (wrap-prefix #(  
 0 2 (face org-indent)) line-prefix #(   0 2 (face org-indent)) 
font-lock-fontified t fontified t)) #(x=3 0 3 (wrap-prefix #(   0 2 (face 
org-indent)) line-prefix #(   0 2 (face org-indent)) font-lock-fontified t 
fontified t)))
  apply(org-babel-exp-src-block #(echo $x 0 7 (fontified t 
font-lock-fontified t line-prefix #(   0 2 (face org-indent)) wrap-prefix #( 
  0 2 (face org-indent (#(sh 0 2 (wrap-prefix #(   0 2 (face 
org-indent)) line-prefix #(   0 2 (face org-indent)) font-lock-fontified t 
fontified t)) #(:exports 0 8 (wrap-prefix #(   0 2 (face org-indent)) 
line-prefix #(   0 2 (face org-indent)) font-lock-fontified t fontified t)) 
#(both 0 4 (wrap-prefix #(   0 2 (face org-indent)) line-prefix #(   0 2 
(face org-indent)) font-lock-fontified t fontified t)) #(:var 0 4 
(wrap-prefix #(   0 2 (face org-indent)) line-prefix #(   0 2 (face 
org-indent)) font-lock-fontified t fontified t)) #(x=3 0 3 (wrap-prefix #(  
 0 2 (face org-indent)) line-prefix #(   0 2 (face org-indent)) 
font-lock-fontified t fontified t
  
byte-code(\306\307\211\211\211\211\211\211\211\211\211\211*+,-./\310\311!\2110\205)\311K1\312\216\311\313M\210eb\210`\3142\3152\307\306#\203@\316\2243\316\2254\317\320!G

Re: [O] Wrong type argument listp on export

2011-07-21 Thread Nick Dokos
Dirk Scharff dirk.scha...@googlemail.com wrote:

 Hi Eric,
 
 thanks again for your support. I pulled again from git
 (release_7.6.146.g6b389). I'm still having difficulties with
 this. I'll attach your something.org example from earlier in a
 slightly modified version to fit this case.
 
 When I C-c C-e A on this file i still get the same error.
 

Did you reload org or restart emacs? Do you have old/stale .elc files?

I exported your something.org to html using an earlier version and got the error
you describe, but I then pulled, M-x org-reload and re-exported, this time with
no problem.

Nick

Org-mode version 7.6 (release_7.6.146.g6b389)



Re: [O] Wrong type argument listp on export

2011-07-21 Thread Dirk Scharff
Hi,

thanks for pointing that out, while I pulled, used make and restarted emacs, I 
skipped on a make clean before compiling again. I recompiled org-mode again 
(this time with clean) and it works now. 


Am 21.07.2011 um 22:55 schrieb Nick Dokos:

 Dirk Scharff dirk.scha...@googlemail.com wrote:
 
 Hi Eric,
 
 thanks again for your support. I pulled again from git
 (release_7.6.146.g6b389). I'm still having difficulties with
 this. I'll attach your something.org example from earlier in a
 slightly modified version to fit this case.
 
 When I C-c C-e A on this file i still get the same error.
 
 
 Did you reload org or restart emacs? Do you have old/stale .elc files?
 
 I exported your something.org to html using an earlier version and got the 
 error
 you describe, but I then pulled, M-x org-reload and re-exported, this time 
 with
 no problem.
 
 Nick
 
 Org-mode version 7.6 (release_7.6.146.g6b389)




Re: [O] Wrong type argument listp on export

2011-07-21 Thread Luke Crook
Eric Schulte schulte.eric at gmail.com writes:

 
 I've just pushed up a fix -- Eric
 

Thanks for fixing this.

-Luke




[O] Wrong type argument listp on export

2011-07-20 Thread Dirk Scharff

Hello,

I narrowed down my problem to the following short example:

* My Test Block
 This is a test
 #+source testblock
 #+begin_src python :var x=3 :exports both :results output
 print x*x
 #+end_src

executing the source-bock yields the correct result. When exporting 
this file however I get the folowing error:


Wrong type argument: listp, 3

Am I doing something wrong here?

I'm using Org-mode 7.6 (release_7.6.129.gfe0c).

regards,
Dirk.