Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
eval-buffer: Cannot open load file: request #98
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:
into an init file described by el-get docs:
and that seems to have been effective as I do get auto-completion in the
M-xcommand buffer for
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) RETand although I got no error message after doing so, I also got no log buffer
_ein:log-allin 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
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.
Quick comments: Do you have request.el? Check it by
Well, that is at least a part of my problem. When I do
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:
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.
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: