My old standby for debugging this sort of thing is the venerable
https://dependencywalker.com/ (which still works fine, if a little slow, on
Win 10).  Try popping it up on your .exe and see if you can find your
module there.  Right click on the file list and you can toggle "Full Paths"
and see where the DLL is being found.

On Wed, Jan 13, 2021 at 12:16 AM Sylvain Berger <[email protected]>
wrote:

> Yes and it works. I am using the single file option and running on a
> machine that doesn't have the library still works. It looks like that libs
> are hidden in the executable somehow. not sure if it is the case or not.
>
> On Tuesday, January 12, 2021 at 2:00:32 p.m. UTC-5 [email protected]
> wrote:
>
>> Have you tried installing and running on another machine, which does not
>> have your module installed?  Could be leaking in through system path or
>> something if you're testing on your development machine.
>>
>> On Tue, Jan 12, 2021 at 8:57 AM Sylvain Berger <[email protected]>
>> wrote:
>>
>>> I am packaging a Qt window application using pyinstaller on windows 10;
>>> The application is working fine but I don't understand why it work (I hate
>>> when something looks like it shouldn't work but does work)
>>>
>>> My application requires a few external module I wrote.
>>>
>>> They are imported normally and are not hidden imports.
>>>
>>> When using the --onedir method, I get a package with all the Qt dll and
>>> some standard library python module but not my external module. Yet the
>>> application is working fine, importing all the required modules and
>>> everything.
>>>
>>> In my application if I import those modules and print them to see the
>>> path of the module, it points to the packaged folder, but the modules are
>>> not there, yet it works.
>>>
>>> I feel really dumb asking this. It feels like I am simply missing
>>> something really obvious. what is going on?
>>>
>>> Thanks
>>>
>>> --
>>>
>> You received this message because you are subscribed to the Google Groups
>>> "PyInstaller" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/pyinstaller/c21468b2-039a-42c7-844b-9a43767c4a03n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/pyinstaller/c21468b2-039a-42c7-844b-9a43767c4a03n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "PyInstaller" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pyinstaller/0067019c-8957-479b-81d1-602d79fa8c4dn%40googlegroups.com
> <https://groups.google.com/d/msgid/pyinstaller/0067019c-8957-479b-81d1-602d79fa8c4dn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/CAP2Qz%2BUaOBJX0Ly89fNTMe6BCgiC68hYjYfpSmDCJ-r8w6Sqiw%40mail.gmail.com.

Reply via email to