all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* file-error "Cannot open load file" "org"
@ 2013-09-03 20:04 Karl Voit
  2013-09-04 10:32 ` Karl Voit
  2013-09-04 15:34 ` Karl Voit
  0 siblings, 2 replies; 5+ messages in thread
From: Karl Voit @ 2013-09-03 20:04 UTC (permalink / raw)
  To: emacs-orgmode

Hi!

I've got a strange issue here: today, I set up a second laptop with
more or less identical configuration (Debian Wheezy; orgmode from
git g6fdc23). I copied my .emacs.d to the new machine but Org-mode
is not working there :-O

Whenever I open an Org file, I get:

File mode specification error: (file-error "Cannot open load file"
"org")

For testing purposes I used this minimal .emacs:

  (add-to-list 'load-path "~/.emacs.d/contrib/org-mode/lisp")
  (add-to-list 'load-path "~/.emacs.d/contrib/org-mode/contrib/lisp" t)
  
  ;; assign file extensions to Org-mode
  (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))

  ;;(require 'org-install) ;; vk 2012-11-20 this line is obsolete
  (require 'org)

What can I check/modify?

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
       > get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github

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

* Re: file-error "Cannot open load file" "org"
  2013-09-03 20:04 file-error "Cannot open load file" "org" Karl Voit
@ 2013-09-04 10:32 ` Karl Voit
  2013-09-04 11:07   ` Thorsten Jolitz
  2013-09-04 15:34 ` Karl Voit
  1 sibling, 1 reply; 5+ messages in thread
From: Karl Voit @ 2013-09-04 10:32 UTC (permalink / raw)
  To: emacs-orgmode

* Karl Voit <devnull@Karl-Voit.at> wrote:
>
> Whenever I open an Org file, I get:
>
> File mode specification error: (file-error "Cannot open load file"
> "org")

I found an old posting with "toggle-debug-on-error" and activated it
before I open my test Org-mode file:

Debugger entered--Lisp error: (file-error "Cannot open load file" "org")
  org-mode()
  set-auto-mode-0(org-mode nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(#<buffer test.org> "~/org/test.org" nil nil "~/share/all/org-mode/test.org" (3408929 64768))
  find-file-noselect("~/org/test.org" nil nil t)
  find-file("~/org/test.org" t)
  call-interactively(find-file nil nil)

However, I can not interpret it :-(

"emacs --debug-init" does not show any issues in *Messages*. I just
do not have any Org-mode available when opening an Org-mode file.
When I do "M-x org-mode" I get "call-interactively: Cannot open load
file: org" in *Messages*.

Again: I'm a bit puzzled since the exact same ~/.emacs.d folder
sub-hierarchy is working on my other machine. Therefore I guess,
that the issue is rooted in the system configuration. I also removed
/usr/share/emacs/23.4/lisp/org which was Org-mode v6 (from Debian
Wheezy).

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
       > get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github

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

* Re: file-error "Cannot open load file" "org"
  2013-09-04 10:32 ` Karl Voit
@ 2013-09-04 11:07   ` Thorsten Jolitz
  2013-09-04 12:07     ` Karl Voit
  0 siblings, 1 reply; 5+ messages in thread
From: Thorsten Jolitz @ 2013-09-04 11:07 UTC (permalink / raw)
  To: emacs-orgmode

Karl Voit <devnull@Karl-Voit.at> writes:

> * Karl Voit <devnull@Karl-Voit.at> wrote:
>>
>> Whenever I open an Org file, I get:
>>
>> File mode specification error: (file-error "Cannot open load file"
>> "org")
>
> I found an old posting with "toggle-debug-on-error" and activated it
> before I open my test Org-mode file:
>
> Debugger entered--Lisp error: (file-error "Cannot open load file" "org")
>   org-mode()
>   set-auto-mode-0(org-mode nil)
>   set-auto-mode()
>   normal-mode(t)
>   after-find-file(nil t)
>   find-file-noselect-1(#<buffer test.org> "~/org/test.org" nil nil
> "~/share/all/org-mode/test.org" (3408929 64768))
>   find-file-noselect("~/org/test.org" nil nil t)
>   find-file("~/org/test.org" t)
>   call-interactively(find-file nil nil)
>
> However, I can not interpret it :-(
>
> "emacs --debug-init" does not show any issues in *Messages*. I just
> do not have any Org-mode available when opening an Org-mode file.
> When I do "M-x org-mode" I get "call-interactively: Cannot open load
> file: org" in *Messages*.
>
> Again: I'm a bit puzzled since the exact same ~/.emacs.d folder
> sub-hierarchy is working on my other machine. Therefore I guess,
> that the issue is rooted in the system configuration. I also removed
> /usr/share/emacs/23.4/lisp/org which was Org-mode v6 (from Debian
> Wheezy).


Did you try to copy a subdirs.el into the org-mode directory?

,------------------------------------------------------------
|   /home/tj/gitclone/org-mode:
|   insgesamt 140
|   drwxr-xr-x  9 tj users  4096 19. Jul 14:28 .
|   drwxr-xr-x 28 tj users  4096  1. Aug 20:28 ..
|   -rw-r--r--  1 tj users   333 19. Jul 12:35 .dir-locals.el
| [...]
|   -rwxr-xr-x  1 tj users   106  2. Dez 2011  subdirs.el
|   drwxr-xr-x  5 tj users  4096 19. Jul 12:35 testing
`------------------------------------------------------------

with subdirs.el file content:

,---------------------------------------------------------
| (if (fboundp 'normal-top-level-add-subdirs-to-load-path)
|     (normal-top-level-add-subdirs-to-load-path))
`---------------------------------------------------------

-- 
cheers,
Thorsten

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

* Re: file-error "Cannot open load file" "org"
  2013-09-04 11:07   ` Thorsten Jolitz
@ 2013-09-04 12:07     ` Karl Voit
  0 siblings, 0 replies; 5+ messages in thread
From: Karl Voit @ 2013-09-04 12:07 UTC (permalink / raw)
  To: emacs-orgmode

* Thorsten Jolitz <tjolitz@gmail.com> wrote:
>
> Did you try to copy a subdirs.el into the org-mode directory?
> with subdirs.el file content:
>
> ,---------------------------------------------------------
>| (if (fboundp 'normal-top-level-add-subdirs-to-load-path)
>|     (normal-top-level-add-subdirs-to-load-path))
> `---------------------------------------------------------

I do not understand what this does and I don't have "subdirs" in my
local configuration. I guess, this is a file which got invoked by
convention (system-Emacs config).

However, creating this file with the content above does not change
anything at my issue.

What else can I check?

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
       > get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github

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

* Re: file-error "Cannot open load file" "org"
  2013-09-03 20:04 file-error "Cannot open load file" "org" Karl Voit
  2013-09-04 10:32 ` Karl Voit
@ 2013-09-04 15:34 ` Karl Voit
  1 sibling, 0 replies; 5+ messages in thread
From: Karl Voit @ 2013-09-04 15:34 UTC (permalink / raw)
  To: emacs-orgmode

* Karl Voit <devnull@Karl-Voit.at> wrote:
> Hi!
>
> I've got a strange issue here: today, I set up a second laptop with
> more or less identical configuration (Debian Wheezy; orgmode from
> git g6fdc23). I copied my .emacs.d to the new machine but Org-mode
> is not working there :-O
>
> Whenever I open an Org file, I get:
>
> File mode specification error: (file-error "Cannot open load file"
> "org")

I could resolve my issue meanwhile. The problem was caused by a
combination of mixed installation (see thread "mixed orgmode
installation") and a mismatch between my switch-host-function and
the hostname. In other words: there were two separate errors that
caused Org-mode not to be set-up as expected.

Sorry for the fuzz and thanks for all tips!

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
       > get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github

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

end of thread, other threads:[~2013-09-04 15:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-03 20:04 file-error "Cannot open load file" "org" Karl Voit
2013-09-04 10:32 ` Karl Voit
2013-09-04 11:07   ` Thorsten Jolitz
2013-09-04 12:07     ` Karl Voit
2013-09-04 15:34 ` Karl Voit

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.