Skip to content
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

Trouble installing #34

Open
karrot42 opened this issue Aug 4, 2019 · 11 comments
Open

Trouble installing #34

karrot42 opened this issue Aug 4, 2019 · 11 comments
Labels
question Questions on how to use it or about some internals

Comments

@karrot42
Copy link

karrot42 commented Aug 4, 2019

I'm not a developer, and I'm fairly new/terrible at Emacs, so I apologize if this is stupid.

I tried the three ways of installation and failed every time. I'm using MacOS Mojave with emacports 26.2 emacs.

I installed use-package and quelpa from the melpa package-install command and then added

(use-package memrise
  :quelpa (memrise
           :fetcher github
           :repo "SavchenkoValeriy/memrise.el"))

to my .emacs file and got this error

Error (use-package): Failed to parse package memrise: use-package: Unrecognized keyword: :quelpa

I did
git clone https://github.com/SavchenkoValeriy/memrise.el.git within my .emacs.d directory and added

(use-package memrise
  :load-path "/Users/karrot/.emacs.d/memrise.el")

to my .emacs file and got this error

Error (use-package): memrise/:catch: Cannot open load file: No such file or directory, request

and finally I tried the direct method with the same git cloned directory by adding this to my .emacs file

(add-to-list 'load-path "/Users/karrot/.emacs.d/memrise.el")
 (require 'memrise)

and got the good ole'

Warning (initialization): An error occurred while loading ‘/Users/karrot/.emacs’:

File is missing: Cannot open load file, No such file or directory, request

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.

I'm sure I'm missing something very dumb here, and I know you guys aren't trying to teach me how to use emacs, but maybe some other person in the future will have had this same problem because they, like me, have never installed anything in emacs without the use of MELPA.

@SavchenkoValeriy SavchenkoValeriy added the question Questions on how to use it or about some internals label Aug 4, 2019
@SavchenkoValeriy
Copy link
Owner

@karrot42 Hi, welcome to the club of emacsers! No worries and no need to apologize. We've all been there, it can be overwhelming at first.

The first way of installing produces this error because you don't have quelpa-use-package. You can install it like this:

;; install quelpa-use-package using quelpa
(quelpa
 '(quelpa-use-package
   :fetcher github
   :repo "quelpa/quelpa-use-package"))
(require 'quelpa-use-package)

(setq use-package-ensure-function 'use-package-ensure-elpa)

I'll add this to the README, so it won't cause problems like this.

For the second installation way, you lack the dependencies and the first one to fall is request.el. I would go down the road of manual dependency installation only if the first way of doing it won't work (for some reason).

Don't hesitate writing here till we won't get it work.

@karrot42
Copy link
Author

karrot42 commented Aug 5, 2019

This worked! Thank you!

I'm having other problems (maybe due to evil mode?) that causes me not to be able to move beyond an answer and can't play the attached mp3 files, but I thin it's probably better to open up new issues with more details to tackle those problems... THANKS!

@SavchenkoValeriy
Copy link
Owner

Good to hear that the first step is over.

I didn't check it with evil mode. With mp3 files, emms (the library I use for playing mp3 files) is dependent on external terminal audio players. Which OS are you using?

@karrot42
Copy link
Author

karrot42 commented Aug 5, 2019

Good to hear that the first step is over.

I didn't check it with evil mode. With mp3 files, emms (the library I use for playing mp3 files) is dependent on external terminal audio players. Which OS are you using?

I'm using MacOS Mojave. My default .mp3 program is set to mpv.

@SavchenkoValeriy
Copy link
Owner

I use afplay on MacOS:

;; Define simple audio player for EMMS
(define-emms-simple-player afplay '(file)
  (regexp-opt '(".mp3" ".m4a" ".aac"))
  "afplay")
(setq emms-player-list `(,emms-player-afplay))

maybe it will help :)

@karrot42
Copy link
Author

karrot42 commented Aug 5, 2019

I use afplay on MacOS:

;; Define simple audio player for EMMS
(define-emms-simple-player afplay '(file)
  (regexp-opt '(".mp3" ".m4a" ".aac"))
  "afplay")
(setq emms-player-list `(,emms-player-afplay))

maybe it will help :)

Symbol's function definition is void: define-emms-simple-player

When I start emacs. I believe I have emms installed.... but I'm not sure if there is some other dependency involved here.

Edit: I don't have afplay installed (on my Mac), so that'd probably be a problem?

@SavchenkoValeriy
Copy link
Owner

If you have it installed you can simply add

(require 'emms)

to this file. Or add:

(use-package emms
  :ensure t)

@karrot42
Copy link
Author

karrot42 commented Aug 5, 2019

I double checked that emms is installed, and I got the standard error starting emacs that told me to try emacs --debug-int and then found this error

Debugger entered--Lisp error: (void-function define-emms-simple-player)
(define-emms-simple-player afplay (quote(file)) (regexp-opt (quote (".mp3" ".m4a" ".aac"))) "afplay")
load-with-code-conversion("/Users/karrot/.emacs" "/Users/karrot/.emacs" t t)
load("~/.emacs" t t)
#f(compiled-function () #<bytecode 0x400e16f9>)()
command-line()
normal-top-level()

There might be some mistakes in that error as I had to type it by hand.

@SavchenkoValeriy
Copy link
Owner

afplay is supposed to be built-in, hmm

@SavchenkoValeriy
Copy link
Owner

@karrot42 Hi, did you figure out the issue with afplay?

@karrot42
Copy link
Author

karrot42 commented Aug 7, 2019

@karrot42 Hi, did you figure out the issue with afplay?

I couldn't, though I didn't put much effort into it, and I'm not very able to figure things out. If there's anything you want me try, I'll do it.

I hope this process is helping with bug(?) fixing, but please don't spend too much energy on getting this to work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions on how to use it or about some internals
Projects
None yet
Development

No branches or pull requests

2 participants