question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to list missing dependencies via CLI?

See original GitHub issue
dependencies.exe my_exe.exe

prints nothing at all (but I think that might be intentional). I can run dependencies.exe my_exe.exe -knowndll to see all the known DLLs and dependencies.exe my_exe.exe -imports to see all listed imports, and manually crossreference them, but there has to be a way to just get the missing ones.

Running dependencies.exe my_exe.exe -modules and dependencies.exe my_exe.exe -chain throw

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at Dependencies.PeDependencyItem.ResolveDependencies() in C:\projects\dependencies\Dependencies\Program.cs:line 294
   at Dependencies.PeDependencyItem.ResolveDependencies() in C:\projects\dependencies\Dependencies\Program.cs:line 309
   at Dependencies.PeDependencyItem.ResolveDependencies() in C:\projects\dependencies\Dependencies\Program.cs:line 309
   at Dependencies.PeDependencyItem.ResolveDependencies() in C:\projects\dependencies\Dependencies\Program.cs:line 309
   at Dependencies.PeDependencyItem.ResolveDependencies() in C:\projects\dependencies\Dependencies\Program.cs:line 309
   at Dependencies.PeDependencyItem.ResolveDependencies() in C:\projects\dependencies\Dependencies\Program.cs:line 309
   at Dependencies.PeDependencyItem.ResolveDependencies() in C:\projects\dependencies\Dependencies\Program.cs:line 309
   at Dependencies.PeDependencyItem.ResolveDependencies() in C:\projects\dependencies\Dependencies\Program.cs:line 309
   at Dependencies.PeDependencyItem.ResolveDependencies() in C:\projects\dependencies\Dependencies\Program.cs:line 309
   at Dependencies.PeDependencyItem.ResolveDependencies() in C:\projects\dependencies\Dependencies\Program.cs:line 309
   at Dependencies.Program.DumpModules(PE Pe, Action`1 Printer) in C:\projects\dependencies\Dependencies\Program.cs:line 503
   at Dependencies.Program.Main(String[] args) in C:\projects\dependencies\Dependencies\Program.cs:line 591

But this isn’t about that, so please let me know what the way to list the missing DLLs, if possible.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lucasgcommented, Dec 8, 2019

Can you test it with a up-to-date version please ? I think I fix the issue since v1.9

link : https://ci.appveyor.com/project/lucasg/dependencies/builds/29397059/job/jgtmvrfsdn62kfni/artifacts

1.9 :

O:\Dependencies\Releases\Dependencies-v1.9\Dependencies.exe -modules C:\Users\user\Downloads\python.exe --depth=2

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at Dependencies.PeDependencyItem.ResolveDependencies() in C:\projects\dependencies\Dependencies\Program.cs:line 296
   at Dependencies.PeDependencyItem.ResolveDependencies() in C:\projects\dependencies\Dependencies\Program.cs:line 311
   at Dependencies.PeDependencyItem.ResolveDependencies() in C:\projects\dependencies\Dependencies\Program.cs:line 311
   at Dependencies.PeDependencyItem.ResolveDependencies() in C:\projects\dependencies\Dependencies\Program.cs:line 311
   at Dependencies.PeDependencyItem.ResolveDependencies() in C:\projects\dependencies\Dependencies\Program.cs:line 311
   at Dependencies.PeDependencyItem.ResolveDependencies() in C:\projects\dependencies\Dependencies\Program.cs:line 311
   at Dependencies.PeDependencyItem.ResolveDependencies() in C:\projects\dependencies\Dependencies\Program.cs:line 311
   at Dependencies.PeDependencyItem.ResolveDependencies() in C:\projects\dependencies\Dependencies\Program.cs:line 311
   at Dependencies.PeDependencyItem.ResolveDependencies() in C:\projects\dependencies\Dependencies\Program.cs:line 311
   at Dependencies.PeDependencyItem.ResolveDependencies() in C:\projects\dependencies\Dependencies\Program.cs:line 311
   at Dependencies.PeDependencies..ctor(PE Application) in C:\projects\dependencies\Dependencies\Program.cs:line 373
   at Dependencies.Program.DumpModules(PE Pe, Action`1 Printer) in C:\projects\dependencies\Dependencies\Program.cs:line 503
   at Dependencies.Program.Main(String[] args) in C:\projects\dependencies\Dependencies\Program.cs:line 591

master build :

O:\Dependencies\Dependencies\bin\Releasex64\Dependencies.exe -modules C:\Users\user\Downloads\python.exe --depth=2
[ROOT] python.exe : C:\Users\lucas\Downloads\python.exe
[ApiSetSchema] api-ms-win-core-rtlsupport-l1-1-0.dll : C:\Windows\SysWOW64\ntdll.dll
[ApiSetSchema] api-ms-win-core-rtlsupport-l1-2-0.dll : C:\Windows\SysWOW64\ntdll.dll
[ApiSetSchema] api-ms-win-core-processthreads-l1-1-0.dll : C:\Windows\SysWOW64\kernel32.dll
[ApiSetSchema] api-ms-win-core-processthreads-l1-1-3.dll : C:\Windows\SysWOW64\kernel32.dll
[ApiSetSchema] api-ms-win-core-processthreads-l1-1-2.dll : C:\Windows\SysWOW64\kernel32.dll
[ApiSetSchema] api-ms-win-core-processthreads-l1-1-1.dll : C:\Windows\SysWOW64\kernel32.dll
[ApiSetSchema] api-ms-win-core-registry-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-heap-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-heap-l2-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-memory-l1-1-1.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-memory-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-memory-l1-1-2.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-handle-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-synch-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-synch-l1-2-1.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-synch-l1-2-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-file-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-file-l1-2-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-file-l1-2-2.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-file-l1-2-1.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-delayload-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-io-l1-1-0.dll : C:\Windows\SysWOW64\kernel32.dll
[ApiSetSchema] api-ms-win-core-io-l1-1-1.dll : C:\Windows\SysWOW64\kernel32.dll
[ApiSetSchema] api-ms-win-core-job-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-threadpool-legacy-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-threadpool-private-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-libraryloader-l1-2-2.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-libraryloader-l1-2-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-libraryloader-l1-2-1.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-libraryloader-l2-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-namedpipe-l1-2-2.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-namedpipe-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-namedpipe-l1-2-1.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-datetime-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-datetime-l1-1-1.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-datetime-l1-1-2.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-sysinfo-l1-2-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-sysinfo-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-sysinfo-l1-2-3.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-sysinfo-l1-2-1.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-timezone-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-localization-l1-2-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-localization-private-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-processenvironment-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-processenvironment-l1-2-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-string-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-debug-l1-1-1.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-debug-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-errorhandling-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-errorhandling-l1-1-3.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-fibers-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-util-l1-1-0.dll : C:\Windows\SysWOW64\kernel32.dll
[ApiSetSchema] api-ms-win-core-profile-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-security-base-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-security-base-l1-2-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-realtime-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-systemtopology-l1-1-1.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-systemtopology-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-processtopology-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-namespace-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-file-l2-1-2.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-file-l2-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-file-l2-1-3.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-file-l2-1-1.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-localization-l2-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-normalization-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-fibers-l2-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-fibers-l2-1-1.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-sidebyside-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-appcompat-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-appcompat-l1-1-1.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-windowserrorreporting-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-windowserrorreporting-l1-1-1.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-windowserrorreporting-l1-1-2.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-console-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-console-l1-2-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-console-l1-2-1.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-console-l2-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-console-l2-2-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-core-console-l3-2-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-security-appcontainer-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[ApiSetSchema] api-ms-win-eventing-provider-l1-1-0.dll : C:\Windows\SysWOW64\kernelbase.dll
[WellKnownDlls] KERNEL32.dll : C:\Windows\SysWOW64\kernel32.dll
[WellKnownDlls] ntdll.dll : C:\Windows\SysWOW64\ntdll.dll
[WellKnownDlls] KERNELBASE.dll : C:\Windows\SysWOW64\kernelbase.dll
[NOT_FOUND] python27.dll :
[NOT_FOUND] MSVCR90.dll :
[NOT_FOUND] api-ms-win-core-comm-l1-1-0.dll :
[NOT_FOUND] api-ms-win-core-wow64-l1-1-1.dll :
[NOT_FOUND] api-ms-win-core-wow64-l1-1-0.dll :
[NOT_FOUND] api-ms-win-core-xstate-l2-1-0.dll :
[NOT_FOUND] api-ms-win-core-xstate-l2-1-1.dll :
[NOT_FOUND] api-ms-win-core-psapi-l1-1-0.dll :
[NOT_FOUND] api-ms-win-core-psapi-ansi-l1-1-0.dll :
0reactions
tankorsmashcommented, Dec 8, 2019

Seems like it works for the Python exe for depth=1 (attached) and depth=2, and for my previous exe. Thank you!

PS C:\Users\asd\Downloads\Dependencies_x64_Release (1)> .\Dependencies.exe -modules C:\Python27\python.exe -depth=1    [ROOT] python.exe : C:\Python27\python.exe
[SxS] MSVCR90.dll : C:\WINDOWS\WinSxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91\msvcr90.dll
[WellKnownDlls] KERNEL32.dll : C:\WINDOWS\SysWOW64\kernel32.dll
[ApplicationDirectory] python27.dll : C:\Python27\python27.dll
PS C:\Users\asd\Downloads\Dependencies_x64_Release (1)>
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to detect missing dependencies for an executable?
Look up the list of dependencies of an executable: · For apt , the command is: apt-cache depends <packagename>. This will check the...
Read more >
How to list missing dependencies of Maven project
Maven shows you all dependencies that are missing in the first tier. ... and then re-run maven ( install or just mvn dependency:resolve...
Read more >
List missing dependencies of uninstalled package - Ask Fedora
Another way might be to use dnf install <package> and look at the list of dependencies it wants to install for that package...
Read more >
Checking RPM Dependencies From the Command Line
B – missing dependencies. To see the full list, we use the Up and Down arrow keys. Also, we can press the r...
Read more >
How to get list of dependencies of non-installed RPM ...
Use the repoquery tool from the yum-utils package instead. repoquery --requires <package>. OR to also see which additional RPM packages are ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found