SwatPhonLab / UltraTrace

A Free/Open-Source tool for manual annotation of Ultrasound Tongue Imaging data.
GNU General Public License v3.0
10 stars 5 forks source link

installation a pain on macOS #183

Open jonorthwash opened 1 year ago

jonorthwash commented 1 year ago

PyAudio

(doesn't seem to be installable other ways; see https://github.com/PortAudio/portaudio/issues/708 ?)

  1. git clone https://github.com/PortAudio/portaudio.git
  2. ./configure; make; sudo make install
  3. export CFLAGS="-Ipwd/portaudio-v19/include/ -Lpwd/portaudio-v19/lib/.libs/" (with appropriate directories)
    • as of 2023-06-27: export CFLAGS="-Ipwd/include/ -Lpwd/lib/.libs/"
  4. 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 commented 1 year ago

See also #179.

keggsmurph21 commented 1 year ago

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 (cda964f94bfa2b2361dccf68fe9f0911f619dff2). See https://github.com/SwatPhonLab/UltraTrace/blob/d2393e31925ee1794dc9dbdbd35ac8848c683183/.circleci/config.yml#L72-L89