From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: bug in 8.2.5f for using tables as data in python? Date: Tue, 21 Jan 2014 21:33:16 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b1636c38107cf04f085f241 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5nd2-0005jo-Ij for emacs-orgmode@gnu.org; Tue, 21 Jan 2014 21:33:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5nd1-0000t3-7X for emacs-orgmode@gnu.org; Tue, 21 Jan 2014 21:33:20 -0500 Received: from mail-pb0-x230.google.com ([2607:f8b0:400e:c01::230]:35553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5nd0-0000su-Vx for emacs-orgmode@gnu.org; Tue, 21 Jan 2014 21:33:19 -0500 Received: by mail-pb0-f48.google.com with SMTP id rr13so9186851pbb.7 for ; Tue, 21 Jan 2014 18:33:16 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" --047d7b1636c38107cf04f085f241 Content-Type: text/plain; charset=ISO-8859-1 Hi all, I am having a problem in 8.2.5 using a table as a data source for a python block. I get this particular error: org-babel-python-var-to-python: Wrong type argument: stringp, 1 It seems to be that the 1 is not a string, but a number. Here is what I have to reproduce the problem. the table works fine for an emacs-lisp block. #+BEGIN_SRC emacs-lisp :results value (org-version) #+END_SRC #+RESULTS: : 8.2.5f #+BEGIN_SRC python print 6 #+END_SRC #+RESULTS: : 6 #+tblname: data | a | b | |---+---| | 1 | 2 | | 3 | 4 | | 5 | 6 | #+BEGIN_SRC emacs-lisp :var tt=data (princ tt) #+END_SRC #+RESULTS: : ((1 2) (3 4) (5 6)) #+BEGIN_SRC python :var tt=data print tt #+END_SRC executing Python code block... org-babel-python-var-to-python: Wrong type argument: stringp, 1 Does anyone else see this? John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu --047d7b1636c38107cf04f085f241 Content-Type: text/html; charset=ISO-8859-1
Hi all,

I am having a problem in 8.2.5 using a table as a data source for a python block. I get this particular error: org-babel-python-var-to-python: Wrong type argument: stringp, 1
It seems to be that the 1 is not a string, but a number.

Here is what I have to reproduce the problem. the table works fine for an emacs-lisp block.


#+BEGIN_SRC emacs-lisp :results value
(org-version)
#+END_SRC

#+RESULTS:
: 8.2.5f

#+BEGIN_SRC python
print 6
#+END_SRC

#+RESULTS:
: 6

#+tblname: data
| a | b |
|---+---|
| 1 | 2 |
| 3 | 4 |
| 5 | 6 |

#+BEGIN_SRC emacs-lisp :var tt=data
(princ tt)
#+END_SRC

#+RESULTS:
: ((1 2) (3 4) (5 6))

#+BEGIN_SRC python :var tt=data
print tt
#+END_SRC

executing Python code block...
org-babel-python-var-to-python: Wrong type argument: stringp, 1

Does anyone else see this?


John

-----------------------------------
John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu

--047d7b1636c38107cf04f085f241--