Какая отсутствует DLL ffpyplayer.player MediaPlayer?Python

Программы на Python
Ответить
Anonymous
 Какая отсутствует DLL ffpyplayer.player MediaPlayer?

Сообщение Anonymous »

У меня есть файл Python, который работает правильно при запуске из командной строки, я хочу упаковать его в exe-файл, но поскольку я добавил ffpyplayer, я не могу получить работающий exe-файл: у меня все еще есть проблема с загрузкой ffpyplayer.
Я запускаю pyinstaller Video.spec --clean
с моей спецификацией файл:

Код: Выделить всё

# -*- mode: python ; coding: utf-8 -*-

import os

a = Analysis(
['Video.py'],
pathex=[],
binaries= [
('ffprobe.exe', '.'),
('ffmpeg.exe', '.'),
('C:/temp/video/dll/avcodec-58.dll', '.'),
('C:/temp/video/dll/avdevice-58.dll', '.'),
('C:/temp/video/dll/avfilter-7.dll', '.'),
('C:/temp/video/dll/avformat-58.dll', '.'),
('C:/temp/video/dll/avutil-56.dll', '.'),
('C:/temp/video/dll/swresample-3.dll', '.'),
('C:/temp/video/dll/swscale-5.dll', '.'),
('C:/temp/video/dll/SDL2.dll', '.'),
],
datas=[('video.ico','.')],
hiddenimports=[
'ffpyplayer',
'ffpyplayer.threading',
'ffpyplayer.queue',
'ffpyplayer.player',
'ffpyplayer.tools',
'ffpyplayer.pic',
'ffpyplayer.writer',
'ffpyplayer.player.frame_queue',
'ffpyplayer.player.decoder',
'ffpyplayer.player.clock',
'ffpyplayer.player.core',
'ffpyplayer.player.player',
'ffpyplayer.player.queue',
],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
)

pyz = PYZ(a.pure)

exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='Video',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=['video.ico'],
)
но когда я запускаю Video.exe[/b] :

Код: Выделить всё

Traceback (most recent call last):
File "Video.py", line 16, in 
File "PyInstaller\loader\pyimod02_importers.py", line 384, in exec_module
File "ffpyplayer\player\__init__.py", line 10, in 
ImportError: DLL load failed while importing player: The specified module could not be found.
[PYI-5408:ERROR] Failed to execute script 'Video' due to unhandled exception!
со строкой с ошибкой в ​​Video.py
...

Код: Выделить всё

from ffpyplayer.player import MediaPlayer

Код: Выделить всё

How can I know which DLL is missing ?
с помощью pyi-archive_viewer на ./dist/video.exe я могу проверить dll в (PKG/CArchive):

Код: Выделить всё

'SDL2.dll'
'SDL2_mixer.dll'
'VCRUNTIME140.dll'
'VCRUNTIME140_1.dll'
'api-ms-win-core-console-l1-1-0.dll'
'api-ms-win-crt-utility-l1-1-0.dll'
'avcodec-58.dll'
'avcodec-60.dll'
'avdevice-58.dll'
'avdevice-60.dll'
'avfilter-7.dll'
'avfilter-9.dll'
'avformat-58.dll'
'avformat-60.dll'
'avutil-56.dll'
'avutil-58.dll'
'cv2\\opencv_videoio_ffmpeg4110_64.dll'
'libcrypto-3.dll'
'libffi-8.dll'
'libssl-3.dll'
'numpy.libs\\libscipy_openblas64_-43e11ff0749b8cbe0a615c9cf6737e0e.dll'
'numpy.libs\\msvcp140-d64049c6e3865410a7dda6a7e9f0c575.dll'
'postproc-55.dll'
'postproc-57.dll'
'pyexpat.pyd'
'python3.dll'
'python313.dll'
'select.pyd'
'swresample-3.dll'
'swresample-4.dll'
'swscale-5.dll'
'swscale-7.dll'
'tcl86t.dll'
'tk86t.dll'
'ucrtbase.dll'
'zlib1.dll'
Я не знаю, какого из них не хватает!!!

Подробнее здесь: https://stackoverflow.com/questions/793 ... player-dll
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Python»