[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] pygame.midi



On 18.08.2012 14:38, Martin Tarenskeen wrote:
> Where does that underscore in "_rtmidi" suddenly come from ???

The package struture is:

rtmidi/
    __init__.py
    _rtmidi.so
    release.py

and the symbols from the _rtmidi module are imported into the package
namespace in __init__.py.

The _rtmidi.so file is the C extension compiled from the C source file
rtmidi.c generated from the Cython file _rtmidi.pyx (in the src
directory of the distribution).

>     ImportError: No module named _rtmidi

I can't say why you got this without more detail, but if you follow the
installation instructions in the README and have all the dependencies
you should be ok.

Chris