-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation Error with miditok #155
Comments
@LiuZH-19 , thank you for your kind message! It seems that the problem arises when installing symusic, which is the library used in miditok to read, write and manipulate MIDIs files. On which system (OS + cpu arch) are you installing it? |
I'm trying to install it on Linux with an x86_64 CPU using |
I assume from the logs your Python version is 3.9. It seems that pip cannot find a matching pre-compiled dist for your specific environment. If you have a glibc linux distribution: wget https://files.pythonhosted.org/packages/f1/6f/af35401ec528326ffd79f30ab58626ab24f5a6bc4a23b55a35b0f5dfda42/symusic-0.4.2-cp39-cp39-manylinux_2_28_x86_64.manylinux_2_27_x86_64.whl
pip install symusic-0.4.2-cp39-cp39-manylinux_2_28_x86_64.manylinux_2_27_x86_64.whl Otherwise a musl linux distribution: wget https://files.pythonhosted.org/packages/c4/06/46bbeb91ca1d83f6dc6e0b9b2c49d78d91ff17ada9044ee86e71936871d4/symusic-0.4.2-cp39-cp39-musllinux_1_2_x86_64.whl
pip install symusic-0.4.2-cp39-cp39-musllinux_1_2_x86_64.whl |
Thank you very much for your patient response. I tried the methods you suggested above, but without success. Ultimately, I managed to install symusic by compiling it from the source code, which also led to the successful installation of miditok. Thank you once again!
|
I ran into this as well on a Centos 7 machine with an older version of GLIBC. In my case I didn't manage the server, so I had to install a recent version of gcc using conda:
and then install symusic with this gcc version (remember to change the paths to point to your conda install):
This was with |
Thank you @xavriley for all these details! Pinging @Yikai-Liao as these info might help to tweak the deployment compilations for the next versions. Also clang 14.0.0 compiles it with no issue on macOS, but I think 14 is the minimum required version. |
@LiuZH-19 It's strange. Theoretically, if pip falls back to compiling from source, this should works the same as installing And could you please show me you glibc version by |
@Yikai-Liao, thank you very much. My glibc version is |
@LiuZH-19 Yes. The pre-compiled version requires |
Also version of |
The compilation error in source distribution has been fixed in |
Seems we would stuck on build from source if not compatible for a while: |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
First of all, I would like to express my gratitude for your amazing work. I've been attempting to install miditok, but I encountered an error during the installation process. Unfortunately, I'm not sure how to resolve this issue. Below is the error message I received:
Could you please guide me on how to resolve this error? Any help or suggestions would be greatly appreciated.
Thank you for your time and assistance.
The text was updated successfully, but these errors were encountered: