vishnubob / python-midi

Python MIDI library
MIT License
1.5k stars 370 forks source link

Installing on mac #101

Open wzds2015 opened 7 years ago

wzds2015 commented 7 years ago

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

monk1337 commented 7 years ago

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

vperrinfr commented 6 years ago

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 ?

achimkoh commented 6 years ago

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

koji commented 6 years ago
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))