OMP warning when numpy 1.8.0 is packaged with py2exe

import numpy

When I packed above one line of the script as one executable window application using py2exe , after starting I get the following warnings.

OMP: Warning #178: Function GetModuleHandleEx failed:
OMP: System error #126: The specified module could not be found.

This warning occurs only when I build as one executable file (i.e. only with bundle_files = 1). Here is my setup.py for this.

from distutils.core import setup
import py2exe

setup(
    options = {'py2exe': {'bundle_files': 1}},
    windows=['testnumpy.py'],
    zipfile = None,
)

This issue started with numpy 1.8.0. When I return to 1.6.2, warnings will not appear.

Typically, a single executable file packed with py2exe will capture warnings and traces and save them to a log file. But for some reason, these warnings are not fixed, and the application creates a console window to display the warning. I want to suppress this additional console window so that it appears.

?

( ):

+4
2

, numpy 1.8.1rc1 sourceforge , ...

+3

numpy 1.13.1 + mkl scipy 1.19.1. numpy 1.8.1rc1 .

scipy.integrate. , . , , MKL, library.zip, py2exe 2 .

, scipy numpy py2exe script python script.

+1

Source: https://habr.com/ru/post/1531833/


All Articles