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

Emacspeak initialization error on Mac OS due to Foundation package #74

Closed
Newton-Climate opened this issue Aug 18, 2022 · 7 comments
Closed

Comments

@Newton-Climate
Copy link

Hi there, I was trying to install Emacspeak on Mac OS on my Apple M1 with OS 12.5. When I initialize emacspeak in the terminal, I hear the "Welcome to Emacspeak" voice, but VoiceOver doesn't work with the program. I went to emacspeak/server/Mac and got an error that said "package Foundation not found." I think it's related to the Xcode and PyObjc. I used pip to install PyObjC, which should include the Foundation module, but it seems to still not work, alongside looking for the Foundation module directly. PyObjC is importing via python but Foundation is not. Does anyone know how to get this module working? Thanks in advance

Best,

Newton

@robertmeta
Copy link
Contributor

robertmeta commented Nov 10, 2022

Getting it working on MacOS 12+ was a bit of a slog for me as well, I wrote a guide: https://gist.github.com/robertmeta/9a43eb5a2dd47481e51fa07d24b295f3

@Newton-Climate
Copy link
Author

Newton-Climate commented Nov 14, 2022 via email

@robertmeta
Copy link
Contributor

Mine is 3.10.8

@robertmeta
Copy link
Contributor

@Newton-Climate just curious if you got up and running?

@Newton-Climate
Copy link
Author

Newton-Climate commented Dec 20, 2022 via email

@robertmeta
Copy link
Contributor

Do you happen to use zsh, or any alternative shell? I added instructions for dealing with an oddity where emacs will work when run from the terminal, but not via the built-in finder runner in OSX.

  • pip3 install pyobjc

vs.

  • env -i pip3 install pyobjc

@robertmeta
Copy link
Contributor

@tvraman I think this issue can be closed, the original user got it working, and we have updated the python shebang a couple times since then. This issue likely has to do with lots of fiddly bits regarding multiple python versions on mac. I think my comment above will fix 9/10 of these cases (install the pip3 libraries with and without env setup).

@tvraman tvraman closed this as completed Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants