"TypeError: expected bytes, str found" when calling .MidiIn() from rtmidi-python -
i installed rtmidi_python python 3.4.2 .whl provided on http://www.lfd.uci.edu/~gohlke/pythonlibs/, , import works fine, call "rtmidi_python.midiin()", typeerror follows:
python 3.4.2 (v3.4.2:ab2c023a9432, oct 6 2014, 22:15:05) [msc v.1600 32 bit (intel)] on win32 type "copyright", "credits" or "license()" more information. >>> import rtmidi_python >>> rtmidi_python.midiin() traceback (most recent call last): file "<pyshell#3>", line 1, in <module> rtmidi_python.midiin() file "rtmidi_python.pyx", line 72, in rtmidi_python.midiin.__cinit__ (rtmidi_python.cpp:1440) typeerror: expected bytes, str found
as understand, after research, means there's mistake somewhere in package or in build of it, , there's nothing can it, might wrong. can confirm?
i use 3.4.2 because version of python used current version of blender. want use rtmidi-python within blender game engine. working on windows 7 32 bit, , use .whls install packages not have necessary c++ compiler regular pip installs.
for comparison, installed rtmidi-python 3.5.1, adequate .whl provided on link above, , there command worked fine.
should necessary information missing, feel free ask. ahead if answer comes comment , don't upvote it.
while not perfect solution, can fixed in manner described sehqlr here...https://github.com/superquadratic/rtmidi-python/issues/17
...by calling midiin() this:
>>> rtmidi_python.midiin(b'in')
Comments
Post a Comment