*UPDATE 2 :* In the meantime ... I added the dll to the data variable in 
specs (as stated here 
https://stackoverflow.com/questions/62625517/pyinstaller-exe-file-terminates-early-without-an-error-message
 and 
here 
https://stackoverflow.com/questions/58096010/pyinstaller-importerror-with-scipy-dll-load-failed.
 
Is this Ok ? Seems to work ...

data = [('C:/envs/venv/Lib/Library/bin/libiomp5md.dll', '.')]

RaC


On Monday, July 6, 2020 at 5:41:26 PM UTC+2, Ricardo A Corredor J wrote:
>
> *UPDATE:*
>
> I checked one by one the dlls I had in the folder where the executable was 
> running and found that there was only one that was required to run the 
> executable properly:
>
>
>
> Seems like this omp library is not included in the executable. Any reason 
> why ? 
>
> Thanks in advance!
>
> RaC
>
>
> On Monday, July 6, 2020 at 4:41:46 PM UTC+2, Ricardo A Corredor J wrote:
>>
>> Hi everyone,
>>
>> I have a python code that internally uses *numpy *(plus other 
>> dependencies) to perform some basic numerical operations.
>>
>> I installed *numpy* as "*conda install numpy*" (Windows 10) meaning that 
>> it includes and uses the *mkl libraries*. After running pyinstaller on 
>> this code, I have an executable that contains the *mkl libraries. *I can 
>> see those dlls when I run the executable and check the folder created in 
>> Temp with all the dependencies uncompressed. Nevertheless, when I run the 
>> executable, t*he program crashes* when it tries to use numpy with the 
>> optimized mkl libraries (a *numpy.dot*(..,..) operation). I copied the 
>> executable to the folder where I have the dlls of the mkl libraries in my 
>> system and the program runs properly. 
>>
>> *Question*: why the mkl libraries are not properly detected/used during 
>> runtime even if they are included in the executable?  Is there a way to set 
>> the .specs to link properly to those dlls instead of copying always the 
>> dlls next to the program or adding to the path? If not, is there a way to 
>> properly exclude the mkl libs from the executable if in any case I need to 
>> use them from a different folder ?
>>
>> Thanks,
>>
>> Ricardo
>> RaC
>>
>

-- 
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/17420365-99c4-4328-a3dd-74b84edad02eo%40googlegroups.com.

Reply via email to