Kara-Moon Forum

Developers & Technology => Musical MIDI Accompaniment (MMA) => Topic started by: bvdp on November 12, 2020, 02:11:51 AM



Title: Installing on Mac
Post by: bvdp on November 12, 2020, 02:11:51 AM
The current read-me for installing on a mac system is VERY old and dated. Here it is all in all its archaic glory:

     https://mellowood.ca/mma/mac/machowto.html

I think things have gotten easier over the years and should be as easy as:

   - unpack the binary tarball
   - run the cp-install script
   - move or link mma from /usr/local/bin to /sw/bin/mma

What I don't know:
 
   - is mac shipping/installing a version of python3?
   - do mac users need to change to administer mode or something similar to install?

If someone can give me a heads up on this I'll update the instructions!


Title: Re: Installing on Mac
Post by: sciurius on November 12, 2020, 07:36:46 AM
I'm not a Mac expert, but I can tell you that Catalina (10.15) comes with python 2.7.10 pre-installed. It also seems to know about python3, but this gives a warning (error):

xcode-select: error: tool 'python3' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

I'm not sure what that means.

I did the following:

Code:
tar xf /mma-devl.20.02e.tar.gz
cd mma-bin-20.02e
python mma.py -G

AFAICS python mma.py behaves normally. A small mma does the rest:

Code:
#!/bin/sh
exec python <location of mma>/mma.py ${1+"$@"}

I also tried mma-gb. It starts up slow (parsing the grooves takes one second per groove!) and gives a deprecation warning that the system Tk is obsolete. I couldn't get it to work, it's too slow.

Hope this helps...


Title: Re: Installing on Mac
Post by: bvdp on November 12, 2020, 04:14:31 PM
Did you try something like "python3 mma ..."?

Also, would this link help: https://www.saintlad.com/install-python-3-on-mac/


Title: Re: Installing on Mac
Post by: sciurius on November 12, 2020, 06:37:07 PM
I installed python3 using homebrew. Note that I needed to tweak my PATH to make sure that python3 did run the newly installed version, not the system version.

Running mma with python3 works equally well. Equally slow.


Title: Re: Installing on Mac
Post by: bvdp on November 12, 2020, 06:53:33 PM
Slow? Just doing the update or creating files as well? I'm assuming you don't have a mac from the 1990s :)


Title: Re: Installing on Mac
Post by: sciurius on November 12, 2020, 07:41:06 PM
The mma-gb still parses at one file per second. Plain command-line mma feels okay.