Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I get obscure DLL so py2exe will compile?

I am running py2exe to convert a rather large (~20k lines) python file into an executable. It's an older program and is written in python 2.7, 32 bit, so it does not translate well to a minimum working example. On running py2exe I encounter the following error:

error: [Errno 2] No such file or directory: 
'libopenblas.UWVN3XTD2LSS7SFIFK6TIQ5GONFDBJKU.gfortran-win32.dll'

Having this dll in the Python27/DLLs folder will solve this issue, but after scouring the depths of google I have been unable to make any progress. My question: where can one download this dll, or a library which would contain this dll?

like image 772
Dr. Toboggan Avatar asked Oct 15 '25 18:10

Dr. Toboggan


2 Answers

Problem solved. If you're running 32 bit python and numpy, you should be able to find this specific DLL at:

C:\Python27\Lib\site-packages\numpy\.libs

Copy and paste this into:

C:\Python27\DLLs

And run py2exe as normal.

like image 143
Dr. Toboggan Avatar answered Oct 18 '25 08:10

Dr. Toboggan


Adding to Dr.Toboggan's answer, you can probably just import numpy inside the setup.py file for p2exe, this is what worked for me on a 64-bit system...

like image 32
fastlan Avatar answered Oct 18 '25 08:10

fastlan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!