emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* invalid byte-code error when publishing
@ 2013-08-19  3:43 Mehul Sanghvi
  2013-08-19 13:19 ` Mehul Sanghvi
  0 siblings, 1 reply; 8+ messages in thread
From: Mehul Sanghvi @ 2013-08-19  3:43 UTC (permalink / raw)
  To: ML Emacs-orgmode

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

My setup:
========

  (emacs-version): 23.4.1
   org-version: Org-mode version 8.0.7 (release_8.0.7-369-g9154c7

When publishing using org-html-publish-to-html I get the following error:

   Publishing file /home/mehul/org/new-site/emacs.org using
`org-html-publish-to-html'
   org-babel-exp processing...
   Fontifying  *temp*... (regexps......................)
   org-babel-exp processing...
   setq: Invalid byte code in
/usr/share/emacs/23.4/lisp/emacs-lisp/cl-seq.elc

And the page does not get generated.

Any suggestions on what is wrong ?



cheers,

    mehul

-- 
Mehul N. Sanghvi
email: mehul.sanghvi@gmail.com

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

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

* Re: invalid byte-code error when publishing
  2013-08-19  3:43 invalid byte-code error when publishing Mehul Sanghvi
@ 2013-08-19 13:19 ` Mehul Sanghvi
  2013-08-19 14:06   ` Sebastien Vauban
  0 siblings, 1 reply; 8+ messages in thread
From: Mehul Sanghvi @ 2013-08-19 13:19 UTC (permalink / raw)
  To: ML Emacs-orgmode

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

The error only occurs if I'm using org-babl.  The offending piece of code
I've got is:

#+BEGIN_SRC emacs-lisp


(setq tramp-default-method "ssh")


#+END_SRC

If I remove the #+BEGIN_SRC and #+END_SRC than everything works fine and
I'm able to publish.



On Sun, Aug 18, 2013 at 11:43 PM, Mehul Sanghvi <mehul.sanghvi@gmail.com>wrote:

>
> My setup:
> ========
>
>   (emacs-version): 23.4.1
>    org-version: Org-mode version 8.0.7 (release_8.0.7-369-g9154c7
>
> When publishing using org-html-publish-to-html I get the following error:
>
>    Publishing file /home/mehul/org/new-site/emacs.org using
> `org-html-publish-to-html'
>    org-babel-exp processing...
>    Fontifying  *temp*... (regexps......................)
>    org-babel-exp processing...
>    setq: Invalid byte code in
> /usr/share/emacs/23.4/lisp/emacs-lisp/cl-seq.elc
>
> And the page does not get generated.
>
> Any suggestions on what is wrong ?
>
>
>
> cheers,
>
>     mehul
>
> --
> Mehul N. Sanghvi
> email: mehul.sanghvi@gmail.com
>



-- 
Mehul N. Sanghvi
email: mehul.sanghvi@gmail.com

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

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

* Re: invalid byte-code error when publishing
  2013-08-19 13:19 ` Mehul Sanghvi
@ 2013-08-19 14:06   ` Sebastien Vauban
  2013-08-19 15:22     ` Mehul Sanghvi
  0 siblings, 1 reply; 8+ messages in thread
From: Sebastien Vauban @ 2013-08-19 14:06 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Mehul Sanghvi wrote:
> The error only occurs if I'm using org-babl.  The offending piece of code
> I've got is:
>
> #+BEGIN_SRC emacs-lisp
> (setq tramp-default-method "ssh")
> #+END_SRC
>
> If I remove the #+BEGIN_SRC and #+END_SRC than everything works fine and
> I'm able to publish.

Would this fix it?

  #+BEGIN_SRC emacs-lisp :eval no
  (setq tramp-default-method "ssh")
  #+END_SRC

Best regards,
  Seb

-- 
Sebastien Vauban

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

* Re: invalid byte-code error when publishing
  2013-08-19 14:06   ` Sebastien Vauban
@ 2013-08-19 15:22     ` Mehul Sanghvi
  2013-08-20  8:20       ` Sebastien Vauban
  0 siblings, 1 reply; 8+ messages in thread
From: Mehul Sanghvi @ 2013-08-19 15:22 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: ML Emacs-orgmode

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

Sebastien,

       Thanks for the suggestion.  That does not fix the problem.  I still
get the same error as before.




cheers,

       mehul


On Mon, Aug 19, 2013 at 10:06 AM, Sebastien Vauban
<sva-news@mygooglest.com>wrote:

> Mehul Sanghvi wrote:
> > The error only occurs if I'm using org-babl.  The offending piece of code
> > I've got is:
> >
> > #+BEGIN_SRC emacs-lisp
> > (setq tramp-default-method "ssh")
> > #+END_SRC
> >
> > If I remove the #+BEGIN_SRC and #+END_SRC than everything works fine and
> > I'm able to publish.
>
> Would this fix it?
>
>   #+BEGIN_SRC emacs-lisp :eval no
>   (setq tramp-default-method "ssh")
>   #+END_SRC
>
> Best regards,
>   Seb
>
> --
> Sebastien Vauban
>
>
>


-- 
Mehul N. Sanghvi
email: mehul.sanghvi@gmail.com

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

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

* Re: invalid byte-code error when publishing
  2013-08-19 15:22     ` Mehul Sanghvi
@ 2013-08-20  8:20       ` Sebastien Vauban
  2013-08-20 12:51         ` Mehul Sanghvi
  0 siblings, 1 reply; 8+ messages in thread
From: Sebastien Vauban @ 2013-08-20  8:20 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Mehul Sanghvi,

Mehul Sanghvi wrote:
>> Mehul Sanghvi wrote:
>> > The error only occurs if I'm using org-babl.  The offending piece of code
>> > I've got is:
>> >
>> > #+BEGIN_SRC emacs-lisp
>> > (setq tramp-default-method "ssh")
>> > #+END_SRC
>> >
>> > If I remove the #+BEGIN_SRC and #+END_SRC than everything works fine and
>> > I'm able to publish.
>>
>> Would this fix it?
>>
>>   #+BEGIN_SRC emacs-lisp :eval no
>>   (setq tramp-default-method "ssh")
>>   #+END_SRC
>
>        Thanks for the suggestion.  That does not fix the problem.  I still
> get the same error as before.

Check out the value of:

- `org-babel-default-header-args', and
- `org-babel-default-header-args:emacs-lisp'.

And try whether `:eval query' makes a difference (when answering yes, and when
answering no)?

Best regards,
  Seb

-- 
Sebastien Vauban

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

* Re: invalid byte-code error when publishing
  2013-08-20  8:20       ` Sebastien Vauban
@ 2013-08-20 12:51         ` Mehul Sanghvi
  2013-08-20 13:48           ` Sebastien Vauban
  0 siblings, 1 reply; 8+ messages in thread
From: Mehul Sanghvi @ 2013-08-20 12:51 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: ML Emacs-orgmode

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

On Tue, Aug 20, 2013 at 4:20 AM, Sebastien Vauban
<sva-news@mygooglest.com>wrote:

> Mehul Sanghvi,
>
> Mehul Sanghvi wrote:
> >> Mehul Sanghvi wrote:
> >> > The error only occurs if I'm using org-babl.  The offending piece of
> code
> >> > I've got is:
> >> >
> >> > #+BEGIN_SRC emacs-lisp
> >> > (setq tramp-default-method "ssh")
> >> > #+END_SRC
> >> >
> >> > If I remove the #+BEGIN_SRC and #+END_SRC than everything works fine
> and
> >> > I'm able to publish.
> >>
> >> Would this fix it?
> >>
> >>   #+BEGIN_SRC emacs-lisp :eval no
> >>   (setq tramp-default-method "ssh")
> >>   #+END_SRC
> >
> >        Thanks for the suggestion.  That does not fix the problem.  I
> still
> > get the same error as before.
>
> Check out the value of:
>
> - `org-babel-default-header-args', and
> - `org-babel-default-header-args:emacs-lisp'.
>
> And try whether `:eval query' makes a difference (when answering yes, and
> when
> answering no)?
>
>
Using 'C-h v' I get the following:

org-babel-default-header-args is a variable defined in `ob-core.el'.


Its value is ((:session . "none")


 (:results . "replace")


 (:exports . "code")


 (:cache . "no")


 (:noweb . "no")


 (:hlines . "no")


 (:tangle . "no")


 (:padnewline . "yes"))


org-babel-default-header-args:emacs-lisp is a variable defined in
`ob-emacs-lisp.el'.

Its value is ((:hlines . "yes")


 (:colnames . "no"))




Using ':eval query' does not make a difference.   It does not prompt for
yes or no.

cheers,

     mehul

-- 
Mehul N. Sanghvi
email: mehul.sanghvi@gmail.com

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

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

* Re: invalid byte-code error when publishing
  2013-08-20 12:51         ` Mehul Sanghvi
@ 2013-08-20 13:48           ` Sebastien Vauban
  0 siblings, 0 replies; 8+ messages in thread
From: Sebastien Vauban @ 2013-08-20 13:48 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Mehul Sanghvi wrote:
> Sebastien Vauban wrote:
>> Mehul Sanghvi wrote:
>>>> Mehul Sanghvi wrote:
>>>>> The error only occurs if I'm using org-babl. The offending piece of code
>>>>> I've got is:
>>>>>
>>>>> #+BEGIN_SRC emacs-lisp
>>>>> (setq tramp-default-method "ssh")
>>>>> #+END_SRC
>>>>>
>>>>> If I remove the #+BEGIN_SRC and #+END_SRC than everything works fine and
>>>>> I'm able to publish.
>>>>
>>>> Would this fix it?
>>>>
>>>>   #+BEGIN_SRC emacs-lisp :eval no
>>>>   (setq tramp-default-method "ssh")
>>>>   #+END_SRC
>>>
>>> Thanks for the suggestion. That does not fix the problem. I still get the
>>> same error as before.
>>
>> Check out the value of:
>>
>> - `org-babel-default-header-args', and
>> - `org-babel-default-header-args:emacs-lisp'.
>>
>> And try whether `:eval query' makes a difference (when answering yes, and
>> when answering no)?
>
> Using ':eval query' does not make a difference. It does not prompt for yes
> or no.

Then, there are now 2 things I don't understand:

- why it does not query you for eval?
- why that code gets you in troubles?

I'm out of ideas here...

Try with an ECM, or with emacs -Q?

Best regards,
  Seb

-- 
Sebastien Vauban

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

* Re: invalid byte-code error when publishing
@ 2013-08-21 20:49 Mehul Sanghvi
  0 siblings, 0 replies; 8+ messages in thread
From: Mehul Sanghvi @ 2013-08-21 20:49 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: ML Emacs-orgmode

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

On Tue, Aug 20, 2013 at 9:48 AM, Sebastien Vauban
<sva-news@mygooglest.com>wrote:

> Mehul Sanghvi wrote:
> > Sebastien Vauban wrote:
> >> Mehul Sanghvi wrote:
> >>>> Mehul Sanghvi wrote:
> >>>>> The error only occurs if I'm using org-babl. The offending piece of
> code
> >>>>> I've got is:
> >>>>>
> >>>>> #+BEGIN_SRC emacs-lisp
> >>>>> (setq tramp-default-method "ssh")
> >>>>> #+END_SRC
> >>>>>
> >>>>> If I remove the #+BEGIN_SRC and #+END_SRC than everything works fine
> and
> >>>>> I'm able to publish.
> >>>>
> >>>> Would this fix it?
> >>>>
> >>>>   #+BEGIN_SRC emacs-lisp :eval no
> >>>>   (setq tramp-default-method "ssh")
> >>>>   #+END_SRC
> >>>
> >>> Thanks for the suggestion. That does not fix the problem. I still get
> the
> >>> same error as before.
> >>
> >> Check out the value of:
> >>
> >> - `org-babel-default-header-args', and
> >> - `org-babel-default-header-args:emacs-lisp'.
> >>
> >> And try whether `:eval query' makes a difference (when answering yes,
> and
> >> when answering no)?
> >
> > Using ':eval query' does not make a difference. It does not prompt for
> yes
> > or no.
>
> Then, there are now 2 things I don't understand:
>
> - why it does not query you for eval?
> - why that code gets you in troubles?
>
> I'm out of ideas here...
>
> Try with an ECM, or with emacs -Q?
>
> Best regards,
>   Seb
>
> --
> Sebastien Vauban
>
>
>

This works now.  I don't know why it was causing problems, but it worked
just fine in a new instance.  I had done a org-reload rather than re-start
my emacs.

Thanks for your help.

cheers,

      mehul



-- 
Mehul N. Sanghvi
email: mehul.sanghvi@gmail.com

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

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

end of thread, other threads:[~2013-08-21 20:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-19  3:43 invalid byte-code error when publishing Mehul Sanghvi
2013-08-19 13:19 ` Mehul Sanghvi
2013-08-19 14:06   ` Sebastien Vauban
2013-08-19 15:22     ` Mehul Sanghvi
2013-08-20  8:20       ` Sebastien Vauban
2013-08-20 12:51         ` Mehul Sanghvi
2013-08-20 13:48           ` Sebastien Vauban
  -- strict thread matches above, loose matches on Subject: below --
2013-08-21 20:49 Mehul Sanghvi

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).