Can not install via pip.
Closed this issue · 14 comments
happen
pip install fail since it could not satisfy requirement demucs>=4.1.0a2
on my M1 MacBook.
I guess this line is incorrect in requirements.txt:
demucs>=4.1.0a2
On pip site, demucs is still 4.0.1.
https://pypi.org/project/demucs/
By changing as below, pip install succeeded.
demucs>=4.0.1
What is the platform you are using?
macOS
log
➜ Demucs-Gui git:(main) python3 -m pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement demucs>=4.1.0a2 (from versions: 0.0.0, 0.0.1, 0.0.2, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 4.0.0, 4.0.1)
ERROR: No matching distribution found for demucs>=4.1.0a2
WARNING: There was an error checking the latest version of pip.
Demucs 4.1.0 hasn't been released to pypi, but 1.0 requires its latest api. To install it now, please run pip install -U git+https://github.com/CarlGao4/demucs.git@4.1.0a2#egg=demucs
@CarlGao4 thanks now I've succeeded to install. OK I have to install demucs from your fork for now.
Still
python3 ./GuiMain.py
fail to show any GUI and exit immediately, but it might be another issue.
You may check the log file
At ~/.config/demucs-gui/log
And you should switch to the root dir of this git repo
Run python3 ./GUI/GuiMain.py
I could launch GUI by python3 ./GUI/GuiMain.py
When I click "Load" button with model htdemucs_6s, it stuck.
Better to create another issue rather than here?
log :
2023-10-18 17:18:12,220 (GuiMain.py) (Line 952) [INFO] : Python version: 3.9.6 (default, Aug 11 2023, 19:44:49)
[Clang 15.0.0 (clang-1500.0.40.1)]
2023-10-18 17:18:12,220 (GuiMain.py) (Line 953) [INFO] : Demucs GUI version: 1.0a1
2023-10-18 17:18:12,242 (GuiMain.py) (Line 954) [INFO] : System: macOS-14.0-arm64-arm-64bit
2023-10-18 17:18:12,247 (GuiMain.py) (Line 955) [INFO] : Architecture: 64bit
2023-10-18 17:18:12,248 (GuiMain.py) (Line 956) [INFO] : CPU: arm
2023-10-18 17:18:12,248 (GuiMain.py) (Line 957) [INFO] : CPU count: 10
2023-10-18 17:18:12,248 (GuiMain.py) (Line 958) [INFO] : System memory: 17179869184 (16.0GB)
2023-10-18 17:18:12,249 (GuiMain.py) (Line 961) [INFO] : System free memory: 784302080 (747.969MB)
2023-10-18 17:18:12,249 (GuiMain.py) (Line 964) [INFO] : System swap memory: 1073741824 (1.0GB)
2023-10-18 17:18:13,902 (__init__.py) (Line 68) [DEBUG] : Failed to initialize sox extension
Traceback (most recent call last):
File "/Users/koji/Library/Python/3.9/lib/python/site-packages/torchaudio/_extension/__init__.py", line 60, in <module>
_init_sox()
File "/Users/koji/Library/Python/3.9/lib/python/site-packages/torchaudio/_extension/utils.py", line 70, in _init_sox
_load_lib("libtorchaudio_sox")
File "/Users/koji/Library/Python/3.9/lib/python/site-packages/torchaudio/_extension/utils.py", line 64, in _load_lib
torch.ops.load_library(path)
File "/Users/koji/Library/Python/3.9/lib/python/site-packages/torch/_ops.py", line 852, in load_library
ctypes.CDLL(path)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/ctypes/__init__.py", line 366, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Users/koji/Library/Python/3.9/lib/python/site-packages/torchaudio/lib/libtorchaudio_sox.so, 0x0006): Library not loaded: @rpath/libsox.dylib
Referenced from: <847025F5-17A5-3761-946C-C8FD861C6799> /Users/koji/Library/Python/3.9/lib/python/site-packages/torchaudio/lib/libtorchaudio_sox.so
Reason: tried: '/usr/local/lib/libsox.dylib' (no such file), '/usr/lib/libsox.dylib' (no such file, not in dyld cache)
2023-10-18 17:18:13,906 (utils.py) (Line 93) [DEBUG] : Attempting to load FFmpeg version 6.
2023-10-18 17:18:13,925 (utils.py) (Line 130) [DEBUG] : Failed to load FFmpeg 6 extension.
Traceback (most recent call last):
File "/Users/koji/Library/Python/3.9/lib/python/site-packages/torchaudio/_extension/utils.py", line 128, in _find_ffmpeg_extension
return _find_versionsed_ffmpeg_extension(ffmpeg_ver)
File "/Users/koji/Library/Python/3.9/lib/python/site-packages/torchaudio/_extension/utils.py", line 113, in _find_versionsed_ffmpeg_extension
_try_access_avutil(ffmpeg_ver)
File "/Users/koji/Library/Python/3.9/lib/python/site-packages/torchaudio/_extension/utils.py", line 89, in _try_access_avutil
torchaudio.lib._torchaudio.find_avutil(libavutil)
RuntimeError: Error in dlopen: dlopen(libavutil.58.dylib, 0x0006): tried: 'libavutil.58.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibavutil.58.dylib' (no such file), '/Users/koji/Library/Python/3.9/lib/python/site-packages/torch/lib/libavutil.58.dylib' (no such file), '/usr/lib/libavutil.58.dylib' (no such file, not in dyld cache), 'libavutil.58.dylib' (no such file), '/usr/local/lib/libavutil.58.dylib' (no such file), '/usr/lib/libavutil.58.dylib' (no such file, not in dyld cache)
2023-10-18 17:18:13,925 (utils.py) (Line 93) [DEBUG] : Attempting to load FFmpeg version 5.
2023-10-18 17:18:13,927 (utils.py) (Line 130) [DEBUG] : Failed to load FFmpeg 5 extension.
Traceback (most recent call last):
File "/Users/koji/Library/Python/3.9/lib/python/site-packages/torchaudio/_extension/utils.py", line 128, in _find_ffmpeg_extension
return _find_versionsed_ffmpeg_extension(ffmpeg_ver)
File "/Users/koji/Library/Python/3.9/lib/python/site-packages/torchaudio/_extension/utils.py", line 113, in _find_versionsed_ffmpeg_extension
_try_access_avutil(ffmpeg_ver)
File "/Users/koji/Library/Python/3.9/lib/python/site-packages/torchaudio/_extension/utils.py", line 89, in _try_access_avutil
torchaudio.lib._torchaudio.find_avutil(libavutil)
RuntimeError: Error in dlopen: dlopen(libavutil.57.dylib, 0x0006): tried: 'libavutil.57.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibavutil.57.dylib' (no such file), '/Users/koji/Library/Python/3.9/lib/python/site-packages/torch/lib/libavutil.57.dylib' (no such file), '/usr/lib/libavutil.57.dylib' (no such file, not in dyld cache), 'libavutil.57.dylib' (no such file), '/usr/local/lib/libavutil.57.dylib' (no such file), '/usr/lib/libavutil.57.dylib' (no such file, not in dyld cache)
2023-10-18 17:18:13,927 (utils.py) (Line 93) [DEBUG] : Attempting to load FFmpeg version 4.
2023-10-18 17:18:13,929 (utils.py) (Line 130) [DEBUG] : Failed to load FFmpeg 4 extension.
Traceback (most recent call last):
File "/Users/koji/Library/Python/3.9/lib/python/site-packages/torchaudio/_extension/utils.py", line 128, in _find_ffmpeg_extension
return _find_versionsed_ffmpeg_extension(ffmpeg_ver)
File "/Users/koji/Library/Python/3.9/lib/python/site-packages/torchaudio/_extension/utils.py", line 113, in _find_versionsed_ffmpeg_extension
_try_access_avutil(ffmpeg_ver)
File "/Users/koji/Library/Python/3.9/lib/python/site-packages/torchaudio/_extension/utils.py", line 89, in _try_access_avutil
torchaudio.lib._torchaudio.find_avutil(libavutil)
RuntimeError: Error in dlopen: dlopen(libavutil.56.dylib, 0x0006): tried: 'libavutil.56.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibavutil.56.dylib' (no such file), '/Users/koji/Library/Python/3.9/lib/python/site-packages/torch/lib/libavutil.56.dylib' (no such file), '/usr/lib/libavutil.56.dylib' (no such file, not in dyld cache), 'libavutil.56.dylib' (no such file), '/usr/local/lib/libavutil.56.dylib' (no such file), '/usr/lib/libavutil.56.dylib' (no such file, not in dyld cache)
2023-10-18 17:18:13,929 (__init__.py) (Line 96) [DEBUG] : Failed to initialize ffmpeg bindings
Traceback (most recent call last):
File "/Users/koji/Library/Python/3.9/lib/python/site-packages/torchaudio/_extension/__init__.py", line 89, in <module>
_FFMPEG_EXT = _init_ffmpeg()
File "/Users/koji/Library/Python/3.9/lib/python/site-packages/torchaudio/_extension/utils.py", line 162, in _init_ffmpeg
ext = _find_ffmpeg_extension(ffmpeg_vers, show_error)
File "/Users/koji/Library/Python/3.9/lib/python/site-packages/torchaudio/_extension/utils.py", line 132, in _find_ffmpeg_extension
raise ImportError(f"Failed to intialize FFmpeg extension. Tried versions: {ffmpeg_vers}")
ImportError: Failed to intialize FFmpeg extension. Tried versions: ['6', '5', '4']
2023-10-18 17:18:14,100 (audio.py) (Line 29) [INFO] : Soundfile version: 0.12.1
--- Logging error ---
Traceback (most recent call last):
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/logging/handlers.py", line 959, in emit
self.socket.sendto(msg, self.address)
OSError: [Errno 9] Bad file descriptor
Call stack:
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 930, in _bootstrap
self._bootstrap_inner()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/Users/koji/work/Demucs-Gui/GUI/separator.py", line 40, in starter
import audio
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/Users/koji/work/Demucs-Gui/GUI/audio.py", line 29, in <module>
logging.info("Soundfile version: %s" % soundfile.__version__)
Message: 'Soundfile version: 0.12.1'
Arguments: ()
2023-10-18 17:18:14,117 (audio.py) (Line 30) [INFO] : libsndfile version: 1.2.0
--- Logging error ---
Traceback (most recent call last):
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/logging/handlers.py", line 959, in emit
self.socket.sendto(msg, self.address)
OSError: [Errno 9] Bad file descriptor
Call stack:
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 930, in _bootstrap
self._bootstrap_inner()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/Users/koji/work/Demucs-Gui/GUI/separator.py", line 40, in starter
import audio
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/Users/koji/work/Demucs-Gui/GUI/audio.py", line 30, in <module>
logging.info("libsndfile version: %s" % soundfile.__libsndfile_version__)
Message: 'libsndfile version: 1.2.0'
Arguments: ()
2023-10-18 17:18:14,129 (audio.py) (Line 31) [INFO] : SoXR version: 0.3.7
--- Logging error ---
Traceback (most recent call last):
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/logging/handlers.py", line 959, in emit
self.socket.sendto(msg, self.address)
OSError: [Errno 9] Bad file descriptor
Call stack:
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 930, in _bootstrap
self._bootstrap_inner()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/Users/koji/work/Demucs-Gui/GUI/separator.py", line 40, in starter
import audio
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/Users/koji/work/Demucs-Gui/GUI/audio.py", line 31, in <module>
logging.info("SoXR version: %s" % soxr.__version__)
Message: 'SoXR version: 0.3.7'
Arguments: ()
2023-10-18 17:18:14,140 (audio.py) (Line 32) [INFO] : libsoxr version: 0.1.3-7-gacc0dac
--- Logging error ---
Traceback (most recent call last):
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/logging/handlers.py", line 959, in emit
self.socket.sendto(msg, self.address)
OSError: [Errno 9] Bad file descriptor
Call stack:
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 930, in _bootstrap
self._bootstrap_inner()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/Users/koji/work/Demucs-Gui/GUI/separator.py", line 40, in starter
import audio
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/Users/koji/work/Demucs-Gui/GUI/audio.py", line 32, in <module>
logging.info("libsoxr version: %s" % soxr.__libsoxr_version__)
Message: 'libsoxr version: 0.1.3-7-gacc0dac'
Arguments: ()
2023-10-18 17:18:14,151 (separator.py) (Line 43) [INFO] : Demucs version: 4.1.0a2
--- Logging error ---
Traceback (most recent call last):
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/logging/handlers.py", line 959, in emit
self.socket.sendto(msg, self.address)
OSError: [Errno 9] Bad file descriptor
Call stack:
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 930, in _bootstrap
self._bootstrap_inner()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/Users/koji/work/Demucs-Gui/GUI/separator.py", line 43, in starter
logging.info("Demucs version: " + demucs.__version__)
Message: 'Demucs version: 4.1.0a2'
Arguments: ()
2023-10-18 17:18:14,152 (separator.py) (Line 44) [INFO] : PyTorch version: 2.1.0
--- Logging error ---
Traceback (most recent call last):
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/logging/handlers.py", line 959, in emit
self.socket.sendto(msg, self.address)
OSError: [Errno 9] Bad file descriptor
Call stack:
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 930, in _bootstrap
self._bootstrap_inner()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/Users/koji/work/Demucs-Gui/GUI/separator.py", line 44, in starter
logging.info("PyTorch version: " + torch.__version__)
Message: 'PyTorch version: 2.1.0'
Arguments: ()
2023-10-18 17:18:15,283 (audio.py) (Line 40) [INFO] : ffmpeg -version output:
ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
built with Apple clang version 15.0.0 (clang-1500.0.40.1)
configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/6.0_1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
--- Logging error ---
Traceback (most recent call last):
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/logging/handlers.py", line 959, in emit
self.socket.sendto(msg, self.address)
OSError: [Errno 9] Bad file descriptor
Call stack:
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 930, in _bootstrap
self._bootstrap_inner()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/Users/koji/work/Demucs-Gui/GUI/separator.py", line 60, in starter
ffmpeg_version = audio.checkFFMpeg()
File "/Users/koji/work/Demucs-Gui/GUI/audio.py", line 40, in checkFFMpeg
logging.info("ffmpeg -version output:\n" + out)
Message: "ffmpeg -version output:\nffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers\nbuilt with Apple clang version 15.0.0 (clang-1500.0.40.1)\nconfiguration: --prefix=/opt/homebrew/Cellar/ffmpeg/6.0_1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon\nlibavutil 58. 2.100 / 58. 2.100\nlibavcodec 60. 3.100 / 60. 3.100\nlibavformat 60. 3.100 / 60. 3.100\nlibavdevice 60. 1.100 / 60. 1.100\nlibavfilter 9. 3.100 / 9. 3.100\nlibswscale 7. 1.100 / 7. 1.100\nlibswresample 4. 10.100 / 4. 10.100\nlibpostproc 57. 1.100 / 57. 1.100\n"
Arguments: ()
2023-10-18 17:18:15,326 (audio.py) (Line 45) [INFO] : ffprobe -version output:
ffprobe version 6.0 Copyright (c) 2007-2023 the FFmpeg developers
built with Apple clang version 15.0.0 (clang-1500.0.40.1)
configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/6.0_1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
--- Logging error ---
Traceback (most recent call last):
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/logging/handlers.py", line 959, in emit
self.socket.sendto(msg, self.address)
OSError: [Errno 9] Bad file descriptor
Call stack:
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 930, in _bootstrap
self._bootstrap_inner()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/Users/koji/work/Demucs-Gui/GUI/separator.py", line 60, in starter
ffmpeg_version = audio.checkFFMpeg()
File "/Users/koji/work/Demucs-Gui/GUI/audio.py", line 45, in checkFFMpeg
logging.info("ffprobe -version output:\n" + out)
Message: "ffprobe -version output:\nffprobe version 6.0 Copyright (c) 2007-2023 the FFmpeg developers\nbuilt with Apple clang version 15.0.0 (clang-1500.0.40.1)\nconfiguration: --prefix=/opt/homebrew/Cellar/ffmpeg/6.0_1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon\nlibavutil 58. 2.100 / 58. 2.100\nlibavcodec 60. 3.100 / 60. 3.100\nlibavformat 60. 3.100 / 60. 3.100\nlibavdevice 60. 1.100 / 60. 1.100\nlibavfilter 9. 3.100 / 9. 3.100\nlibswscale 7. 1.100 / 7. 1.100\nlibswresample 4. 10.100 / 4. 10.100\nlibpostproc 57. 1.100 / 57. 1.100\n"
Arguments: ()
2023-10-18 17:18:49,855 (GuiMain.py) (Line 270) [INFO] : Loading model htdemucs_6s from repo "remote"
--- Logging error ---
Traceback (most recent call last):
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/logging/handlers.py", line 959, in emit
self.socket.sendto(msg, self.address)
OSError: [Errno 9] Bad file descriptor
Call stack:
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 930, in _bootstrap
self._bootstrap_inner()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/Users/koji/work/Demucs-Gui/./GUI/GuiMain.py", line 270, in loadModelThread
logging.info(
Message: 'Loading model htdemucs_6s from repo "remote"'
Arguments: ()
2023-10-18 17:18:50,073 (GuiMain.py) (Line 292) [INFO] : Model loaded within 0.2055s
--- Logging error ---
Traceback (most recent call last):
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/logging/handlers.py", line 959, in emit
self.socket.sendto(msg, self.address)
OSError: [Errno 9] Bad file descriptor
Call stack:
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 930, in _bootstrap
self._bootstrap_inner()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/Users/koji/work/Demucs-Gui/./GUI/GuiMain.py", line 292, in loadModelThread
logging.info("Model loaded within %.4fs" % (end_time - start_time))
Message: 'Model loaded within 0.2055s'
Arguments: ()
2023-10-18 17:18:50,074 (GuiMain.py) (Line 293) [INFO] : Model: htdemucs_6s
Repo: "remote"
Type: Bag of models
Audio channels: 2
Sample rate: 44100
Sources: drums, bass, other, vocals, guitar, piano
Model 0:
Type: HTDemucs
Default segment: 7.8
Weight: [1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
--- Logging error ---
Traceback (most recent call last):
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/logging/handlers.py", line 959, in emit
self.socket.sendto(msg, self.address)
OSError: [Errno 9] Bad file descriptor
Call stack:
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 930, in _bootstrap
self._bootstrap_inner()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/Users/koji/work/Demucs-Gui/./GUI/GuiMain.py", line 293, in loadModelThread
logging.info(model_info)
Message: 'Model: htdemucs_6s\nRepo: "remote"\nType: Bag of models\nAudio channels: 2\nSample rate: 44100\nSources: drums, bass, other, vocals, guitar, piano\n\nModel 0:\n\tType: HTDemucs\n\tDefault segment: 7.8\n\tWeight: [1.0, 1.0, 1.0, 1.0, 1.0, 1.0]'
Arguments: ()
Traceback (most recent call last):
File "/Users/koji/work/Demucs-Gui/./GUI/GuiMain.py", line 170, in showParamSettingsFunc
self.param_settings = SepParamSettings()
File "/Users/koji/work/Demucs-Gui/./GUI/GuiMain.py", line 382, in __init__
for info, id_ in separator.getAvailableDevices():
File "/Users/koji/work/Demucs-Gui/GUI/separator.py", line 75, in getAvailableDevices
devices.append(("MPS (%d MiB)" % psutil.virtual_memory().total / 1048576, "mps"))
TypeError: unsupported operand type(s) for /: 'str' and 'int'
Please fetch and pull the latest commit now and try again.
I could fix by myself.
Now I can separate my mp3 on my M1 MacBook.It tooks Around 30 sec for 4min song. great.
I will raise PR for fix.
File "/Users/koji/work/Demucs-Gui/GUI/separator.py", line 75, in getAvailableDevices
devices.append(("MPS (%d MiB)" % psutil.virtual_memory().total / 1048576, "mps"))
TypeError: unsupported operand type(s) for /: 'str' and 'int'
But I've fixed that...
Btw, I'm quite interested that why somebody with coding experience would like to use this GUI instead of demucs command line
Confirmed it works with latest main. Thank you.
Btw, I'm quite interested that why somebody with coding experience would like to use this GUI instead of demucs command line
@CarlGao4
I'm developer of Mac GUI for spleeter.
https://github.com/kyab/MySpleeter
But this only support Intel Mac and is outdated. Few month ago I got M1 MacBook so I've tried to update MySpeeter to support M1/M2 mac but I could not even install spleeter itself nicely.
And I've known about Demucs-Gui for a little while now, and I realized that it would be a shorter way to deal with your GUI. I saw in some article that you don't have M1 mac, but I tried it today anyway, it works with GPU and it's perfect.
If you don't mind, could you tell me how you are packaging it? I'm not good at python but maybe pyinstaller?
By the way, I tried this one today and this one is also using GPU and the demucs model is working perfectly.
https://github.com/Anjok07/ultimatevocalremovergui
But I see Demucs-Gui can also do batch processing of multiple files. Its nice.
I can use the command line, but I just want everyone to be able to do music source sepration easily.
I would say that I can help with any music source separation GUI project implemented with PyTorch. I designed my project into modules, so only rewriting GUI/separator.py is required if you want to use my GUI to operate other separation libraries.
It's a bit tricky to pack torchaudio using PyInstaller so I manually commented all the import torchaudio
codes and reimplemented those functions requiring torchaudio with other libraries (like soundfile and soxr) before packing with PyInstaller.
It would be a good thing if you could help me package Demucs-GUI for macOS!
You can contact me at email gaoweiqicarl1@163.com for deeper discussion.
I will contact you at email, thank you.