BingLingGroup / autosub

Command-line utility to transcribe/translate from video/audio/subtitles to subtitles
GNU General Public License v2.0
1.98k stars 244 forks source link

I can't open autosub #142

Closed gabriellluz closed 3 years ago

gabriellluz commented 3 years ago

Make sure you have read the readme, searched and read the issues related to yours. Otherwise it will be considered as a duplicate which will be closed immediately.

Describe the bug A clear and concise description of what the bug is. I can't even use autosub. When I type autosub, I get an error.

To Reproduce Steps to reproduce the behavior: Open a terminal windows Type autosub

autosub
Traceback (most recent call last):
  File "/home/mestre/.pyenv/versions/3.8.5/bin/autosub", line 11, in <module>
    load_entry_point('autosub==0.5.7a0', 'console_scripts', 'autosub')()
  File "/home/mestre/.pyenv/versions/3.8.5/lib/python3.8/site-packages/pkg_resources/__init__.py", line 490, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/home/mestre/.pyenv/versions/3.8.5/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2862, in load_entry_point
    return ep.load()
  File "/home/mestre/.pyenv/versions/3.8.5/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2462, in load
    return self.resolve()
  File "/home/mestre/.pyenv/versions/3.8.5/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2468, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/home/mestre/.pyenv/versions/3.8.5/lib/python3.8/site-packages/autosub/__init__.py", line 16, in <module>
    from autosub import ffmpeg_utils
  File "/home/mestre/.pyenv/versions/3.8.5/lib/python3.8/site-packages/autosub/ffmpeg_utils.py", line 18, in <module>
    from autosub import constants
  File "/home/mestre/.pyenv/versions/3.8.5/lib/python3.8/site-packages/autosub/constants.py", line 16, in <module>
    from google.cloud.speech_v1p1beta1 import enums  # pylint: disable=unused-import
ImportError: cannot import name 'enums' from 'google.cloud.speech_v1p1beta1' (/home/mestre/.pyenv/versions/3.8.5/lib/python3.8/site-packages/google/cloud/speech_v1p1beta1/__init__.py)
Use this to display your config.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem. But it is not recommended using screenshots to demonstrate the commandline output unless you think it really matters.

Environment (please complete the following information):

Additional context (Optional) Add any other context about the problem here.

BingLingGroup commented 3 years ago

It seems that google has changed its package. I will investigate this issue later.

BingLingGroup commented 3 years ago

This commit https://github.com/BingLingGroup/autosub/pull/144/commits/3489be835e1d6e7a01e45308190111961c8c6fcb temporarily limits the version of the google-cloud-speech package below 2.0.0. Maybe support it in the future.