BingLingGroup / autosub

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

macOS locale环境变量问题 #84

Closed CharlotteFallices closed 4 years ago

CharlotteFallices commented 4 years ago

Alpha分支Autosub在使用过程中出现问题

系统信息

Terminal log

 File "/usr/local/bin/autosub", line 5, in <module>
    from autosub import main
  File "/Library/Python/2.7/site-packages/autosub/__init__.py", line 15, in <module>
    from autosub import ffmpeg_utils
  File "/Library/Python/2.7/site-packages/autosub/ffmpeg_utils.py", line 19, in <module>
    from autosub import constants
  File "/Library/Python/2.7/site-packages/autosub/constants.py", line 50, in <module>
    CURRENT_LOCALE = locale.getdefaultlocale()[0]
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 545, in getdefaultlocale
    return _parse_localename(localename)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 477, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
BingLingGroup commented 4 years ago

https://github.com/BingLingGroup/autosub/issues/83#issuecomment-586659854 https://github.com/pypa/pipenv/issues/187