'ios' file not found
Hello guys,
I have below issue when I run python setup.py install.
Warning: passing language='c++' to cythonize() is deprecated. Instead, put "# distutils: language=c++" in your .pyx or .pxd file(s) running install running bdist_egg running egg_info writing fastBPE.egg-info/PKG-INFO writing dependency_links to fastBPE.egg-info/dependency_links.txt writing requirements to fastBPE.egg-info/requires.txt writing top-level names to fastBPE.egg-info/top_level.txt package init file 'fastBPE/__init__.py' not found (or not a regular file) reading manifest file 'fastBPE.egg-info/SOURCES.txt' writing manifest file 'fastBPE.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-10.7-x86_64/egg running install_lib running build_py running build_ext building 'fastBPE' extension gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -IfastBPE -I/anaconda3/include/python3.7m -c fastBPE/fastBPE.cpp -o build/temp.macosx-10.7-x86_64-3.7/fastBPE/fastBPE.o -std=c++11 -Ofast -pthread warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found] fastBPE/fastBPE.cpp:629:10: fatal error: 'ios' file not found #include "ios" ^~~~~ 1 warning and 1 error generated.
Could anyone solve this problem?
sys:anaconda3 python 3.7.3
Thanks a lot.
I'm having the same issue warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found] In file included from fastBPE/fastBPE.cpp:28: In file included from /Users/jenchen/anaconda3/envs/py2/include/python2.7/Python.h:88: /Users/jenchen/anaconda3/envs/py2/include/python2.7/unicodeobject.h:534:5: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register PyObject *obj, /* Object */ ^~~~~~~~~ /Users/jenchen/anaconda3/envs/py2/include/python2.7/unicodeobject.h:553:5: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register PyObject *obj /* Object */ ^~~~~~~~~ /Users/jenchen/anaconda3/envs/py2/include/python2.7/unicodeobject.h:575:5: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register const wchar_t *w, /* wchar_t buffer */ ^~~~~~~~~ /Users/jenchen/anaconda3/envs/py2/include/python2.7/unicodeobject.h:593:5: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register wchar_t *w, /* wchar_t buffer */ ^~~~~~~~~ In file included from fastBPE/fastBPE.cpp:28: In file included from /Users/jenchen/anaconda3/envs/py2/include/python2.7/Python.h:97: /Users/jenchen/anaconda3/envs/py2/include/python2.7/stringobject.h:173:5: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register PyObject *obj, /* string or Unicode object */ ^~~~~~~~~ /Users/jenchen/anaconda3/envs/py2/include/python2.7/stringobject.h:174:5: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register char **s, /* pointer to buffer variable */ ^~~~~~~~~ /Users/jenchen/anaconda3/envs/py2/include/python2.7/stringobject.h:175:5: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] register Py_ssize_t *len /* pointer to length variable or NULL ^~~~~~~~~ fastBPE/fastBPE.cpp:634:10: fatal error: 'ios' file not found #include "ios" ^~~~~ 8 warnings and 1 error generated. error: command 'gcc' failed with exit status 1
I think the solution is to add "-stdlib=libc++" to your extra_compile_args of setup.py and export MACOSX_DEPLOYMENT_TARGET=10.10 or whatever version you're on.