Closed memo closed 6 years ago
Note, after running the openframeworks dependency installer scripts the error became this:
In [1]: import rtmidi
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-bb8660ccb28e> in <module>()
----> 1 import rtmidi
/home/memo/anaconda2/lib/python2.7/site-packages/rtmidi/__init__.py in <module>()
2 from __future__ import absolute_import
3 from .release import version as __version__ # noqa
----> 4 from ._rtmidi import * # noqa
5 from ._rtmidi import __doc__ # noqa
6 del absolute_import
ImportError: /home/memo/anaconda2/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/libjack.so.0)
which is fixed by conda install libgcc
I'm guessing the required packages were libjack-jackd2-0 libjack-jackd2-dev libasound2-dev
(as opposed to libasound-dev libjack-dev
?)
Thanks for using python-rtmidi and for the report. I have to say this is not something, I've encountered before, but I did a quick search for the error message and came up with reports from several other projects using Cython for wrapping C++, which exhibited this error under Anaconda on Ubuntu. It seems to be caused by a certain mixture of the GCC version Anaconda's Python binary is compiled with, the Cython version and the GCC version of the system the Cython extension is compiled on.
Can you try to install python-rtmidi into its own virtualenv (i.e. created with virtualenv and the system Python not Anaconda) and report back whether the error occurs there too? Try Python 2 and Python 3, if you have both and make sure to update Anaconda and Cython to the latest versions.
With regards to the required *-dev packages: you're correct, it should be libasound2-dev
instead of libasound-dev
. libjack-jackd2-dev
is listed correctly in the compilation requirements in the docs.
No more feedback, so closing this.
Hi, firstly thanks for this wrapper!
I believe I have all of the dependencies installed, and I can pip install python-rtmidi, however when I import rtmidi I get the error below. Is this an incompatibility with Anaconda? Or am I missing something?
System info: