Music-and-Culture-Technology-Lab / omnizart

Omniscient Mozart, being able to transcribe everything in the music, including vocal, drum, chord, beat, instruments, and more.
https://music-and-culture-technology-lab.github.io/omnizart-doc/
MIT License
1.62k stars 98 forks source link

Impossible to install #107

Closed simonpedrogonzalez closed 7 months ago

simonpedrogonzalez commented 8 months ago

I tried python3.10, 9 and 8, both locally (linux) and collab. 10 and 9 where giving errors with llvm that I couldn't solve through any of the common suggestions (reinstalling llvm-config, seting environment variables, etc). I read somewhere that llvm is not correctly supported in 9 and 10.

That is why I tried 8:

Collab with 3.8:


!git clone https://github.com/Music-and-Culture-Technology-Lab/omnizart.git
%cd omnizart
!pip install -U pip
!pip install .
!omnizart download-checkpoints
#!pip install omnizart
!apt install fluidsynth
!pip install pyfluidsynth
!curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp
!chmod a+rx /usr/local/bin/yt-dlp

it seems dependencies are not installed

[/content/omnizart/omnizart/utils.py](https://localhost:8080/#) in <module>
     11 
     12 import jsonschema
---> 13 import pretty_midi
     14 import numpy as np
     15 import scipy.io.wavfile as wave

ModuleNotFoundError: No module named 'pretty_midi'

Locally with python3.8

import fluidsynth
  File "/home/simon/anaconda3/envs/omnizart/lib/python3.8/site-packages/fluidsynth.py", line 48, in <module>
    _fl = CDLL(lib)
  File "/home/simon/anaconda3/envs/omnizart/lib/python3.8/ctypes/__init__.py", line 373, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /lib/x86_64-linux-gnu/libwayland-client.so.0: undefined symbol: ffi_type_uint32, version LIBFFI_BASE_7.0

I already did the export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libffi.so.7 and ensured that the file is there and correctly installed. Help plz, I don't know what to try next.

simonpedrogonzalez commented 8 months ago
export LD_LIBRARY_PATH=/lib/x86_64-linux-gnu/libffi.so.7:$LD_LIBRARY_PATH
sudo apt-get install --reinstall libwayland-client0
sudo apt-get install --reinstall libffi-dev
conda activate omnizart
conda install libffi
conda install -c conda-forge fluidsynth
pip install omnizart
omnizart download-checkpoints

this worked for local python3.8

SutirthaChakraborty commented 8 months ago

@simonpedrogonzalez any help with Colab???

simonpedrogonzalez commented 7 months ago

Nop, I gave up trying to install it in colab, just used it locally.