YaoFANGUK / video-subtitle-extractor

视频硬字幕提取,生成srt文件。无需申请第三方API,本地实现文本识别。基于深度学习的视频字幕提取框架,包含字幕区域检测、字幕内容提取。A GUI tool for extracting hard-coded subtitle (hardsub) from videos and generating srt files.
Apache License 2.0
5.99k stars 663 forks source link

ModuleNotFoundError: No module named 'pyexpat' #150

Open actforjason opened 2 years ago

actforjason commented 2 years ago

vse_windows_GPU.7z

actforjason commented 2 years ago
Traceback (most recent call last):
  File "B:\MediaTools\vse\Python\Lib\site-packages\qpt\kernel\qcode.py", line 12, in <module>
    from pip._internal.utils.misc import get_installed_distributions
  File "B:\MediaTools\vse\Python\Lib\site-packages\pip\_internal\utils\misc.py", line 35, in <module>
    from pip._vendor.pkg_resources import Distribution
  File "B:\MediaTools\vse\Python\Lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 35, in <module>
    import plistlib
  File "B:\MediaTools\vse\Python\Lib\plistlib.py", line 65, in <module>
    from xml.parsers.expat import ParserCreate
  File "B:\MediaTools\vse\Python\Lib\xml\parsers\expat.py", line 4, in <module>
    from pyexpat import *
ModuleNotFoundError: No module named 'pyexpat'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "B:\MediaTools\vse\Python\Lib\site-packages\qpt\run.py", line 22, in <module>
    from qpt.executor import RunExecutableModule
  File "B:\MediaTools\vse\Python\Lib\site-packages\qpt\executor.py", line 20, in <module>
    from qpt.modules.package import QPTDependencyPackage, QPTGUIDependencyPackage, \
  File "B:\MediaTools\vse\Python\Lib\site-packages\qpt\modules\package.py", line 13, in <module>
    from qpt.kernel.qcode import PythonPackages
  File "B:\MediaTools\vse\Python\Lib\site-packages\qpt\kernel\qcode.py", line 14, in <module>
    from pip._internal.utils.misc import cast
  File "B:\MediaTools\vse\Python\Lib\site-packages\pip\_internal\utils\misc.py", line 35, in <module>
    from pip._vendor.pkg_resources import Distribution
  File "B:\MediaTools\vse\Python\Lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 35, in <module>
    import plistlib
  File "B:\MediaTools\vse\Python\Lib\plistlib.py", line 65, in <module>
    from xml.parsers.expat import ParserCreate
  File "B:\MediaTools\vse\Python\Lib\xml\parsers\expat.py", line 4, in <module>
    from pyexpat import *
ModuleNotFoundError: No module named 'pyexpat'
actforjason commented 2 years ago

用源码没有问题

YaoFANGUK commented 2 years ago

看上去是qpt的问题