You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am printing the output of ./do.py run-python in line 146 of coco_utils.py on a Mac and wonder whether this warning
In file included from /Users/hansen/opt/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1832:
/Users/hansen/opt/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it with "
is relevant? Does it come from outdated COCO code or an outdated installation on the Mac?
This is the full output:
(base) 14:38:11 0 2 coco% ./do.py run-python [cwd: gitlab/paul/coco]
AML ['code-experiments/src/coco_random.c', 'code-experiments/src/coco_suite.c', 'code-experiments/src/coco_observer.c', 'code-experiments/src/coco_archive.c', 'code-experiments/src/coco_runtime_c.c'] -> code-experiments/build/python/cython/coco.c
EXPAND code-experiments/build/python/cython/coco.c.in to code-experiments/build/python/cython/coco.c
EXPAND code-experiments/src/coco.h to code-experiments/build/python/cython/coco.h
COPY code-experiments/src/bbob2009_testcases.txt -> code-experiments/build/python/bbob2009_testcases.txt
COPY code-experiments/src/bbob2009_testcases2.txt -> code-experiments/build/python/bbob2009_testcases2.txt
COPY code-experiments/build/python/README.md -> code-experiments/build/python/README.txt
EXPAND code-experiments/build/python/setup.py.in to code-experiments/build/python/setup.py
PYTHON setup.py install in code-experiments/build/python
NOTE: Using precompiled C file to build interface.
running install
running bdist_egg
running egg_info
writing cocoex.egg-info/PKG-INFO
writing dependency_links to cocoex.egg-info/dependency_links.txt
writing top-level names to cocoex.egg-info/top_level.txt
reading manifest file 'cocoex.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'cocoex.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.9-x86_64/egg
running install_lib
running build_py
running build_ext
building 'cocoex.interface' extension
x86_64-apple-darwin13.4.0-clang -fno-strict-aliasing -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O3 -Wall -Wstrict-prototypes -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O3 -pipe -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=/Users/hansen/opt/anaconda3=/usr/local/src/conda-prefix -flto -Wl,-export_dynamic -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O3 -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/hansen/opt/anaconda3/lib/python3.7/site-packages/numpy/core/include -I/Users/hansen/opt/anaconda3/include/python3.7m -c cython/interface.c -o build/temp.macosx-10.9-x86_64-3.7/cython/interface.o
clang-4.0: warning: -Wl,-export_dynamic: 'linker' input unused [-Wunused-command-line-argument]
In file included from cython/interface.c:598:
In file included from /Users/hansen/opt/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/hansen/opt/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
In file included from /Users/hansen/opt/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1832:
/Users/hansen/opt/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it with " \
^
1 warning generated.
x86_64-apple-darwin13.4.0-clang -fno-strict-aliasing -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O3 -Wall -Wstrict-prototypes -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O3 -pipe -fdebug-prefix-map=${SRC_DIR}=/usr/local/src/conda/${PKG_NAME}-${PKG_VERSION} -fdebug-prefix-map=/Users/hansen/opt/anaconda3=/usr/local/src/conda-prefix -flto -Wl,-export_dynamic -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O3 -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/hansen/opt/anaconda3/lib/python3.7/site-packages/numpy/core/include -I/Users/hansen/opt/anaconda3/include/python3.7m -c cython/coco.c -o build/temp.macosx-10.9-x86_64-3.7/cython/coco.o
clang-4.0: warning: -Wl,-export_dynamic: 'linker' input unused [-Wunused-command-line-argument]
code-experiments/src/suite_biobj_utilities.c:546:3: warning: code will never be executed [-Wunreachable-code]
coco_error("suite_biobj_get_best_hyp_value(): unexpected exception");
^~~~~~~~~~
code-experiments/src/logger_biobj.c:218:10: warning: code will never be executed [-Wunreachable-code]
(void) userdata; /* To silence the compiler */
^~~~~~~~
code-experiments/src/logger_biobj.c:237:10: warning: code will never be executed [-Wunreachable-code]
(void) userdata; /* To silence the compiler */
^~~~~~~~
code-experiments/src/coco_archive.c:90:10: warning: code will never be executed [-Wunreachable-code]
(void) userdata; /* To silence the compiler */
^~~~~~~~
4 warnings generated.
x86_64-apple-darwin13.4.0-clang -bundle -undefined dynamic_lookup -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/hansen/opt/anaconda3/lib -L/Users/hansen/opt/anaconda3/lib -flto -Wl,-export_dynamic -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/hansen/opt/anaconda3/lib -L/Users/hansen/opt/anaconda3/lib -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -arch x86_64 build/temp.macosx-10.9-x86_64-3.7/cython/interface.o build/temp.macosx-10.9-x86_64-3.7/cython/coco.o -o build/lib.macosx-10.9-x86_64-3.7/cocoex/interface.cpython-37m-darwin.so
ld: warning: -pie being ignored. It is only used when linking a main executable
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libSystem.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x0A 0x74 0x62 ) which is not the architecture being linked (x86_64): /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libSystem.tbd
creating build/bdist.macosx-10.9-x86_64/egg
creating build/bdist.macosx-10.9-x86_64/egg/cocoex
copying build/lib.macosx-10.9-x86_64-3.7/cocoex/__init__.py -> build/bdist.macosx-10.9-x86_64/egg/cocoex
copying build/lib.macosx-10.9-x86_64-3.7/cocoex/solvers.py -> build/bdist.macosx-10.9-x86_64/egg/cocoex
copying build/lib.macosx-10.9-x86_64-3.7/cocoex/exceptions.py -> build/bdist.macosx-10.9-x86_64/egg/cocoex
copying build/lib.macosx-10.9-x86_64-3.7/cocoex/utilities.py -> build/bdist.macosx-10.9-x86_64/egg/cocoex
copying build/lib.macosx-10.9-x86_64-3.7/cocoex/interface.cpython-37m-darwin.so -> build/bdist.macosx-10.9-x86_64/egg/cocoex
byte-compiling build/bdist.macosx-10.9-x86_64/egg/cocoex/__init__.py to __init__.cpython-37.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/cocoex/solvers.py to solvers.cpython-37.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/cocoex/exceptions.py to exceptions.cpython-37.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/cocoex/utilities.py to utilities.cpython-37.pyc
creating stub loader for cocoex/interface.cpython-37m-darwin.so
byte-compiling build/bdist.macosx-10.9-x86_64/egg/cocoex/interface.py to interface.cpython-37.pyc
creating build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying cocoex.egg-info/PKG-INFO -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying cocoex.egg-info/SOURCES.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying cocoex.egg-info/dependency_links.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying cocoex.egg-info/top_level.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
writing build/bdist.macosx-10.9-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
cocoex.__pycache__.interface.cpython-37: module references __file__
creating 'dist/cocoex-2.3.3.103-py3.7-macosx-10.9-x86_64.egg' and adding 'build/bdist.macosx-10.9-x86_64/egg' to it
removing 'build/bdist.macosx-10.9-x86_64/egg' (and everything under it)
Processing cocoex-2.3.3.103-py3.7-macosx-10.9-x86_64.egg
creating /Users/hansen/opt/anaconda3/lib/python3.7/site-packages/cocoex-2.3.3.103-py3.7-macosx-10.9-x86_64.egg
Extracting cocoex-2.3.3.103-py3.7-macosx-10.9-x86_64.egg to /Users/hansen/opt/anaconda3/lib/python3.7/site-packages
Removing cocoex 2.4.1.1.2 from easy-install.pth file
Adding cocoex 2.3.3.103 to easy-install.pth file
Installed /Users/hansen/opt/anaconda3/lib/python3.7/site-packages/cocoex-2.3.3.103-py3.7-macosx-10.9-x86_64.egg
Processing dependencies for cocoex==2.3.3.103
Finished processing dependencies for cocoex==2.3.3.103
PYTHON example_experiment.py bbob in code-experiments/build/python
COCO INFO: Results will be output to folder exdata/random_search_on_bbob_budget0002xD-003
Benchmarking solver '<function random_search' with budget=2*dimension on b'bbob' suite, Tue Oct 19 14:38:35 2021
Oct19 14h38:35, d=2, running: f001...............(15) f002...............(15) f003...............(15) f004...............(15) f005...............(15) f006...............(15) f007...............(15) f008...............(15) f009...............(15) f010...............(15) f011...............(15) f012...............(15) f013...............(15) f014...............(15) f015...............(15) f016...............(15) f017...............(15) f018...............(15) f019...............(15) f020...............(15) f021...............(15) f022...............(15) f023...............(15) f024...............(15)
2-D done in 1.1e-04 seconds/evaluation
[...]
The text was updated successfully, but these errors were encountered:
nikohansen
changed the title
npy_1_7_deprecated_api.h:17:2: warning with do.py run-python npy_1_7_deprecated_api.h:17:2: warning with do.py run-pythonOct 19, 2021
I am printing the output of
./do.py run-python
in line 146 ofcoco_utils.py
on a Mac and wonder whether this warningis relevant? Does it come from outdated COCO code or an outdated installation on the Mac?
This is the full output:
The text was updated successfully, but these errors were encountered: