python-midi icon indicating copy to clipboard operation
python-midi copied to clipboard

Installing on mac

Open wzds2015 opened this issue 9 years ago • 4 comments

After first compiling "python setup.py install", I realized that "midilisten.py and sequencer module" are missing from the setup file. I thus add them accordingly.

After running installation again, when I try to run the tests.py, it returns: cannot find Sequencer object in sequence module.

I further checked the sequencer module and find there is no Sequencer object in the mac version, and there is one in the alsa version. Wonder if it is critical? Or I can still run my code correctly? I am trying to use this library for music composition.

Many thanks, Wenliang Zhao

wzds2015 avatar Oct 19 '16 20:10 wzds2015

I am also facing problem on mac: my problem is init files not able to find modules

 File "/anaconda/lib/python3.5/site-packages/midi-0.2.3-py3.5.egg/midi/__init__.py", line 1, in <module>
ImportError: No module named 'containers'

I tried to remove this module from init then it showing ImportError: No module named 'events"

init files not loading modules

monk1337 avatar Nov 11 '16 17:11 monk1337

On MacOSX I have that error:

File "/private/var/folders/dk/b5g3l6fx2m55fm4knypzcmq80000gn/T/pip-build-c9criuh1/python-midi/setup.py", line 42
        print "No sequencer available for '%s' platform." % platform

Any tips to install on Mac ?

vperrinfr avatar Jan 08 '18 09:01 vperrinfr

Seems this issue can be resolved using this command: https://github.com/vishnubob/python-midi/issues/119#issuecomment-307544298

achimkoh avatar Apr 01 '18 01:04 achimkoh

print "No sequencer available for '%s' platform." % platform

change the line

print("No sequencer available for '%s' platform." % platform)

or

print('No sequencer available for {0} platform.'.format(platform))

koji avatar May 28 '18 03:05 koji