-
-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Description
Fugashi cannot be built hence cannot be installed on macOS.
$ pip install fugashi
Collecting fugashi
Using cached https://files.pythonhosted.org/packages/2e/88/156c51c78ee4ccfd54000e720f0c9814d073993b4e1f5d400d01416ddb6d/fugashi-0.1.10.tar.gz
Requirement already satisfied: Cython in /Users/hiromu/miniconda3/envs/fonduer-dev/lib/python3.7/site-packages (from fugashi) (0.29.16)
Building wheels for collected packages: fugashi
Building wheel for fugashi (setup.py) ... error
ERROR: Complete output from command /Users/hiromu/miniconda3/envs/fonduer-dev/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/6j/mctnhv6n2zx4zf8c657hbr2w0000gn/T/pip-install-adei_m45/fugashi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/6j/mctnhv6n2zx4zf8c657hbr2w0000gn/T/pip-wheel-7supwlz0 --python-tag cp37:
ERROR: running bdist_wheel
running build
running build_ext
cythoning fugashi/fugashi.pyx to fugashi/fugashi.c
/Users/hiromu/miniconda3/envs/fonduer-dev/lib/python3.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /private/var/folders/6j/mctnhv6n2zx4zf8c657hbr2w0000gn/T/pip-install-adei_m45/fugashi/fugashi/fugashi.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'fugashi' extension
creating build/temp.macosx-10.7-x86_64-3.7
creating build/temp.macosx-10.7-x86_64-3.7/fugashi
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/hiromu/miniconda3/envs/fonduer-dev/include -arch x86_64 -I/Users/hiromu/miniconda3/envs/fonduer-dev/include -arch x86_64 -I/usr/local/Cellar/mecab/0.996/include -I/Users/hiromu/miniconda3/envs/fonduer-dev/include/python3.7m -c fugashi/fugashi.c -o build/temp.macosx-10.7-x86_64-3.7/fugashi/fugashi.o
In file included from fugashi/fugashi.c:598:
/usr/local/Cellar/mecab/0.996/include/mecab.h:380:47: warning: this function declaration is not a prototype [-Wstrict-prototypes]
MECAB_DLL_EXTERN const char* mecab_version();
^
void
/usr/local/Cellar/mecab/0.996/include/mecab.h:520:54: warning: this function declaration is not a prototype [-Wstrict-prototypes]
MECAB_DLL_EXTERN mecab_lattice_t *mecab_lattice_new();
^
void
fugashi/fugashi.c:4828:13: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
__pyx_t_5 = mecab_nbest_sparse_tostr(__pyx_v_self->c_tagger, __pyx_t_3, __pyx_t_4);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fugashi/fugashi.c:9121:26: warning: code will never be executed [-Wunreachable-code]
module = PyImport_ImportModuleLevelObject(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
creating build/lib.macosx-10.7-x86_64-3.7
gcc -bundle -undefined dynamic_lookup -L/Users/hiromu/miniconda3/envs/fonduer-dev/lib -arch x86_64 -L/Users/hiromu/miniconda3/envs/fonduer-dev/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.7/fugashi/fugashi.o -L/usr/local/Cellar/mecab/0.996/lib -lmecab -lstdc++ -o build/lib.macosx-10.7-x86_64-3.7/fugashi.cpython-37m-darwin.so
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for fugashi
Running setup.py clean for fugashi
Failed to build fugashi
Installing collected packages: fugashi
Running setup.py install for fugashi ... error
ERROR: Complete output from command /Users/hiromu/miniconda3/envs/fonduer-dev/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/6j/mctnhv6n2zx4zf8c657hbr2w0000gn/T/pip-install-adei_m45/fugashi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/6j/mctnhv6n2zx4zf8c657hbr2w0000gn/T/pip-record-y_d6t5au/install-record.txt --single-version-externally-managed --compile:
ERROR: running install
running build
running build_ext
skipping 'fugashi/fugashi.c' Cython extension (up-to-date)
building 'fugashi' extension
creating build/temp.macosx-10.7-x86_64-3.7
creating build/temp.macosx-10.7-x86_64-3.7/fugashi
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/hiromu/miniconda3/envs/fonduer-dev/include -arch x86_64 -I/Users/hiromu/miniconda3/envs/fonduer-dev/include -arch x86_64 -I/usr/local/Cellar/mecab/0.996/include -I/Users/hiromu/miniconda3/envs/fonduer-dev/include/python3.7m -c fugashi/fugashi.c -o build/temp.macosx-10.7-x86_64-3.7/fugashi/fugashi.o
In file included from fugashi/fugashi.c:598:
/usr/local/Cellar/mecab/0.996/include/mecab.h:380:47: warning: this function declaration is not a prototype [-Wstrict-prototypes]
MECAB_DLL_EXTERN const char* mecab_version();
^
void
/usr/local/Cellar/mecab/0.996/include/mecab.h:520:54: warning: this function declaration is not a prototype [-Wstrict-prototypes]
MECAB_DLL_EXTERN mecab_lattice_t *mecab_lattice_new();
^
void
fugashi/fugashi.c:4828:13: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
__pyx_t_5 = mecab_nbest_sparse_tostr(__pyx_v_self->c_tagger, __pyx_t_3, __pyx_t_4);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fugashi/fugashi.c:9121:26: warning: code will never be executed [-Wunreachable-code]
module = PyImport_ImportModuleLevelObject(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
creating build/lib.macosx-10.7-x86_64-3.7
gcc -bundle -undefined dynamic_lookup -L/Users/hiromu/miniconda3/envs/fonduer-dev/lib -arch x86_64 -L/Users/hiromu/miniconda3/envs/fonduer-dev/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.7/fugashi/fugashi.o -L/usr/local/Cellar/mecab/0.996/lib -lmecab -lstdc++ -o build/lib.macosx-10.7-x86_64-3.7/fugashi.cpython-37m-darwin.so
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command "/Users/hiromu/miniconda3/envs/fonduer-dev/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/6j/mctnhv6n2zx4zf8c657hbr2w0000gn/T/pip-install-adei_m45/fugashi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/6j/mctnhv6n2zx4zf8c657hbr2w0000gn/T/pip-record-y_d6t5au/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/6j/mctnhv6n2zx4zf8c657hbr2w0000gn/T/pip-install-adei_m45/fugashi/
I installed Mecab using Homebrew
$ brew info mecab
mecab: stable 0.996 (bottled)
Yet another part-of-speech and morphological analyzer
https://taku910.github.io/mecab/
Conflicts with:
mecab-ko (because both install mecab binaries)
/usr/local/Cellar/mecab/0.996 (20 files, 4.2MB) *
Poured from bottle on 2019-03-25 at 14:19:36
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/mecab.rb
==> Analytics
install: 7,671 (30 days), 24,244 (90 days), 50,937 (365 days)
install-on-request: 653 (30 days), 2,051 (90 days), 10,150 (365 days)
build-error: 0 (30 days)
Metadata
Metadata
Assignees
Labels
No labels