Emacs File Error Cannot Open Load File Package
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta emacs cannot open load file vc-git Discuss the workings and policies of this site About Us Learn
Emacs Cannot Open Load File Color-theme
more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us file error cannot open load file autocomplete Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you,
File Error Cannot Open Load File No Such File Or Directory Auto-complete-config
helping each other. Join them; it only takes a minute: Sign up emacs marmalade: “Cannot open load file”, “package” up vote 13 down vote favorite 2 I'm using emacs 24 and would like to install marmalade. I've tried adding the following to my ~/.emacs file, as per the instructions on http://marmalade-repo.org/: (require 'package) (add-to-list 'package-archives '("marmalade" . file mode specification error file error cannot open load file "http://marmalade-repo.org/packages/")) (package-initialize) When I try to reload e-macs I get the error: Error in init file: File error: "Cannot open load file", "package". What might be wrong? emacs elisp marmalade share|improve this question edited Nov 23 '14 at 3:59 Drew 19.6k53849 asked Nov 20 '13 at 20:10 The Unfun Cat 4,25874065 What happens if you interactively type M-x package-initialize? –Carl Groner Nov 20 '13 at 20:39 Don't know much about Emacs, I'd prefer direct dmg install ;-) –noob Nov 20 '13 at 22:46 6 I was using emacs 22 not 24. I deserve downvotes. –The Unfun Cat Nov 22 '13 at 7:13 add a comment| 2 Answers 2 active oldest votes up vote 7 down vote accepted Sounds like your version of Emacs does not come with library package.el. Does M-x find-library package find it? If not, you can try downloading it from the web (maybe start with Emacs Wiki), and then putting it in your load-path. But even in that case it mig
Sign in Pricing Blog Support Search GitHub This repository Watch 178 Star 3,317 Fork 384 nsf/gocode Code Issues 30 Pull requests 3 Projects 0 Wiki Pulse Graphs
Emacs Cannot Open Load File No Such File Or Directory
New issue File error: Cannot open load file, no such file or
Debugger Entered--lisp Error: (file-error "cannot Open Load File"
directory, go-autocomplete #325 Closed tleyden opened this Issue Feb 7, 2016 · 5 comments Projects None yet Labels cannot open load file emacs None yet Milestone No milestone Assignees No one assigned 2 participants tleyden commented Feb 7, 2016 I'm trying to follow the instructions and update a blog post I wrote http://stackoverflow.com/questions/20105967/emacs-marmalade-cannot-open-load-file-package a few years ago on setting up emacs for go development, but I'm running into problems with gocode. I'm using emacsformacosx v24.5 and I'm installing auto-complete from melpa. Here's my complete emacs.d/init.el file I'm installing gocode via: go get -u -v github.com/nsf/gocode cp /Users/tleyden/Development/gocode/src/github.com/nsf/gocode/emacs/go-autocomplete.el ~/.emacs.d/ Add the following to ~/.emacs.d/init.el (require 'go-autocomplete) (require 'auto-complete-config) (ac-config-default) When I start emacs I get: Warning (initialization): https://github.com/nsf/gocode/issues/325 An error occurred while loading `/Users/tleyden/.emacs.d/init.el': File error: Cannot open load file, no such file or directory, go-autocomplete Which seems like it's not finding the /Users/tleyden/.emacs.d/go-autocomplete.el file for some reason. I tried explicitly adding (add-to-list 'load-path "/Users/tleyden/.emacs.d/") (shouldn't this be in the load path by default?), and now I get this error when starting emacs: Warning (initialization): An error occurred while loading `/Users/tleyden/.emacs.d/init.el': File error: Cannot open load file, no such file or directory, auto-complete To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace. Warning (initialization): Your `load-path' seems to contain your `.emacs.d' directory: /Users/tleyden/.emacs.d/ This is likely to cause problems... Consider using a subdirectory instead, e.g.: /Users/tleyden/.emacs.d/lisp (I tried to use the .emacs.d/lisp subdirectory as suggested but it didn't seem to change anything) Any ideas? I did get this to work at one point using these instructions to install auto-complete rather than installing via melpa. I wonder if upstream changes in the way auto-complete is packaged have caused compatibility issues? syohex commented Feb 7, 201
Sign in Pricing Blog Support Search GitHub This repository Watch 20 Star 232 https://github.com/bodil/ohai-emacs/issues/4 Fork 33 bodil/ohai-emacs Code Issues 1 Pull requests 0 Projects 0 Pulse Graphs New issue (file-error "Cannot open load file" "package") #4 Closed nsvir http://ergoemacs.org/emacs/emacs_package_system_problem.html opened this Issue Feb 9, 2015 · 4 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned cannot open 2 participants nsvir commented Feb 9, 2015 require(package) eval-buffer(#> nil "/home/l2/svirchevsky/.emacs.d/ohai/ohai-package.el" nil t) ; Reading at buffer position 1578 load-with-code-conversion("/home/l2/svirchevsky/.emacs.d/ohai/ohai-package.el" "/home/l2/svirchevsky/.emacs.d/ohai/ohai-package.el" nil t) require(ohai-package) eval-buffer(#> nil "/home/l2/svirchevsky/.emacs.d/ohai/ohai-lib.el" nil t) ; Reading at buffer position 846 load-with-code-conversion("/home/l2/svirchevsky/.emacs.d/ohai/ohai-lib.el" "/home/l2/svirchevsky/.emacs.d/ohai/ohai-lib.el" nil t) require(ohai-lib) eval-buffer(# nil "/home/l2/svirchevsky/.emacs.d/init.el" nil t) ; Reading at buffer cannot open load position 2146 load-with-code-conversion("/home/l2/svirchevsky/.emacs.d/init.el" "/home/l2/svirchevsky/.emacs.d/init.el" t t) load("/home/l2/svirchevsky/.emacs.d/init" t t) #[nil "^H\205\264^@ \306=\203^Q^@\307^H\310Q\2027^@ \311=\2033^@\312\307\313\314#\203#^@\315\2027^@\312\307\313\316#\203/^@\317\2027^@\315\202$ command-line() normal-top-level() any ideas what is going on ? I have just git cloned the depot to ~/.emacs.d and removed my ~/.emacs Owner bodil commented Feb 9, 2015 If package.el is missing, at a guess you're on Emacs 23 or earlier. Ohai Emacs requires version 24.4 at a minimum. Although I'll admit to not being entirely sure that's what that error message is saying... nsvir commented Feb 9, 2015 I am on Emacs23.. :/ Is there a hack or something ? Owner bodil commented Feb 9, 2015 No, I'm afraid there have been too many changes since 23. You can add in package.el manually, but there are also a lot of improved modes and elisp functions that you can't easily patch in. I'd better add a version check so people would k
with emacs 24's package system. If you are not familiar what it is, see: Emacs: How to Install Packages Using ELPA, MELPA. 2012-06-02 does anyone have problems with emacs package system? recently, installed several packages with it: {rainbow-mode, bookmark+, smex, expand-region}. But they all have a similar problem related to autoload. For example, let's say rainbow-mode. When opening a CSS file, it's not loaded. You have to manually call it. So, if you want it to activate in CSS, you have to add stuff to your init file. Then, this means the package system does not really automatically manage things. You still have know some elisp, and manually add things to your init file. (we talking about basic activation, not advanced customization) The issue is more pronounced with modes such as “bookmark+”, smex, “expand-region”. For example, after installing “bookmark+”, restart emacs, then i press 【Ctrl+x r l】 to open my bookmark, it gives a error call-interactively: Symbol's value as variable is void: bmkp-current-bookmark-file. Apparently, the problem is that bookmark+ is not properly initialized. (when calling bookmark-bmenu-list, it does automatically load bookmark+, but isn't properly initialized) Here, i've spent some 20 min but haven't succeeded in making it work. Similar problem with {smex, “expand-region”}. For example, smex requires you to define a key for M-x. So i added (global-set-key (kbd "