Installation fails on MacOS (conflicting dependencies)
See original GitHub issue🐛 Bug Report
python3 -m pip install --user -U demucs
command fails on MacOS.
Running:
- BigSur v11.6 on M1 chip
- Python 3.10.1 with pip-21.3.1
To Reproduce
- Run
python3 -m pip install --user -U demucs
Expected behavior
Returns
Collecting demucs
Using cached demucs-3.0.1.tar.gz (1.5 MB)
Preparing metadata (setup.py) ... done
Collecting dora-search
Using cached dora_search-0.1.7.tar.gz (68 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting demucs
Using cached demucs-3.0.0.tar.gz (1.5 MB)
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/s0/ks_8g5zn125076cpkskl_rvc0000gn/T/pip-install-e05p_m7_/demucs_3d8567b52f024f7a8b8e2e3c8e5db5d6/setup.py'"'"'; __file__='"'"'/private/var/folders/s0/ks_8g5zn125076cpkskl_rvc0000gn/T/pip-install-e05p_m7_/demucs_3d8567b52f024f7a8b8e2e3c8e5db5d6/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/s0/ks_8g5zn125076cpkskl_rvc0000gn/T/pip-pip-egg-info-92s0nt5s
cwd: /private/var/folders/s0/ks_8g5zn125076cpkskl_rvc0000gn/T/pip-install-e05p_m7_/demucs_3d8567b52f024f7a8b8e2e3c8e5db5d6/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/s0/ks_8g5zn125076cpkskl_rvc0000gn/T/pip-install-e05p_m7_/demucs_3d8567b52f024f7a8b8e2e3c8e5db5d6/setup.py", line 39, in <module>
REQUIRED = load_requirements('requirements_minimal.txt')
File "/private/var/folders/s0/ks_8g5zn125076cpkskl_rvc0000gn/T/pip-install-e05p_m7_/demucs_3d8567b52f024f7a8b8e2e3c8e5db5d6/setup.py", line 34, in load_requirements
required = [i.strip() for i in open(HERE / name)]
FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/s0/ks_8g5zn125076cpkskl_rvc0000gn/T/pip-install-e05p_m7_/demucs_3d8567b52f024f7a8b8e2e3c8e5db5d6/requirements_minimal.txt'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/5b/a5/d29ca8f45f1d6dc814d595b9874cb209d45e97c1bbfb41c48968be2e1231/demucs-3.0.0.tar.gz#sha256=d91beb476dfec0362a531a935429f429f3f8dae0d0772da3efb4fad73e9116d2 (from https://pypi.org/simple/demucs/) (requires-python:>=3.7.0). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached demucs-2.0.3.tar.gz (51 kB)
Preparing metadata (setup.py) ... done
Collecting diffq>=0.1
Using cached diffq-0.2.0.tar.gz (39 kB)
Preparing metadata (setup.py) ... done
Collecting demucs
Using cached demucs-2.0.2.tar.gz (51 kB)
Preparing metadata (setup.py) ... done
Using cached demucs-2.0.1.tar.gz (51 kB)
Preparing metadata (setup.py) ... done
Using cached demucs-2.0.0.tar.gz (45 kB)
Preparing metadata (setup.py) ... done
Using cached demucs-0.0.2.tar.gz (45 kB)
Preparing metadata (setup.py) ... done
Using cached demucs-0.0.1.tar.gz (45 kB)
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/s0/ks_8g5zn125076cpkskl_rvc0000gn/T/pip-install-e05p_m7_/demucs_0a29a721dbf14a6384fcc442088ce467/setup.py'"'"'; __file__='"'"'/private/var/folders/s0/ks_8g5zn125076cpkskl_rvc0000gn/T/pip-install-e05p_m7_/demucs_0a29a721dbf14a6384fcc442088ce467/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/s0/ks_8g5zn125076cpkskl_rvc0000gn/T/pip-pip-egg-info-n7xrmiyp
cwd: /private/var/folders/s0/ks_8g5zn125076cpkskl_rvc0000gn/T/pip-install-e05p_m7_/demucs_0a29a721dbf14a6384fcc442088ce467/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/s0/ks_8g5zn125076cpkskl_rvc0000gn/T/pip-install-e05p_m7_/demucs_0a29a721dbf14a6384fcc442088ce467/setup.py", line 25, in <module>
REQUIRED = [i.strip() for i in open(HERE / "requirements.txt")]
FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/s0/ks_8g5zn125076cpkskl_rvc0000gn/T/pip-install-e05p_m7_/demucs_0a29a721dbf14a6384fcc442088ce467/requirements.txt'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/f0/0b/ebb129e8724e8822e8f94e231118109f73b4a77ff76d47142e0fced854d7/demucs-0.0.1.tar.gz#sha256=76841228f4befedd0e94387c0a0f03e0b3ab8aacf40001a8f4b062b28160535d (from https://pypi.org/simple/demucs/) (requires-python:>=3.7.0). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached demucs-0.0.0.tar.gz (1.5 kB)
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/s0/ks_8g5zn125076cpkskl_rvc0000gn/T/pip-install-e05p_m7_/demucs_2926f03aaabc4535a74e279043def8ca/setup.py'"'"'; __file__='"'"'/private/var/folders/s0/ks_8g5zn125076cpkskl_rvc0000gn/T/pip-install-e05p_m7_/demucs_2926f03aaabc4535a74e279043def8ca/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/s0/ks_8g5zn125076cpkskl_rvc0000gn/T/pip-pip-egg-info-tw41krwz
cwd: /private/var/folders/s0/ks_8g5zn125076cpkskl_rvc0000gn/T/pip-install-e05p_m7_/demucs_2926f03aaabc4535a74e279043def8ca/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/s0/ks_8g5zn125076cpkskl_rvc0000gn/T/pip-install-e05p_m7_/demucs_2926f03aaabc4535a74e279043def8ca/setup.py", line 19, in <module>
REQUIRED = [i.strip() for i in open("requirements.txt")]
FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/80/04/5d0473a2e1261c3789ff6083febb5f797776a42dbbe069691b9cc73c9f10/demucs-0.0.0.tar.gz#sha256=8050de572ca5806244a28130b71b81d2542a02ebb91f37ff727becd7eb03debf (from https://pypi.org/simple/demucs/) (requires-python:>=3.7.0). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Cannot install demucs==0.0.2, demucs==2.0.0, demucs==2.0.1, demucs==2.0.2, demucs==2.0.3 and demucs==3.0.1 because these package versions have conflicting dependencies.
The conflict is caused by:
demucs 3.0.1 depends on diffq>=0.2.1
demucs 2.0.3 depends on lameenc>=1.2
demucs 2.0.2 depends on lameenc>=1.2
demucs 2.0.1 depends on lameenc>=1.2
demucs 2.0.0 depends on lameenc>=1.2
demucs 0.0.2 depends on lameenc>=1.2
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
Your Environment
- BigSur v11.6 on M1 chip, 16GB RAM
- Python 3.10.1 with pip-21.3.1
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Mac install problem: conflicting dependencies #2808 - GitHub
Get error "ERROR: Cannot install scancode-toolkit==30.1.0 because these package versions have conflicting dependencies." System configuration.
Read more >I can't install TensorFlow-macos a… | Apple Developer Forums
ERROR : Cannot install tensorflow-macos==2.5.0 and tensorflow-macos==2.6.0 because these package versions have conflicting dependencies. Posted 1 year ago by.
Read more >I can't install package because of conflict dependecy
I try install a package in python with cmd. but, i to counter this error: ERROR: Cannot install liionpack==0.3, liionpack==0.3.1 and ...
Read more >Common Issues - Homebrew Documentation
Make sure the issue really lies with your macOS version. To do so, try to install the software manually. If it is incompatible...
Read more >MacPorts Guide
Note that the section about installing Xcode is macOS-specific. If you wish to install ... Error installing new MacPorts base: command execution failed....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you installed directly using the installer from python.org, then this might help you: https://stackoverflow.com/a/53310545/2936604
Genius. Solved. Sorry shoulda found this by myself.
Thanks for the great work + support, really excited about this tool!