r/Python • • Nov 30 '15

Emacs - the best python editor?

https://realpython.com/blog/python/emacs-the-best-python-editor#.VlxbmNNKXbw.reddit
28 Upvotes

28 comments sorted by

View all comments

1

u/5erif φ=(1+ψ)/2 Dec 01 '15

Apparently not on OS X. I've spent 4 hours just trying to get it to load without errors. [Link.] During this time I've switched from the default Apple Python distro to Anaconda, un/re-installed emacs, and tried spacemacs, which is now saying: "Wrong type or argument: (or eieio-object-p class-p), nil"

3

u/bastibe Dec 01 '15

Notice how you have two "defvar" blocks in your init.el. The defvar block must come before the "mapc" block, where it is used. Since you define elpy only in the second (unused) defvar, elpy is not installed. Hence your left error.

Your right error says that it can't load "package", which probably means that you are running emacs 23. Package was introduced in Emacs 24. On your screenshots, this error only happens in the console emacs, which is probably still your OSX default Emacs. Install emacs from brew, or add your graphical emacs installation to your path to fix this error.

1

u/5erif φ=(1+ψ)/2 Dec 01 '15

Thanks, I'm now running GNU Emacs 25.1.50.1. Strange things are still happening, and that may be because when installing emacs through brew, I see a message that the emacs version for OS X 10.11 is still beta and unsupported. I'm going to keep trying. I like vim, and emacs seems like it could have even more advantages. IPython integration looks cool, for example.