New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eval-buffer: Cannot open load file: request #98

Open
gitdoc opened this Issue Jan 22, 2013 · 3 comments

Comments

Projects
None yet
2 participants
@gitdoc

gitdoc commented Jan 22, 2013

I followed install instructions here http://tkf.github.com/emacs-ipython-notebook/. Used el-get to install ein and that seemed to work fine.

I put your minimal setup:

(require 'ein)

into an init file described by el-get docs:

~/.emacs.d/el-get-init-files/init-ein.el

and that seems to have been effective as I do get auto-completion in the

M-x
command buffer for
ein:
commands like
ein:notebooklist-open
, but when I execute that command as in your docs, I get the following error message in the Messages buffer:

#eval-buffer: Cannot open load file: request

Also tried (just to be sure) putting your minimal setup into my init file where I know other instructions are being executed and I don't have to rely on correct behavior by el-get, but still get same ein behavior.

I tried to turn on logging with

M-: (ein:log-set-level 'debug) RET
and although I got no error message after doing so, I also got no log buffer
_ein:log-all
in my buffer list, so unfortunately cannot post anything more informative than what I'm seeing in the emacs Messages buffer which is just a one-line message in title/subject of issue.

I got the same error when I attempted to do

M-x ein:dev-bug-report-template

I used to use emacs all the time every day, but it's been awhile for me now, and so I may have forgotten some fundamentals and I may be doing something silly to cause the problem myself.

@tkf

This comment has been minimized.

Show comment
Hide comment
@tkf

tkf Jan 22, 2013

Owner

Quick comments: Do you have request.el? Check it by M-: (require 'request). Replace the _ in front of _*ein:log-all* with a space. Did you install EIN manually? It's better consider using el-get or MELPA if so. If you just want to try EIN, see this quick try instruction:

https://github.com/tkf/emacs-ipython-notebook#quick-try

Owner

tkf commented Jan 22, 2013

Quick comments: Do you have request.el? Check it by M-: (require 'request). Replace the _ in front of _*ein:log-all* with a space. Did you install EIN manually? It's better consider using el-get or MELPA if so. If you just want to try EIN, see this quick try instruction:

https://github.com/tkf/emacs-ipython-notebook#quick-try

@gitdoc

This comment has been minimized.

Show comment
Hide comment
@gitdoc

gitdoc Jan 22, 2013

Well, that is at least a part of my problem. When I do <M-: (require 'request)> I get:

Debugger entered--Lisp error: (file-error "Cannot open load file" "request")
  require(request)
  eval((require (quote request)) nil)
  eval-expression((require (quote request)) nil)
  call-interactively(eval-expression nil nil)

...showing up in a new Backtrace buffer in emacs.

And looking more carefully now, it looks like el-get did not correctly install all of the dependencies for EIN. When I compare the directory tree for your quick-try approach with the directory tree of ein as installed by el-get, there are big differences. Primarily, the ein/lib directory has subdirectories named as you have in your quick-try tree (auto-complete, ert, fuzzy, markdown-mode, nxhtml, popup, pos-tip, python, request, smartrep, websocket), but all of these subdirectories are empty!? That seems wrong.

el-get did seem to install some dependencies when I installed ein, but now when I ask el-get to list packages, it shows only ein, el-get, nxhtml, and websocket as installed packages. The only packages that I explicitly installed were el-get (first, according to his instructions), and ein (using el-get command: <M-x el-get-install>). And when I look in ~/.emacs.d/el-get/, the only subdirectories to that directory are ein, el-get, nxhtml, and websocket.

So I guess this is a bug for el-get rather than ein?

Is it safe to just:

rsync -azvv ~/ein-try/emacs-ipython-notebook/lib ~/.emacs.d/el-get/ein/lib

That seems like it might undermine the whole idea of el-get though. Should I use el-get to explicitly install all of the packages I see in ~/ein-try/emacs-ipython-notebook/lib ? As per el-get listing, I already have nxhtml and websocket installed, and I see auto-complete, fuzzy, markdown-mode, popup, pos-tip, python, and smartrep, in the list of available packages in el-get, but el-get does not list ert or request.

Thanks for previous suggestions. Any additional suggestions appreciated, and I'll file an issue with el-get project. Feel free to close this issue as this seems not to be an EIN bug.

gitdoc commented Jan 22, 2013

Well, that is at least a part of my problem. When I do <M-: (require 'request)> I get:

Debugger entered--Lisp error: (file-error "Cannot open load file" "request")
  require(request)
  eval((require (quote request)) nil)
  eval-expression((require (quote request)) nil)
  call-interactively(eval-expression nil nil)

...showing up in a new Backtrace buffer in emacs.

And looking more carefully now, it looks like el-get did not correctly install all of the dependencies for EIN. When I compare the directory tree for your quick-try approach with the directory tree of ein as installed by el-get, there are big differences. Primarily, the ein/lib directory has subdirectories named as you have in your quick-try tree (auto-complete, ert, fuzzy, markdown-mode, nxhtml, popup, pos-tip, python, request, smartrep, websocket), but all of these subdirectories are empty!? That seems wrong.

el-get did seem to install some dependencies when I installed ein, but now when I ask el-get to list packages, it shows only ein, el-get, nxhtml, and websocket as installed packages. The only packages that I explicitly installed were el-get (first, according to his instructions), and ein (using el-get command: <M-x el-get-install>). And when I look in ~/.emacs.d/el-get/, the only subdirectories to that directory are ein, el-get, nxhtml, and websocket.

So I guess this is a bug for el-get rather than ein?

Is it safe to just:

rsync -azvv ~/ein-try/emacs-ipython-notebook/lib ~/.emacs.d/el-get/ein/lib

That seems like it might undermine the whole idea of el-get though. Should I use el-get to explicitly install all of the packages I see in ~/ein-try/emacs-ipython-notebook/lib ? As per el-get listing, I already have nxhtml and websocket installed, and I see auto-complete, fuzzy, markdown-mode, popup, pos-tip, python, and smartrep, in the list of available packages in el-get, but el-get does not list ert or request.

Thanks for previous suggestions. Any additional suggestions appreciated, and I'll file an issue with el-get project. Feel free to close this issue as this seems not to be an EIN bug.

@tkf

This comment has been minimized.

Show comment
Hide comment
@tkf

tkf Jan 22, 2013

Owner

I guess your el-get has older EIN recipe and which does not install request.el. You can either (1) install request.el manually, (2) use the latest recipe, or (3) update el-get to its master.

You can get the latest recipe here:
https://github.com/dimitri/el-get/blob/master/recipes/ein.rcp
https://github.com/dimitri/el-get/blob/master/recipes/request.rcp

Owner

tkf commented Jan 22, 2013

I guess your el-get has older EIN recipe and which does not install request.el. You can either (1) install request.el manually, (2) use the latest recipe, or (3) update el-get to its master.

You can get the latest recipe here:
https://github.com/dimitri/el-get/blob/master/recipes/ein.rcp
https://github.com/dimitri/el-get/blob/master/recipes/request.rcp

tkf added a commit that referenced this issue Jan 22, 2013

Add note for el-get user: stable recipe is old
Also, I think the old note is not relevant anymore,
so I am removing it.

see #98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment