Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid #33

Closed
msainz opened this issue Jun 5, 2018 · 1 comment

Comments

@msainz
Copy link

msainz commented Jun 5, 2018

(base) root@84b27fa8af50:/usr/app# git clone https://github.com/bakwc/JamSpell.git
Cloning into 'JamSpell'...
remote: Counting objects: 1010, done.
remote: Compressing objects: 100% (52/52), done.
remote: Total 1010 (delta 42), reused 79 (delta 38), pack-reused 913
Receiving objects: 100% (1010/1010), 676.87 KiB | 1.19 MiB/s, done.
Resolving deltas: 100% (621/621), done.
(base) root@84b27fa8af50:/usr/app# cd JamSpell
(base) root@84b27fa8af50:/usr/app/JamSpell# mkdir build
(base) root@84b27fa8af50:/usr/app/JamSpell# cd build
(base) root@84b27fa8af50:/usr/app/JamSpell/build# cmake ..
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find GTest (missing:  GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/app/JamSpell/build
(base) root@84b27fa8af50:/usr/app/JamSpell/build# make
Scanning dependencies of target cityhash
[  4%] Building CXX object contrib/cityhash/CMakeFiles/cityhash.dir/city.cc.o
[  8%] Linking CXX static library libcityhash.a
[  8%] Built target cityhash
Scanning dependencies of target phf
[ 12%] Building CXX object contrib/phf/CMakeFiles/phf.dir/phf.cc.o
[ 16%] Linking CXX static library libphf.a
[ 16%] Built target phf
Scanning dependencies of target jamspell_lib
[ 20%] Building CXX object jamspell/CMakeFiles/jamspell_lib.dir/spell_corrector.cpp.o
[ 25%] Building CXX object jamspell/CMakeFiles/jamspell_lib.dir/lang_model.cpp.o
[ 29%] Building CXX object jamspell/CMakeFiles/jamspell_lib.dir/utils.cpp.o
[ 33%] Building CXX object jamspell/CMakeFiles/jamspell_lib.dir/perfect_hash.cpp.o
[ 37%] Building CXX object jamspell/CMakeFiles/jamspell_lib.dir/bloom_filter.cpp.o
[ 41%] Linking CXX static library libjamspell_lib.a
[ 41%] Built target jamspell_lib
Scanning dependencies of target jamspell
[ 45%] Building CXX object main/CMakeFiles/jamspell.dir/main.cpp.o
[ 50%] Linking CXX executable jamspell
[ 50%] Built target jamspell
Scanning dependencies of target handypack
[ 54%] Building CXX object contrib/handypack/CMakeFiles/handypack.dir/handypack.cpp.o
[ 58%] Linking CXX static library libhandypack.a
[ 58%] Built target handypack
Scanning dependencies of target bloom
[ 62%] Building CXX object contrib/bloom/CMakeFiles/bloom.dir/bloom_filter.cpp.o
[ 66%] Linking CXX static library libbloom.a
[ 66%] Built target bloom
Scanning dependencies of target tsl
[ 70%] Building CXX object contrib/tsl/CMakeFiles/tsl.dir/robin_map.cpp.o
[ 75%] Linking CXX static library libtsl.a
[ 75%] Built target tsl
Scanning dependencies of target httplib
[ 79%] Building CXX object contrib/httplib/CMakeFiles/httplib.dir/httplib.cpp.o
[ 83%] Linking CXX static library libhttplib.a
[ 83%] Built target httplib
Scanning dependencies of target nlohmann_json
[ 87%] Building CXX object contrib/nlohmann/CMakeFiles/nlohmann_json.dir/json.cpp.o
[ 91%] Linking CXX static library libnlohmann_json.a
[ 91%] Built target nlohmann_json
Scanning dependencies of target web_server
[ 95%] Building CXX object web_server/CMakeFiles/web_server.dir/main.cpp.o
[100%] Linking CXX executable web_server
[100%] Built target web_server
(base) root@84b27fa8af50:/usr/app/JamSpell/build# ls
CMakeCache.txt	CMakeFiles  Makefile  cmake_install.cmake  contrib  jamspell  main  web_server
(base) root@84b27fa8af50:/usr/app/JamSpell/build# ls jamspell/
CMakeFiles  Makefile  cmake_install.cmake  libjamspell_lib.a
(base) root@84b27fa8af50:/usr/app/JamSpell/build# cd ..
(base) root@84b27fa8af50:/usr/app/JamSpell# ls
CMakeLists.txt	LICENSE  MANIFEST.in  README.md  build	clear.sh  contrib  evaluate  jamspell  jamspell.i  main  setup.cfg  setup.py  test_data  test_jamspell.py  tests  web_server
(base) root@84b27fa8af50:/usr/app/JamSpell# python setup.py install
running install
running build_ext
building '_jamspell' extension
swigging jamspell.i to jamspell_wrap.cpp
/usr/bin/swig3.0 -python -c++ -o jamspell_wrap.cpp jamspell.i
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/jamspell
creating build/temp.linux-x86_64-3.6/contrib
creating build/temp.linux-x86_64-3.6/contrib/cityhash
creating build/temp.linux-x86_64-3.6/contrib/phf
gcc -pthread -B /opt/conda/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I. -Ijamspell -I/opt/conda/include/python3.6m -c jamspell/lang_model.cpp -o build/temp.linux-x86_64-3.6/jamspell/lang_model.o -std=c++11 -O2
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /opt/conda/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I. -Ijamspell -I/opt/conda/include/python3.6m -c jamspell/spell_corrector.cpp -o build/temp.linux-x86_64-3.6/jamspell/spell_corrector.o -std=c++11 -O2
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /opt/conda/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I. -Ijamspell -I/opt/conda/include/python3.6m -c jamspell/utils.cpp -o build/temp.linux-x86_64-3.6/jamspell/utils.o -std=c++11 -O2
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /opt/conda/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I. -Ijamspell -I/opt/conda/include/python3.6m -c jamspell/perfect_hash.cpp -o build/temp.linux-x86_64-3.6/jamspell/perfect_hash.o -std=c++11 -O2
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /opt/conda/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I. -Ijamspell -I/opt/conda/include/python3.6m -c jamspell/bloom_filter.cpp -o build/temp.linux-x86_64-3.6/jamspell/bloom_filter.o -std=c++11 -O2
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /opt/conda/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I. -Ijamspell -I/opt/conda/include/python3.6m -c contrib/cityhash/city.cc -o build/temp.linux-x86_64-3.6/contrib/cityhash/city.o -std=c++11 -O2
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /opt/conda/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I. -Ijamspell -I/opt/conda/include/python3.6m -c contrib/phf/phf.cc -o build/temp.linux-x86_64-3.6/contrib/phf/phf.o -std=c++11 -O2
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /opt/conda/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I. -Ijamspell -I/opt/conda/include/python3.6m -c jamspell_wrap.cpp -o build/temp.linux-x86_64-3.6/jamspell_wrap.o -std=c++11 -O2
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
creating build/lib.linux-x86_64-3.6
g++ -pthread -shared -B /opt/conda/compiler_compat -L/opt/conda/lib -Wl,-rpath=/opt/conda/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/jamspell/lang_model.o build/temp.linux-x86_64-3.6/jamspell/spell_corrector.o build/temp.linux-x86_64-3.6/jamspell/utils.o build/temp.linux-x86_64-3.6/jamspell/perfect_hash.o build/temp.linux-x86_64-3.6/jamspell/bloom_filter.o build/temp.linux-x86_64-3.6/contrib/cityhash/city.o build/temp.linux-x86_64-3.6/contrib/phf/phf.o build/temp.linux-x86_64-3.6/jamspell_wrap.o -o build/lib.linux-x86_64-3.6/_jamspell.cpython-36m-x86_64-linux-gnu.so
running bdist_egg
running egg_info
creating jamspell.egg-info
writing jamspell.egg-info/PKG-INFO
writing dependency_links to jamspell.egg-info/dependency_links.txt
writing top-level names to jamspell.egg-info/top_level.txt
writing manifest file 'jamspell.egg-info/SOURCES.txt'
reading manifest file 'jamspell.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'jamspell.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
copying jamspell.py -> build/lib.linux-x86_64-3.6
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-3.6/_jamspell.cpython-36m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-3.6/jamspell.py -> build/bdist.linux-x86_64/egg
byte-compiling build/bdist.linux-x86_64/egg/jamspell.py to jamspell.cpython-36.pyc
creating stub loader for _jamspell.cpython-36m-x86_64-linux-gnu.so
byte-compiling build/bdist.linux-x86_64/egg/_jamspell.py to _jamspell.cpython-36.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying jamspell.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying jamspell.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying jamspell.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying jamspell.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying jamspell.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
creating dist
creating 'dist/jamspell-0.0.11-py3.6-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Creating /opt/conda/lib/python3.6/site-packages/site.py
Processing jamspell-0.0.11-py3.6-linux-x86_64.egg
creating /opt/conda/lib/python3.6/site-packages/jamspell-0.0.11-py3.6-linux-x86_64.egg
Extracting jamspell-0.0.11-py3.6-linux-x86_64.egg to /opt/conda/lib/python3.6/site-packages
Adding jamspell 0.0.11 to easy-install.pth file

Installed /opt/conda/lib/python3.6/site-packages/jamspell-0.0.11-py3.6-linux-x86_64.egg
Processing dependencies for jamspell==0.0.11
Finished processing dependencies for jamspell==0.0.11
(base) root@84b27fa8af50:/usr/app/JamSpell# ipython
iPython 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 18:10:19)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import jamspell
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
Aborted
@bakwc
Copy link
Owner

bakwc commented Jun 8, 2018

Dupicates #17

@bakwc bakwc closed this as completed Jun 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants