all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug in 8.2.5f for using tables as data in python?
@ 2014-01-22  2:33 John Kitchin
  2014-01-22  4:52 ` Nick Dokos
       [not found] ` <1390394132.49030.YahooMailNeo@web171302.mail.ir2.yahoo.com>
  0 siblings, 2 replies; 7+ messages in thread
From: John Kitchin @ 2014-01-22  2:33 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1034 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1402 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-01-22 16:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-22  2:33 bug in 8.2.5f for using tables as data in python? John Kitchin
2014-01-22  4:52 ` Nick Dokos
     [not found] ` <1390394132.49030.YahooMailNeo@web171302.mail.ir2.yahoo.com>
2014-01-22 12:41   ` Miguel Ruiz
2014-01-22 14:22     ` Bastien
2014-01-22 15:58       ` Miguel Ruiz
2014-01-22 16:11         ` Bastien
2014-01-22 16:39           ` John Kitchin

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.