Trying to use/run subsync fails. freebsd-13-1:~ % subsync Traceback (most recent call last): File "/usr/local/bin/subsync", line 33, in <module> sys.exit(load_entry_point('subsync==0.2.8', 'console_scripts', 'subsync')()) File "/usr/local/bin/subsync", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/local/lib/python3.9/importlib/metadata.py", line 86, in load module = import_module(match.group('module')) File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import 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 "/usr/local/lib/python3.9/site-packages/subsync/__init__.py", line 2, in <module> from .subsync import main # noqa File "/usr/local/lib/python3.9/site-packages/subsync/subsync.py", line 9, in <module> from .speech_transformers import SubtitleSpeechTransformer, VideoSpeechTransformer File "/usr/local/lib/python3.9/site-packages/subsync/speech_transformers.py", line 10, in <module> import webrtcvad File "/usr/local/lib/python3.9/site-packages/webrtcvad.py", line 1, in <module> import pkg_resources File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3260, in <module> def _initialize_master_working_set(): File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside f(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3272, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 581, in _build_master ws.require(__requires__) File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 909, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 795, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'srt' distribution was not found and is required by subsync
I'm seeing this as well on 13.2-RELEASE-p4, installed from the multimedia/subsync package (along with all the build dependencies installed manually, as at least some of them also seem to be runtime dependencies). I seem to be getting pretty much exactly the same trace as the original reporter. $ subsync Traceback (most recent call last): File "/usr/local/bin/subsync", line 33, in <module> sys.exit(load_entry_point('subsync==0.2.8', 'console_scripts', 'subsync')()) File "/usr/local/bin/subsync", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/local/lib/python3.9/importlib/metadata.py", line 86, in load module = import_module(match.group('module')) File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import 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 "/usr/local/lib/python3.9/site-packages/subsync/__init__.py", line 2, in <module> from .subsync import main # noqa File "/usr/local/lib/python3.9/site-packages/subsync/subsync.py", line 9, in <module> from .speech_transformers import SubtitleSpeechTransformer, VideoSpeechTransformer File "/usr/local/lib/python3.9/site-packages/subsync/speech_transformers.py", line 10, in <module> import webrtcvad File "/usr/local/lib/python3.9/site-packages/webrtcvad.py", line 1, in <module> import pkg_resources File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3260, in <module> def _initialize_master_working_set(): File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside f(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3272, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 581, in _build_master ws.require(__requires__) File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 909, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 795, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'srt' distribution was not found and is required by subsync
Thanks for your report. I will update this port soon.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=fc8073fb98379e62b39584f212243eea4d93b860 commit fc8073fb98379e62b39584f212243eea4d93b860 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2023-10-22 19:11:34 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2023-10-22 19:11:34 +0000 multimedia/subsync: Move to multimedia/ffsubsync and update to 0.4.25 The project was renamed. PR: 270646 Reported by: kreeblah@gmail.com MOVED | 1 + multimedia/Makefile | 2 +- multimedia/ffsubsync/Makefile (new) | 36 +++++++++++++++++++++++++++++ multimedia/ffsubsync/distinfo (new) | 3 +++ multimedia/{subsync => ffsubsync}/pkg-descr | 0 multimedia/subsync/Makefile (gone) | 31 ------------------------- multimedia/subsync/distinfo (gone) | 3 --- 7 files changed, 41 insertions(+), 35 deletions(-)
Hi kreeblah@gmail.com, This project was renamed into 'ffsubsync'. I renamed the port multimedia/subsync to multimedia/ffsubsync. All tests pass, but I currently have no ability to test it with real use. Could you please try it and let me know if it works for you? Thank you, Yuri
Yes, this update seems to resolve the issue for me. I can build and run it now, and it does seem to work in real-world cases for me. Thank you for getting this fixed!
Works for me, too.
I am glad that it worked for you, guys! Thank you for confirming this. Best, Yuri