Re: [Orgmode] Org-babel init

2010-07-13 Thread Jordi Inglada
Hi Eric,

That worked. I am ready to go now!

Thank you!

Jordi

Eric Schulte writes:
 > Hi Jordi,
 > 
 > The attached simple-init.el file works for me with
 > 
 >   emacs -Q -l simple-init.el
 > 
 > Emacs started w/o error, and I was able to evaluate python code blocks
 > with no problem.
 > 
 > Please give it a try and let me know if it doesn't work -- Eric
 > 
 > (note you'll have to update the path to org/lisp)
 > xapplication/emacs-lisp[Click mouse-2 to save to a file]
 > 
 > Jordi Inglada  writes:
 > 
 > > Eric,
 > >
 > > Thanks for the answer.
 > >
 > > If I do that using "emacs -q", I get this message when loading the
 > > configuration:
 > >
 > > "Symbol's value as variable is void: org-babel-tangle-lang-exts"
 > >
 > > An after that when trying to evaluate this block from the tutorial
 > >
 > > #+begin_src python
 > > import time
 > > print("Hello, today's date is %s" % time.ctime())
 > > print('Two plus two is')
 > > return 2 + 2
 > > #+end_src
 > >
 > > I get this other message:
 > >
 > > "org-babel-execute-src-block: No org-babel-execute function for python!"
 > >
 > > If I put the configuration in my .emacs, the error I get is:
 > >
 > > "org-babel-result-hash: Symbol's value as variable is void: 
 > > org-babel-lob-one-liner-regexp"
 > >
 > > I guess I missed something.
 > >
 > > Thanks.
 > >
 > > Jordi
 > >
 > > Eric Schulte writes:
 > >  > Hi Jordi,
 > >  > 
 > >  > With the latest Org-mode from Git, Org-babel is now part of Org-mode, so
 > >  > you no longer need to add the contrib directory to your load path, or
 > >  > require org-babel-init.  The following should work for you.
 > >  > 
 > >  > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" 
 > > load-path))
 > >  > (require 'org-install)
 > >  > (require 'ob-python)
 > >  > 
 > >  > note that for a language-specific require, you now prefix the language
 > >  > name with ob- rather than org-babel-
 > >  > 
 > >  > For more complete information on the new setup, see
 > >  > 
 > > http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html
 > >  > 
 > >  > Cheers -- Eric
 > >  > 
 > >  > Jordi Inglada  writes:
 > >  > 
 > >  > > Hi all,
 > >  > >
 > >  > > I am having the same problem as this user here:
 > >  > >
 > >  > > http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html
 > >  > >
 > >  > > and the contrib/lisp directory is indeed in my load path.
 > >  > >
 > >  > > I am using a git changeset cloned today (Org-mode version 6.34trans
 > >  > > (release_6.36.608.gc1ef)).
 > >  > >
 > >  > > I have tried using "emacs -q" and then loading an .el file containing
 > >  > > only the following lines:
 > >  > >
 > >  > > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" 
 > > load-path))
 > >  > > (setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" 
 > > load-path))
 > >  > >
 > >  > > (require 'org-install)
 > >  > > (require 'org-babel-init)
 > >  > > (require 'org-babel-python)
 > >  > >
 > >  > > and I get the same result.
 > >  > >
 > >  > > Thank you very much for your help.
 > >  > >
 > >  > > Jordi
 > >  > >
 > >  > > ___
 > >  > > Emacs-orgmode mailing list
 > >  > > Please use `Reply All' to send replies to the list.
 > >  > > Emacs-orgmode@gnu.org
 > >  > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-babel init

2010-07-12 Thread Eric Schulte
Hi Jordi,

The attached simple-init.el file works for me with

  emacs -Q -l simple-init.el

Emacs started w/o error, and I was able to evaluate python code blocks
with no problem.

Please give it a try and let me know if it doesn't work -- Eric

(note you'll have to update the path to org/lisp)


simple-init.el
Description: application/emacs-lisp

Jordi Inglada  writes:

> Eric,
>
> Thanks for the answer.
>
> If I do that using "emacs -q", I get this message when loading the
> configuration:
>
> "Symbol's value as variable is void: org-babel-tangle-lang-exts"
>
> An after that when trying to evaluate this block from the tutorial
>
> #+begin_src python
> import time
> print("Hello, today's date is %s" % time.ctime())
> print('Two plus two is')
> return 2 + 2
> #+end_src
>
> I get this other message:
>
> "org-babel-execute-src-block: No org-babel-execute function for python!"
>
> If I put the configuration in my .emacs, the error I get is:
>
> "org-babel-result-hash: Symbol's value as variable is void: 
> org-babel-lob-one-liner-regexp"
>
> I guess I missed something.
>
> Thanks.
>
> Jordi
>
> Eric Schulte writes:
>  > Hi Jordi,
>  > 
>  > With the latest Org-mode from Git, Org-babel is now part of Org-mode, so
>  > you no longer need to add the contrib directory to your load path, or
>  > require org-babel-init.  The following should work for you.
>  > 
>  > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
>  > (require 'org-install)
>  > (require 'ob-python)
>  > 
>  > note that for a language-specific require, you now prefix the language
>  > name with ob- rather than org-babel-
>  > 
>  > For more complete information on the new setup, see
>  > 
> http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html
>  > 
>  > Cheers -- Eric
>  > 
>  > Jordi Inglada  writes:
>  > 
>  > > Hi all,
>  > >
>  > > I am having the same problem as this user here:
>  > >
>  > > http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html
>  > >
>  > > and the contrib/lisp directory is indeed in my load path.
>  > >
>  > > I am using a git changeset cloned today (Org-mode version 6.34trans
>  > > (release_6.36.608.gc1ef)).
>  > >
>  > > I have tried using "emacs -q" and then loading an .el file containing
>  > > only the following lines:
>  > >
>  > > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
>  > > (setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" 
> load-path))
>  > >
>  > > (require 'org-install)
>  > > (require 'org-babel-init)
>  > > (require 'org-babel-python)
>  > >
>  > > and I get the same result.
>  > >
>  > > Thank you very much for your help.
>  > >
>  > > Jordi
>  > >
>  > > ___
>  > > Emacs-orgmode mailing list
>  > > Please use `Reply All' to send replies to the list.
>  > > Emacs-orgmode@gnu.org
>  > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-babel init

2010-07-12 Thread Jordi Inglada

Just to complete my message, here is the debugger's output:

Debugger entered--Lisp error: (void-variable org-babel-tangle-lang-exts)
  add-to-list(org-babel-tangle-lang-exts ("python" . "py"))
  byte-code("��!���!���!���!\"��B��!�$���\"�̇" [current-load-list 
require ob ob-ref ob-comint ob-eval add-to-list org-babel-tangle-lang-exts 
("python" . "py") org-babel-default-header-args:python default-boundp 
set-default nil] 3)
  require(ob-python)
  eval-buffer(# nil "/home/inglada/.emacs" nil t)  ; Reading at 
buffer position 14626
  load-with-code-conversion("/home/inglada/.emacs" "/home/inglada/.emacs" t t)
  load("~/.emacs" t t)
  #[nil "��   �=���Q�7
�=�3#�#͂7#�/ς7͂7��Q��\nщ#��=�_�Q!\"�\fщ#��=�^\n)���!ؚ���!��P\"�\"!��\"���
!��
��ˉ���
\"����
#���!�
*#?���$��щ#))�" [init-file-user system-type user-init-file-1 user-init-file 
otherfile source ms-dos "~" "/_emacs" windows-nt directory-files nil 
"^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" "^_emacs\\(\\.elc?\\)?$" "~/_emacs" 
"/.emacs" t load expand-file-name "init" file-name-as-directory "/.emacs.d" 
file-name-extension "elc" file-name-sans-extension ".el" file-exists-p 
file-newer-than-file-p message "Warning: %s is newer than %s" sit-for 1 
"default" alt inhibit-default-init inhibit-startup-screen] 7]()
  command-line()
  normal-top-level()


  Jordi
  
Jordi Inglada writes:
 > Eric,
 > 
 > Thanks for the answer.
 > 
 > If I do that using "emacs -q", I get this message when loading the
 > configuration:
 > 
 > "Symbol's value as variable is void: org-babel-tangle-lang-exts"
 > 
 > An after that when trying to evaluate this block from the tutorial
 > 
 > #+begin_src python
 > import time
 > print("Hello, today's date is %s" % time.ctime())
 > print('Two plus two is')
 > return 2 + 2
 > #+end_src
 > 
 > I get this other message:
 > 
 > "org-babel-execute-src-block: No org-babel-execute function for python!"
 > 
 > If I put the configuration in my .emacs, the error I get is:
 > 
 > "org-babel-result-hash: Symbol's value as variable is void: 
 > org-babel-lob-one-liner-regexp"
 > 
 > I guess I missed something.
 > 
 > Thanks.
 > 
 > Jordi
 > 
 > Eric Schulte writes:
 >  > Hi Jordi,
 >  > 
 >  > With the latest Org-mode from Git, Org-babel is now part of Org-mode, so
 >  > you no longer need to add the contrib directory to your load path, or
 >  > require org-babel-init.  The following should work for you.
 >  > 
 >  > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
 >  > (require 'org-install)
 >  > (require 'ob-python)
 >  > 
 >  > note that for a language-specific require, you now prefix the language
 >  > name with ob- rather than org-babel-
 >  > 
 >  > For more complete information on the new setup, see
 >  > 
 > http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html
 >  > 
 >  > Cheers -- Eric
 >  > 
 >  > Jordi Inglada  writes:
 >  > 
 >  > > Hi all,
 >  > >
 >  > > I am having the same problem as this user here:
 >  > >
 >  > > http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html
 >  > >
 >  > > and the contrib/lisp directory is indeed in my load path.
 >  > >
 >  > > I am using a git changeset cloned today (Org-mode version 6.34trans
 >  > > (release_6.36.608.gc1ef)).
 >  > >
 >  > > I have tried using "emacs -q" and then loading an .el file containing
 >  > > only the following lines:
 >  > >
 >  > > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" 
 > load-path))
 >  > > (setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" 
 > load-path))
 >  > >
 >  > > (require 'org-install)
 >  > > (require 'org-babel-init)
 >  > > (require 'org-babel-python)
 >  > >
 >  > > and I get the same result.
 >  > >
 >  > > Thank you very much for your help.
 >  > >
 >  > > Jordi
 >  > >
 >  > > ___
 >  > > Emacs-orgmode mailing list
 >  > > Please use `Reply All' to send replies to the list.
 >  > > Emacs-orgmode@gnu.org
 >  > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 > ___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-babel init

2010-07-12 Thread Jordi Inglada
Eric,

Thanks for the answer.

If I do that using "emacs -q", I get this message when loading the
configuration:

"Symbol's value as variable is void: org-babel-tangle-lang-exts"

An after that when trying to evaluate this block from the tutorial

#+begin_src python
import time
print("Hello, today's date is %s" % time.ctime())
print('Two plus two is')
return 2 + 2
#+end_src

I get this other message:

"org-babel-execute-src-block: No org-babel-execute function for python!"

If I put the configuration in my .emacs, the error I get is:

"org-babel-result-hash: Symbol's value as variable is void: 
org-babel-lob-one-liner-regexp"

I guess I missed something.

Thanks.

Jordi

Eric Schulte writes:
 > Hi Jordi,
 > 
 > With the latest Org-mode from Git, Org-babel is now part of Org-mode, so
 > you no longer need to add the contrib directory to your load path, or
 > require org-babel-init.  The following should work for you.
 > 
 > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
 > (require 'org-install)
 > (require 'ob-python)
 > 
 > note that for a language-specific require, you now prefix the language
 > name with ob- rather than org-babel-
 > 
 > For more complete information on the new setup, see
 > http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html
 > 
 > Cheers -- Eric
 > 
 > Jordi Inglada  writes:
 > 
 > > Hi all,
 > >
 > > I am having the same problem as this user here:
 > >
 > > http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html
 > >
 > > and the contrib/lisp directory is indeed in my load path.
 > >
 > > I am using a git changeset cloned today (Org-mode version 6.34trans
 > > (release_6.36.608.gc1ef)).
 > >
 > > I have tried using "emacs -q" and then loading an .el file containing
 > > only the following lines:
 > >
 > > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
 > > (setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" 
 > > load-path))
 > >
 > > (require 'org-install)
 > > (require 'org-babel-init)
 > > (require 'org-babel-python)
 > >
 > > and I get the same result.
 > >
 > > Thank you very much for your help.
 > >
 > > Jordi
 > >
 > > ___
 > > Emacs-orgmode mailing list
 > > Please use `Reply All' to send replies to the list.
 > > Emacs-orgmode@gnu.org
 > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-babel init

2010-07-12 Thread Eric Schulte
Hi Jordi,

With the latest Org-mode from Git, Org-babel is now part of Org-mode, so
you no longer need to add the contrib directory to your load path, or
require org-babel-init.  The following should work for you.

(setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
(require 'org-install)
(require 'ob-python)

note that for a language-specific require, you now prefix the language
name with ob- rather than org-babel-

For more complete information on the new setup, see
http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html

Cheers -- Eric

Jordi Inglada  writes:

> Hi all,
>
> I am having the same problem as this user here:
>
> http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html
>
> and the contrib/lisp directory is indeed in my load path.
>
> I am using a git changeset cloned today (Org-mode version 6.34trans
> (release_6.36.608.gc1ef)).
>
> I have tried using "emacs -q" and then loading an .el file containing
> only the following lines:
>
> (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
> (setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" 
> load-path))
>
> (require 'org-install)
> (require 'org-babel-init)
> (require 'org-babel-python)
>
> and I get the same result.
>
> Thank you very much for your help.
>
> Jordi
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-babel init

2010-07-12 Thread Erik Iverson

You need to see:

http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html


Jordi Inglada wrote:

Hi all,

I am having the same problem as this user here:

http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html

and the contrib/lisp directory is indeed in my load path.

I am using a git changeset cloned today (Org-mode version 6.34trans
(release_6.36.608.gc1ef)).

I have tried using "emacs -q" and then loading an .el file containing
only the following lines:

(setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
(setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" 
load-path))

(require 'org-install)
(require 'org-babel-init)
(require 'org-babel-python)

and I get the same result.

Thank you very much for your help.

Jordi

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Org-babel init

2010-07-12 Thread Jordi Inglada
Hi all,

I am having the same problem as this user here:

http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html

and the contrib/lisp directory is indeed in my load path.

I am using a git changeset cloned today (Org-mode version 6.34trans
(release_6.36.608.gc1ef)).

I have tried using "emacs -q" and then loading an .el file containing
only the following lines:

(setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
(setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" 
load-path))

(require 'org-install)
(require 'org-babel-init)
(require 'org-babel-python)

and I get the same result.

Thank you very much for your help.

Jordi

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode