aashrafh / Mozart

An optical music recognition (OMR) system. Converts sheet music to a machine-readable version.
Apache License 2.0
583 stars 84 forks source link

Error for creating conda env #8

Closed jiaboli007 closed 3 years ago

jiaboli007 commented 3 years ago

I got the following error:

conda env create -f requirements.yml Collecting package metadata (repodata.json): done Solving environment: failed

I tried on two different MacBook Pro, and got the same errors.

It will be great to provide some hints how to solve this problem.

Thanks!

aashrafh commented 3 years ago

Sorry, but I couldn't re-generate the error! Everything works just fine.

Screenshot_20210317_153608

jiaboli007 commented 3 years ago

Maybe it is a platform dependent issue. Which platform are you developing Mozart? Linux? I am testing on macOS Catalina 10.15.7

aashrafh commented 3 years ago

I'm using Linux 5.10.15-1-MANJARO and tested it on other Linux platforms and Windows works fine but didn't test it on macOS.

jiaboli007 commented 3 years ago

Thank you so much for your information. I will try on a Linux machine. I believe Mozart is a great open source project, I really appreciate your team have put things together and a lot of people will benefit from this work. It will be nice to get Mozart working on macOS, as a lot of high-end developers for music are using Mac.

ken830 commented 3 years ago

Same issue for me on Windows 64-bit:

`(base) C:\Users\Ken\Downloads\Mozart>conda env create -f requirements.yml

Collecting package metadata (repodata.json): done

Solving environment: failed`

AndyTQ commented 3 years ago

I am having the same issue as @ken830 , on Windows 10: `(mozart) C:\Users\35171\Desktop\Codebase\Mozart\Mozart-main>conda env create -f requirements.yml Collecting package metadata (repodata.json): done Solving environment: failed

ResolvePackageNotFound:

aashrafh commented 3 years ago

@AndyTQ @ken830 Please replace the content of the requirement.yml file with the following and try again:

name: mozart
channels:
  - anaconda
  - conda-forge
  - defaults
dependencies:
  - _libgcc_mutex=0.1
  - _openmp_mutex=4.5
  - anyio=2.0.2
  - argon2-cffi=20.1.0
  - async_generator=1.10
  - attrs=20.3.0
  - babel=2.9.0
  - backports=1.0
  - backports.functools_lru_cache=1.6.1
  - bleach=3.2.1
  - brotlipy=0.7.0
  - bzip2=1.0.8
  - c-ares=1.17.1
  - ca-certificates=2020.12.5
  - cairo=1.16.0
  - certifi=2020.12.5
  - cffi=1.14.4
  - chardet=4.0.0
  - cloudpickle=1.6.0
  - cryptography=3.3.1
  - cycler=0.10.0
  - cytoolz=0.11.0
  - dask-core=2020.12.0
  - dbus=1.13.6
  - decorator=4.4.2
  - defusedxml=0.6.0
  - entrypoints=0.3
  - expat=2.2.9
  - ffmpeg=4.3.1
  - fontconfig=2.13.1
  - freetype=2.10.4
  - gettext=0.19.8.1
  - glib=2.66.4
  - gmp=6.2.1
  - gnutls=3.6.13
  - graphite2=1.3.13
  - gst-plugins-base=1.14.5
  - gstreamer=1.18.2
  - harfbuzz=2.7.2
  - hdf5=1.10.6
  - icu=68.1
  - idna=2.10
  - imageio=2.9.0
  - importlib-metadata=3.3.0
  - importlib_metadata=3.3.0
  - imutils=0.5.3
  - ipykernel=5.3.4
  - ipython=5.8.0
  - ipython_genutils=0.2.0
  - jasper=1.900.1
  - jinja2=2.11.2
  - joblib=1.0.0
  - jpeg=9d
  - json5=0.9.5
  - jsonschema=3.2.0
  - jupyter_client=6.1.7
  - jupyter_core=4.7.0
  - jupyter_server=1.1.3
  - jupyterlab=3.0.0
  - jupyterlab_pygments=0.1.2
  - jupyterlab_server=2.0.0
  - kiwisolver=1.3.1
  - krb5=1.17.2
  - lame=3.100
  - lcms2=2.11
  - ld_impl_linux-64=2.35.1
  - libblas=3.9.0
  - libcblas=3.9.0
  - libclang=11.0.0
  - libcurl=7.71.1
  - libedit=3.1.20191231
  - libev=4.33
  - libevent=2.1.10
  - libffi=3.3
  - libgcc-ng=9.3.0
  - libgfortran-ng=9.3.0
  - libgfortran5=9.3.0
  - libglib=2.66.4
  - libgomp=9.3.0
  - libiconv=1.16
  - liblapack=3.9.0
  - liblapacke=3.9.0
  - libllvm11=11.0.0
  - libnghttp2=1.41.0
  - libopenblas=0.3.12
  - libopencv=4.5.0
  - libpng=1.6.37
  - libpq=12.3
  - libsodium=1.0.18
  - libssh2=1.9.0
  - libstdcxx-ng=9.3.0
  - libtiff=4.2.0
  - libuuid=2.32.1
  - libwebp-base=1.1.0
  - libxcb=1.13
  - libxkbcommon=1.0.3
  - libxml2=2.9.10
  - lz4-c=1.9.2
  - markupsafe=1.1.1
  - matplotlib-base=3.3.3
  - mistune=0.8.4
  - mysql-common=8.0.22
  - mysql-libs=8.0.22
  - nbclassic=0.2.5
  - nbclient=0.5.1
  - nbconvert=6.0.7
  - nbformat=5.0.8
  - ncurses=6.2
  - nest-asyncio=1.4.3
  - nettle=3.6
  - networkx=2.5
  - notebook=6.1.6
  - nspr=4.29
  - nss=3.60
  - numpy=1.19.4
  - olefile=0.46
  - opencv=4.5.0
  - openh264=2.1.1
  - openssl=1.1.1i
  - packaging=20.8
  - pandoc=2.11.3.1
  - pandocfilters=1.4.2
  - pcre=8.44
  - pexpect=4.8.0
  - pickleshare=0.7.5
  - pillow=8.0.1
  - pip=20.3.3
  - pixman=0.40.0
  - prometheus_client=0.9.0
  - prompt_toolkit=1.0.15
  - pthread-stubs=0.4
  - ptyprocess=0.6.0
  - py-opencv=4.5.0
  - pycparser=2.20
  - pygments=2.7.3
  - pyopenssl=20.0.1
  - pyparsing=2.4.7
  - pyrsistent=0.17.3
  - pysocks=1.7.1
  - python=3.7.9
  - python-dateutil=2.8.1
  - python_abi=3.7
  - pytz=2020.4
  - pywavelets=1.1.1
  - pyyaml=5.3.1
  - pyzmq=20.0.0
  - qt=5.12.9
  - readline=8.0
  - requests=2.25.1
  - scikit-image=0.17.2
  - scikit-learn=0.23.2
  - scipy=1.5.3
  - send2trash=1.5.0
  - setuptools=49.6.0
  - simplegeneric=0.8.1
  - six=1.15.0
  - sniffio=1.2.0
  - sqlite=3.34.0
  - terminado=0.9.1
  - testpath=0.4.4
  - threadpoolctl=2.1.0
  - tifffile=2020.10.1
  - tk=8.6.10
  - toolz=0.11.1
  - tornado=6.1
  - traitlets=5.0.5
  - typing_extensions=3.7.4.3
  - urllib3=1.26.2
  - wcwidth=0.2.5
  - webencodings=0.5.1
  - wheel=0.36.2
  - x264=1!152.20180806
  - xorg-kbproto=1.0.7
  - xorg-libice=1.0.10
  - xorg-libsm=1.2.3
  - xorg-libx11=1.6.12
  - xorg-libxau=1.0.9
  - xorg-libxdmcp=1.1.3
  - xorg-libxext=1.3.4
  - xorg-libxrender=0.9.10
  - xorg-renderproto=0.11.1
  - xorg-xextproto=7.3.0
  - xorg-xproto=7.0.31
  - xz=5.2.5
  - yaml=0.2.5
  - zeromq=4.3.3
  - zipp=3.4.0
  - zlib=1.2.11
  - zstd=1.4.5
  - pip:
    - autopep8==1.5.4
    - pycodestyle==2.6.0
    - toml==0.10.2
ken830 commented 3 years ago

@aashrafh: Thank you. I tried with new requirements.yml from above, and this is what I see. It's a much shorter list.

(base) C:\Users\Ken\Downloads\Mozart>conda env create -f requirements.yml
Collecting package metadata (repodata.json): done
Solving environment: failed

ResolvePackageNotFound:
  - libgfortran5=9.3.0
  - libgcc-ng=9.3.0
  - ld_impl_linux-64=2.35.1
  - libgfortran-ng=9.3.0
  - libedit=3.1.20191231
  - libev=4.33
  - nspr=4.29
  - dbus=1.13.6
  - libxkbcommon=1.0.3
  - nettle=3.6
  - jasper=1.900.1
  - libgomp=9.3.0
  - libuuid=2.32.1
  - libstdcxx-ng=9.3.0
  - readline=8.0
  - gst-plugins-base=1.14.5
  - openh264=2.1.1
  - x264=1!152.20180806
  - gmp=6.2.1
  - ncurses=6.2
  - nss=3.60
  - libnghttp2=1.41.0
  - _openmp_mutex=4.5
  - lame=3.100
  - gnutls=3.6.13
aashrafh commented 3 years ago

Mostly, they are platform-specific packages. I already deleted them and tested the code on my Windows 10 machine but it seems that I posted the file content before saving it. Sorry for that.

name: mozart
channels:
  - anaconda
  - conda-forge
  - defaults
dependencies:
  - _libgcc_mutex=0.1
  - anyio=2.0.2
  - argon2-cffi=20.1.0
  - async_generator=1.10
  - attrs=20.3.0
  - babel=2.9.0
  - backports=1.0
  - backports.functools_lru_cache=1.6.1
  - bleach=3.2.1
  - brotlipy=0.7.0
  - bzip2=1.0.8
  - c-ares=1.17.1
  - ca-certificates=2020.12.5
  - cairo=1.16.0
  - certifi=2020.12.5
  - cffi=1.14.4
  - chardet=4.0.0
  - cloudpickle=1.6.0
  - cryptography=3.3.1
  - cycler=0.10.0
  - cytoolz=0.11.0
  - dask-core=2020.12.0
  - decorator=4.4.2
  - defusedxml=0.6.0
  - entrypoints=0.3
  - expat=2.2.9
  - ffmpeg=4.3.1
  - fontconfig=2.13.1
  - freetype=2.10.4
  - gettext=0.19.8.1
  - glib=2.66.4
  - graphite2=1.3.13
  - gstreamer=1.18.2
  - harfbuzz=2.7.2
  - hdf5=1.10.6
  - icu=68.1
  - idna=2.10
  - imageio=2.9.0
  - importlib-metadata=3.3.0
  - importlib_metadata=3.3.0
  - imutils=0.5.3
  - ipykernel=5.3.4
  - ipython=5.8.0
  - ipython_genutils=0.2.0
  - jinja2=2.11.2
  - joblib=1.0.0
  - jpeg=9d
  - json5=0.9.5
  - jsonschema=3.2.0
  - jupyter_client=6.1.7
  - jupyter_core=4.7.0
  - jupyter_server=1.1.3
  - jupyterlab=3.0.0
  - jupyterlab_pygments=0.1.2
  - jupyterlab_server=2.0.0
  - kiwisolver=1.3.1
  - krb5=1.17.2
  - lcms2=2.11
  - libblas=3.9.0
  - libcblas=3.9.0
  - libclang=11.0.0
  - libcurl=7.71.1
  - libevent=2.1.10
  - libffi=3.3
  - libglib=2.66.4
  - libiconv=1.16
  - liblapack=3.9.0
  - liblapacke=3.9.0
  - libllvm11=11.0.0
  - libopenblas=0.3.12
  - libopencv=4.5.0
  - libpng=1.6.37
  - libpq=12.3
  - libsodium=1.0.18
  - libssh2=1.9.0
  - libtiff=4.2.0
  - libwebp-base=1.1.0
  - libxcb=1.13
  - libxml2=2.9.10
  - lz4-c=1.9.2
  - markupsafe=1.1.1
  - matplotlib-base=3.3.3
  - mistune=0.8.4
  - mysql-common=8.0.22
  - mysql-libs=8.0.22
  - nbclassic=0.2.5
  - nbclient=0.5.1
  - nbconvert=6.0.7
  - nbformat=5.0.8
  - nest-asyncio=1.4.3
  - networkx=2.5
  - notebook=6.1.6
  - numpy=1.19.4
  - olefile=0.46
  - opencv=4.5.0
  - openssl=1.1.1i
  - packaging=20.8
  - pandoc=2.11.3.1
  - pandocfilters=1.4.2
  - pcre=8.44
  - pexpect=4.8.0
  - pickleshare=0.7.5
  - pillow=8.0.1
  - pip=20.3.3
  - pixman=0.40.0
  - prometheus_client=0.9.0
  - prompt_toolkit=1.0.15
  - pthread-stubs=0.4
  - ptyprocess=0.6.0
  - py-opencv=4.5.0
  - pycparser=2.20
  - pygments=2.7.3
  - pyopenssl=20.0.1
  - pyparsing=2.4.7
  - pyrsistent=0.17.3
  - pysocks=1.7.1
  - python=3.7.9
  - python-dateutil=2.8.1
  - python_abi=3.7
  - pytz=2020.4
  - pywavelets=1.1.1
  - pyyaml=5.3.1
  - pyzmq=20.0.0
  - qt=5.12.9
  - requests=2.25.1
  - scikit-image=0.17.2
  - scikit-learn=0.23.2
  - scipy=1.5.3
  - send2trash=1.5.0
  - setuptools=49.6.0
  - simplegeneric=0.8.1
  - six=1.15.0
  - sniffio=1.2.0
  - sqlite=3.34.0
  - terminado=0.9.1
  - testpath=0.4.4
  - threadpoolctl=2.1.0
  - tifffile=2020.10.1
  - tk=8.6.10
  - toolz=0.11.1
  - tornado=6.1
  - traitlets=5.0.5
  - typing_extensions=3.7.4.3
  - urllib3=1.26.2
  - wcwidth=0.2.5
  - webencodings=0.5.1
  - wheel=0.36.2
  - xorg-kbproto=1.0.7
  - xorg-libice=1.0.10
  - xorg-libsm=1.2.3
  - xorg-libx11=1.6.12
  - xorg-libxau=1.0.9
  - xorg-libxdmcp=1.1.3
  - xorg-libxext=1.3.4
  - xorg-libxrender=0.9.10
  - xorg-renderproto=0.11.1
  - xorg-xextproto=7.3.0
  - xorg-xproto=7.0.31
  - xz=5.2.5
  - yaml=0.2.5
  - zeromq=4.3.3
  - zipp=3.4.0
  - zlib=1.2.11
  - zstd=1.4.5
  - pip:
    - autopep8==1.5.4
    - pycodestyle==2.6.0
    - toml==0.10.2
ken830 commented 3 years ago

@aashrafh: That worked! I was able to setup the environment. Thank you!

dzen-it commented 3 years ago

@aashrafh Small request. Please push last worked requirements file to repository, it's realy works on macOS Catalina. Thanks!

aashrafh commented 3 years ago

@dzen-it Done. Thank you for the macOS confirmation