Bug 270646 - multimedia/subsync: The 'srt' distribution was not found and is required by subsync
Summary: multimedia/subsync: The 'srt' distribution was not found and is required by s...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-05 03:13 UTC by chadf
Modified: 2023-10-22 23:42 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chadf 2023-04-05 03:13:36 UTC
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
Comment 1 kreeblah 2023-10-22 07:00:50 UTC
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
Comment 2 Yuri Victorovich freebsd_committer freebsd_triage 2023-10-22 10:13:40 UTC
Thanks for your report.

I will update this port soon.
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-10-22 19:15:17 UTC
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(-)
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2023-10-22 19:16:14 UTC
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
Comment 5 kreeblah 2023-10-22 21:13:36 UTC
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!
Comment 6 chadf 2023-10-22 22:01:46 UTC
Works for me, too.
Comment 7 Yuri Victorovich freebsd_committer freebsd_triage 2023-10-22 23:42:43 UTC
I am glad that it worked for you, guys!

Thank you for confirming this.


Best,
Yuri