-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
install and racket-run permission denied #654
Comments
what's the output of |
Hmm, that's weird; I haven't had this kind of report before. I wonder if this is somehow related to Ubuntu 22.04 installing Emacs 28.2 as a snap in a "sandbox" instead of as a "normal" package -- IIUC -- and that affecting permissions somehow. A few questions to maybe help figure this out:
|
p.s. I don't have detailed knowledge about Ubuntu 22.04, which packages it installs as Snaps, and the consequences. That might be N/A. What made me think of this is another recent bug report: #620. However that seems to be about installing the web browser as a snap. What you're reporting now might be related to Emacs and/or Racket being installed as a snap... or it might not, I'm still at the just-guessing stage. |
Trying to learn more about snap sandboxing:
|
Since you mentioned that the snap installation may be an issue I uninstalled the snap version of racket and installed version 8.8 via the racket .sh file (from https://racket-lang.org/download/) and now it works fine. Thanks for the help! :) However, if you're still curious the answers to your questions (while I still had the snap store version of racket) are:
Also note that my version of emacs is installed via the terminal snap package manager (i.e. using |
@ChristopherChmielewski Thank you for the additional information; I'm glad you were able to resolve it by using the "normal" Racket installer. @samth re https://snapcraft.io/racket, linked to from Racket Downloads: Do you have any ideas or tips about this, which I could add to the documentation? The TL;DR is that Racket installed this way seems unable to read files out of I don't know enough about snaps to understand this restriction, whether it can be relaxed, and if so how and by who.
Depending on the answer, should there be some caveat/warning/tip on Racket Downloads (as well as whatever I might add for Racket Mode documentation)? |
Maybe installing it with Maybe the snap needs https://snapcraft.io/docs/personal-files-interface to be set up for |
If someone sticks with DrRacket, via its GUI file open/save dialogs IIUC it might work OK, even for $HOME. So as an option for students, Racket-from-snap-store is probably fine (or even wonderful!). I'm not sure about the command-line Racket stuff, though. On my "daily driver" laptop, I'm still on Ubuntu 18.04 -- partly out of inertia, but also out of reluctance to deal with "snapification" in newer Ubuntus. So although I can try some experiments, I'm not sure I have the latest snap-frastructure to give accurate results. |
More info: https://racket.discourse.group/t/ubuntu-linux-racket-8-10-snap-emacs-racket-mode/2263/2 suggests the problem isn't the home dir per se, but dotfile dirs. Although Snap |
I wrote an FAQ and made it a pinned issue: #666. I think that's the best I can do for now, so I'm going to close this. Personally I think an even better resolution would be for the snap to change to use |
Hello, I get the following error when installing racket-mode and when running racket-run on Ubuntu 22.04. Any help would be appreciated.
{racket-back-end-/-stderr} open-input-file: cannot open module file
module path: /home/chris/.emacs.d/elpa/racket-mode-1.0.20230321.113335/racket/main.rkt
path: /home/chris/.emacs.d/elpa/racket-mode-1.0.20230321.113335/racket/main.rkt
system error: Permission denied; errno=13
Thanks
P.S. here is the bug report:
Please copy all of the following lines and paste them into your bug report
at https://github.com/greghendershott/racket-mode/issues/.
The text was updated successfully, but these errors were encountered: