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

installation a pain on macOS #183

Open
jonorthwash opened this issue Oct 28, 2022 · 2 comments
Open

installation a pain on macOS #183

jonorthwash opened this issue Oct 28, 2022 · 2 comments

Comments

@jonorthwash
Copy link
Collaborator

jonorthwash commented Oct 28, 2022

PyAudio

(doesn't seem to be installable other ways; see PortAudio/portaudio#708 ?)

  1. git clone https://github.com/PortAudio/portaudio.git
  2. ./configure; make; sudo make install
  3. export CFLAGS="-I pwd/portaudio-v19/include/ -L pwd/portaudio-v19/lib/.libs/" (with appropriate directories)
  • as of 2023-06-27: export CFLAGS="-I pwd/include/ -L pwd/lib/.libs/"
  1. pip install pyaudio

libmagic (special instructions no longer needed as of 2023-06-27)

  1. brew install libmagic
  2. git clone https://github.com/dveselov/python-libmagic.git
  3. python setup.py install
    • Might also need to do pip uninstall python-magic; pip install python-magic-bin==0.4.14
@jonorthwash
Copy link
Collaborator Author

See also #179.

@keggsmurph21
Copy link
Collaborator

I got these working when I set up the MacOS build for CI in #181: portaudio can be installed with brew and python-magic-bin isn't actually required (cda964f). See

macos:
macos:
xcode: 13.2.1 # latest for Big Sur
environment:
# https://circleci.com/docs/using-macos/#optimizing-homebrew
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- checkout
- run:
name: install system packages
command: |
brew install \
portaudio \
python-tk@3.9
- install-and-check:
python: python3.9

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

2 participants