How can I know which DLL is missing ?

59 views
Skip to first unread message

harvey13 π

unread,
Jan 23, 2025, 2:05:49 PMJan 23
to PyInstaller
I have a python file that works correctly when launched from the command line, I want to package it in an exe, but since I added ffpyplayer, I can't get an exe that works: I still have a problem loading the ffpyplayer module.

The line : from ffpyplayer.player import MediaPlayer
raise an error : ImportError: DLL load failed while importing player: The specified module could not be found.

I think I added all the dlls in the spec, but how do I know which one is missing?
Message has been deleted

siyu Hu

unread,
Jan 24, 2025, 10:44:48 AMJan 24
to PyInstaller
any message in 'warn-xxx.txt'? it is in dir 'build'

harvey13 π

unread,
Jan 24, 2025, 1:24:23 PMJan 24
to PyInstaller
I actually have a warn-Video.txt file, with more than 200 lines..
mainly about numpy, while I don't use it
the only line about ffpyplayer is: missing module named pytest - imported by ffpyplayer.tests.test_write (top-level)

interesting file to know !

bwoodsend

unread,
Jan 29, 2025, 11:24:18 AMJan 29
to PyInstaller

You can get a list of DLLs being used by your code by putting:

import psutil # Get this process i.e. Python. process = psutil.Process() # Print all loaded DLLs. for i in process.memory_maps(): print(i.path)

at the end of it then running your code normally (without PyInstaller). You can then compare that list to the DLLs in your pyinstaller-ed application. It’s tedious but it’s about as good as it gets on Windows.

Reply all
Reply to author
Forward
0 new messages