oss-gate / workshop

OSSの開発に未参加または参加したことはあるけどまだ自信がない人を後押しするワークショップ用のリポジトリー
124 stars 547 forks source link

OSS Gate Workshop: Fukuoka: 2019-09-10: shirotaro-jp: GiNZA: Work log #1272

Closed shirotaro-jp closed 5 years ago

shirotaro-jp commented 5 years ago

This is a work log of a "OSS Gate workshop". "OSS Gate workshop" is an activity to increase OSS developers. Here's been discussed in Japanese. Thanks.

作業ログ作成時の説明

以下のテンプレートを埋めてタイトルに設定します。埋め方例はスクロールすると見えてきます。

OSS Gate Workshop: ${LOCATION}: ${YEAR}-${MONTH}-${DAY}: ${ACCOUNT_NAME}: ${OSS_NAME}: Work log

タイトル例↓:

OSS Gate Workshop: Tokyo: 2017-01-16: kou: Rabbit: Work log

OSS Gateワークショップ関連情報

shirotaro-jp commented 5 years ago

https://github.com/megagonlabs/ginza README.mdを読み始める

GiNZA logo画像のリンクが切れている

nagachika commented 5 years ago

よろしくお願いします!!

shirotaro-jp commented 5 years ago

Universal Dependencies ってなに?

https://universaldependencies.org/

wikipedia : Universal Dependencies 世界の言語のツリーバンクを作成するための国際的な協力プロジェクトです。

shirotaro-jp commented 5 years ago

spaCy ってなに?

https://spacy.io/

wikipedia : spaCy spaCy ([speɪˈsiː] spay-SEE) は高度な自然言語処理を行うためプログラミング言語PythonとCythonで書かれたオープンソースソフトウェア・ライブラリである[2][3]。このライブラリはMITライセンスの下で公開されており、現在、英語、ドイツ語、スペイン語、ポルトガル語、フランス語、イタリア語、オランダ語に対する種々の解析処理と多言語固有表現抽出のための統計的ニューラルネットワークモデル、また、その他様々な言語に対する字句解析モデルを提供している[4]。

shirotaro-jp commented 5 years ago

Sudachi https://github.com/WorksApplications/Sudachi 日本語形態素解析

shirotaro-jp commented 5 years ago

README.mdのRuntime Environment以下を行う

環境

$ python -V
Python 3.6.6 :: Anaconda, Inc.
shirotaro-jp commented 5 years ago
$ pip install "https://github.com/megagonlabs/ginza/releases/download/latest/ginza-latest.tar.gz"
Collecting https://github.com/megagonlabs/ginza/releases/download/latest/ginza-latest.tar.gz
  Downloading https://github.com/megagonlabs/ginza/releases/download/latest/ginza-latest.tar.gz
Collecting spacy>=2.1.0 (from ginza==2.0.0)
  Downloading https://files.pythonhosted.org/packages/5c/38/fc37ad63427e9781e4bf5f350f9a1b9e472b3e48bc856ada9ace7fcf1b7d/spacy-2.1.8-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (34.7MB)
    100% |████████████████████████████████| 34.7MB 486kB/s 
Collecting SudachiPy>=0.3.2 (from ginza==2.0.0)
  Downloading https://files.pythonhosted.org/packages/b6/09/7c55ab89d7bcdd8075929add8b096c4b5347d661d78e7d4884214f672513/SudachiPy-0.4.0-py3-none-any.whl (73kB)
    100% |████████████████████████████████| 81kB 8.5MB/s 
Collecting SudachiDict_core@ https://github.com/megagonlabs/ginza/releases/download/v2.0.0/SudachiDict_core-20190531.tar.gz from https://github.com/megagonlabs/ginza/releases/download/v2.0.0/SudachiDict_core-20190531.tar.gz (from ginza==2.0.0)
  Downloading https://github.com/megagonlabs/ginza/releases/download/v2.0.0/SudachiDict_core-20190531.tar.gz (70.7MB)
    100% |████████████████████████████████| 70.7MB 315kB/s 
Collecting ja_ginza@ https://github.com/megagonlabs/ginza/releases/download/v2.0.0/ja_ginza-2.1.0.tar.gz from https://github.com/megagonlabs/ginza/releases/download/v2.0.0/ja_ginza-2.1.0.tar.gz (from ginza==2.0.0)
  Downloading https://github.com/megagonlabs/ginza/releases/download/v2.0.0/ja_ginza-2.1.0.tar.gz (58.2MB)
    100% |████████████████████████████████| 58.2MB 493kB/s 
Collecting cymem<2.1.0,>=2.0.2 (from spacy>=2.1.0->ginza==2.0.0)
  Downloading https://files.pythonhosted.org/packages/db/6e/c6d1650f09b8b2910f149ec7c51fd2298e0e93a657f4496d4636c0a43675/cymem-2.0.2-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (52kB)
    100% |████████████████████████████████| 61kB 8.9MB/s 
Collecting srsly<1.1.0,>=0.0.6 (from spacy>=2.1.0->ginza==2.0.0)
  Downloading https://files.pythonhosted.org/packages/bd/b1/d10e2447397b4b2d74a874f7600f1a36f7e35c832775e8a32a5787aced90/srsly-0.1.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (275kB)
    100% |████████████████████████████████| 276kB 2.9MB/s 
Requirement already satisfied: numpy>=1.15.0 in /anaconda3/lib/python3.6/site-packages (from spacy>=2.1.0->ginza==2.0.0) (1.15.4)
Collecting blis<0.3.0,>=0.2.2 (from spacy>=2.1.0->ginza==2.0.0)
  Downloading https://files.pythonhosted.org/packages/d1/92/84e017b19d988c55ef2e6fa50e51522f3a23a6461ef21f308d20b19dbe0c/blis-0.2.4-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (3.0MB)
    100% |████████████████████████████████| 3.0MB 3.3MB/s 
Collecting preshed<2.1.0,>=2.0.1 (from spacy>=2.1.0->ginza==2.0.0)
  Downloading https://files.pythonhosted.org/packages/cb/5a/4b6f2035443e463a326e3a81863f2b4850be76b4538fd4931b1aa63f79b6/preshed-2.0.1-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (148kB)
    100% |████████████████████████████████| 153kB 11.2MB/s 
Collecting wasabi<1.1.0,>=0.2.0 (from spacy>=2.1.0->ginza==2.0.0)
  Downloading https://files.pythonhosted.org/packages/f4/c1/d76ccdd12c716be79162d934fe7de4ac8a318b9302864716dde940641a79/wasabi-0.2.2-py3-none-any.whl
Collecting plac<1.0.0,>=0.9.6 (from spacy>=2.1.0->ginza==2.0.0)
  Downloading https://files.pythonhosted.org/packages/9e/9b/62c60d2f5bc135d2aa1d8c8a86aaf84edb719a59c7f11a4316259e61a298/plac-0.9.6-py2.py3-none-any.whl
Requirement already satisfied: requests<3.0.0,>=2.13.0 in /anaconda3/lib/python3.6/site-packages (from spacy>=2.1.0->ginza==2.0.0) (2.20.0)
Collecting murmurhash<1.1.0,>=0.28.0 (from spacy>=2.1.0->ginza==2.0.0)
  Downloading https://files.pythonhosted.org/packages/cd/0e/cdb17db34b3b94d1c1f3404d7ffc6c735c323b7cfbf065ae95f56f12a4a8/murmurhash-1.0.2-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Collecting thinc<7.1.0,>=7.0.8 (from spacy>=2.1.0->ginza==2.0.0)
  Downloading https://files.pythonhosted.org/packages/22/9b/7935df2b51106933af18c6fd78dbe89bd1e1abbe98643207a1c9cae3feb8/thinc-7.0.8-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (2.9MB)
    100% |████████████████████████████████| 2.9MB 2.6MB/s 
Collecting dartsclone~=0.6.0 (from SudachiPy>=0.3.2->ginza==2.0.0)
  Downloading https://files.pythonhosted.org/packages/7d/4d/45acbe9d0795d8ceef0fee1f9ac2dcbf27dca3a0578a023fcdc3fef6fd89/dartsclone-0.6.tar.gz
Collecting sortedcontainers~=2.1.0 (from SudachiPy>=0.3.2->ginza==2.0.0)
  Downloading https://files.pythonhosted.org/packages/13/f3/cf85f7c3a2dbd1a515d51e1f1676d971abe41bba6f4ab5443240d9a78e5b/sortedcontainers-2.1.0-py2.py3-none-any.whl
Requirement already satisfied: idna<2.8,>=2.5 in /anaconda3/lib/python3.6/site-packages (from requests<3.0.0,>=2.13.0->spacy>=2.1.0->ginza==2.0.0) (2.7)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /anaconda3/lib/python3.6/site-packages (from requests<3.0.0,>=2.13.0->spacy>=2.1.0->ginza==2.0.0) (3.0.4)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /anaconda3/lib/python3.6/site-packages (from requests<3.0.0,>=2.13.0->spacy>=2.1.0->ginza==2.0.0) (1.23)
Requirement already satisfied: certifi>=2017.4.17 in /anaconda3/lib/python3.6/site-packages (from requests<3.0.0,>=2.13.0->spacy>=2.1.0->ginza==2.0.0) (2019.6.16)
Requirement already satisfied: tqdm<5.0.0,>=4.10.0 in /anaconda3/lib/python3.6/site-packages (from thinc<7.1.0,>=7.0.8->spacy>=2.1.0->ginza==2.0.0) (4.28.1)
Requirement already satisfied: Cython in /anaconda3/lib/python3.6/site-packages (from dartsclone~=0.6.0->SudachiPy>=0.3.2->ginza==2.0.0) (0.29)
Building wheels for collected packages: ginza, SudachiDict-core, ja-ginza, dartsclone
  Running setup.py bdist_wheel for ginza ... done
  Stored in directory: /Users/hirotaro/Library/Caches/pip/wheels/6f/97/43/f9c8c315bcd598f595e96aae207b120a3b84564f03ddd8d6a7
  Running setup.py bdist_wheel for SudachiDict-core ... done
  Stored in directory: /Users/hirotaro/Library/Caches/pip/wheels/54/e7/08/e3b4af4f347f89cafc1ea2788f53b15747b6ef8e3aa176e786
  Running setup.py bdist_wheel for ja-ginza ... done
  Stored in directory: /Users/hirotaro/Library/Caches/pip/wheels/2d/1e/54/93c9cbc2b2c6ae66a3157afa88f812064ee648581737d36c45
  Running setup.py bdist_wheel for dartsclone ... error
  Complete output from command /anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-bdfmkw3d/dartsclone/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/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-wheel-zwtnb9vp --python-tag cp36:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.7-x86_64-3.6
  creating build/lib.macosx-10.7-x86_64-3.6/dartsclone
  copying dartsclone/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/dartsclone
  running build_ext
  cythoning dartsclone/_dartsclone.pyx to dartsclone/_dartsclone.cpp
  /anaconda3/lib/python3.6/site-packages/Cython/Compiler/Main.py:367: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /private/var/folders/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-bdfmkw3d/dartsclone/dartsclone/_dartsclone.pxd
    tree = Parsing.p_module(s, pxd, full_module_name)
  warning: dartsclone/_dartsclone.pyx:119:49: local variable 'result' referenced before assignment
  warning: dartsclone/_dartsclone.pyx:120:15: local variable 'result' referenced before assignment
  building 'dartsclone._dartsclone' extension
  creating build/temp.macosx-10.7-x86_64-3.6
  creating build/temp.macosx-10.7-x86_64-3.6/dartsclone
  creating build/temp.macosx-10.7-x86_64-3.6/csrc
  creating build/temp.macosx-10.7-x86_64-3.6/csrc/src
  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 -I./csrc/include -I/anaconda3/include/python3.6m -c dartsclone/_dartsclone.cpp -o build/temp.macosx-10.7-x86_64-3.6/dartsclone/_dartsclone.o
  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]
  dartsclone/_dartsclone.cpp:622:10: fatal error: 'ios' file not found
  #include "ios"
           ^~~~~
  1 warning and 1 error generated.
  error: command 'gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for dartsclone
  Running setup.py clean for dartsclone
Successfully built ginza SudachiDict-core ja-ginza
Failed to build dartsclone
Installing collected packages: cymem, srsly, blis, preshed, wasabi, plac, murmurhash, thinc, spacy, dartsclone, sortedcontainers, SudachiPy, SudachiDict-core, ja-ginza, ginza
  Running setup.py install for dartsclone ... error
    Complete output from command /anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-bdfmkw3d/dartsclone/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/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-record-06al8o0x/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.7-x86_64-3.6
    creating build/lib.macosx-10.7-x86_64-3.6/dartsclone
    copying dartsclone/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/dartsclone
    running build_ext
    cythoning dartsclone/_dartsclone.pyx to dartsclone/_dartsclone.cpp
    /anaconda3/lib/python3.6/site-packages/Cython/Compiler/Main.py:367: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /private/var/folders/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-bdfmkw3d/dartsclone/dartsclone/_dartsclone.pxd
      tree = Parsing.p_module(s, pxd, full_module_name)
    warning: dartsclone/_dartsclone.pyx:119:49: local variable 'result' referenced before assignment
    warning: dartsclone/_dartsclone.pyx:120:15: local variable 'result' referenced before assignment
    building 'dartsclone._dartsclone' extension
    creating build/temp.macosx-10.7-x86_64-3.6
    creating build/temp.macosx-10.7-x86_64-3.6/dartsclone
    creating build/temp.macosx-10.7-x86_64-3.6/csrc
    creating build/temp.macosx-10.7-x86_64-3.6/csrc/src
    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 -I./csrc/include -I/anaconda3/include/python3.6m -c dartsclone/_dartsclone.cpp -o build/temp.macosx-10.7-x86_64-3.6/dartsclone/_dartsclone.o
    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]
    dartsclone/_dartsclone.cpp:622:10: fatal error: 'ios' file not found
    #include "ios"
             ^~~~~
    1 warning and 1 error generated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-bdfmkw3d/dartsclone/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/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-record-06al8o0x/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-bdfmkw3d/dartsclone/

エラーが出ている

shirotaro-jp commented 5 years ago

anaconda python3.7.3 の環境を新たに準備してみる

shirotaro-jp commented 5 years ago
$ python -V
Python 3.7.3
nagachika commented 5 years ago

エラーメッセージの "fatal error: 'ios' file not found" で検索してみるとこういう Cython の issue がひっかかりました。 https://github.com/cython/cython/issues/2694

https://github.com/cython/cython/issues/2694#issuecomment-491888725 とその下のあたりのコメントが気になりますね。環境変数 CFLAGS を渡してあげるとなにか変わるかも。

shirotaro-jp commented 5 years ago
$ pip install "https://github.com/megagonlabs/ginza/releases/download/latest/ginza-latest.tar.gz"
Collecting https://github.com/megagonlabs/ginza/releases/download/latest/ginza-latest.tar.gz
  Downloading https://github.com/megagonlabs/ginza/releases/download/latest/ginza-latest.tar.gz
Collecting spacy>=2.1.0 (from ginza==2.0.0)
  Downloading https://files.pythonhosted.org/packages/9a/2a/057bca697905031a6179227278a49fe9e7841a6d444bc2e13f1266b9f7dc/spacy-2.1.8-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (34.4MB)
     |████████████████████████████████| 34.4MB 416kB/s 
Collecting SudachiPy>=0.3.2 (from ginza==2.0.0)
  Using cached https://files.pythonhosted.org/packages/b6/09/7c55ab89d7bcdd8075929add8b096c4b5347d661d78e7d4884214f672513/SudachiPy-0.4.0-py3-none-any.whl
Collecting SudachiDict_core@ https://github.com/megagonlabs/ginza/releases/download/v2.0.0/SudachiDict_core-20190531.tar.gz from https://github.com/megagonlabs/ginza/releases/download/v2.0.0/SudachiDict_core-20190531.tar.gz (from ginza==2.0.0)
  Downloading https://github.com/megagonlabs/ginza/releases/download/v2.0.0/SudachiDict_core-20190531.tar.gz (70.7MB)
     |████████████████████████████████| 70.7MB 4.2MB/s 
Collecting ja_ginza@ https://github.com/megagonlabs/ginza/releases/download/v2.0.0/ja_ginza-2.1.0.tar.gz from https://github.com/megagonlabs/ginza/releases/download/v2.0.0/ja_ginza-2.1.0.tar.gz (from ginza==2.0.0)
  Downloading https://github.com/megagonlabs/ginza/releases/download/v2.0.0/ja_ginza-2.1.0.tar.gz (58.2MB)
     |████████████████████████████████| 58.2MB 1.6MB/s 
Collecting wasabi<1.1.0,>=0.2.0 (from spacy>=2.1.0->ginza==2.0.0)
  Using cached https://files.pythonhosted.org/packages/f4/c1/d76ccdd12c716be79162d934fe7de4ac8a318b9302864716dde940641a79/wasabi-0.2.2-py3-none-any.whl
Collecting cymem<2.1.0,>=2.0.2 (from spacy>=2.1.0->ginza==2.0.0)
  Downloading https://files.pythonhosted.org/packages/d7/11/37da628920bf2999bd8c4ffc40908413622486d5dbc4e60d87a58c428367/cymem-2.0.2-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (52kB)
     |████████████████████████████████| 61kB 5.8MB/s 
Collecting preshed<2.1.0,>=2.0.1 (from spacy>=2.1.0->ginza==2.0.0)
  Downloading https://files.pythonhosted.org/packages/48/fe/2f2e8c91541785f2abe0d51f37eb00356513b9ff3d24fb27fd5b59e18264/preshed-2.0.1-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (145kB)
     |████████████████████████████████| 153kB 3.1MB/s 
Collecting murmurhash<1.1.0,>=0.28.0 (from spacy>=2.1.0->ginza==2.0.0)
  Downloading https://files.pythonhosted.org/packages/b9/bd/faace403086ee922afc74e5615cb8c21020fcf5d5667314e943c08f71fde/murmurhash-1.0.2-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Requirement already satisfied: requests<3.0.0,>=2.13.0 in /anaconda3/envs/ginza/lib/python3.7/site-packages (from spacy>=2.1.0->ginza==2.0.0) (2.22.0)
Collecting plac<1.0.0,>=0.9.6 (from spacy>=2.1.0->ginza==2.0.0)
  Using cached https://files.pythonhosted.org/packages/9e/9b/62c60d2f5bc135d2aa1d8c8a86aaf84edb719a59c7f11a4316259e61a298/plac-0.9.6-py2.py3-none-any.whl
Collecting srsly<1.1.0,>=0.0.6 (from spacy>=2.1.0->ginza==2.0.0)
  Downloading https://files.pythonhosted.org/packages/66/ab/a26c85fe8e4d416a482bdafa4ea36fb59add449f0d00ec45ab51036528e3/srsly-0.1.0-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (272kB)
     |████████████████████████████████| 276kB 2.9MB/s 
Collecting blis<0.3.0,>=0.2.2 (from spacy>=2.1.0->ginza==2.0.0)
  Downloading https://files.pythonhosted.org/packages/36/41/9e934e2b8a2cdae447ed1923a94f98c2d70c898b65af6635f5fe55f7ed4d/blis-0.2.4-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (3.0MB)
     |████████████████████████████████| 3.0MB 1.6MB/s 
Collecting thinc<7.1.0,>=7.0.8 (from spacy>=2.1.0->ginza==2.0.0)
  Downloading https://files.pythonhosted.org/packages/e1/36/a9b47b517266b8ece0c6aa5477deb9c71b809645e8f92871a2480c1a8407/thinc-7.0.8-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (2.9MB)
     |████████████████████████████████| 2.9MB 3.4MB/s 
Requirement already satisfied: numpy>=1.15.0 in /anaconda3/envs/ginza/lib/python3.7/site-packages (from spacy>=2.1.0->ginza==2.0.0) (1.16.4)
Collecting dartsclone~=0.6.0 (from SudachiPy>=0.3.2->ginza==2.0.0)
  Using cached https://files.pythonhosted.org/packages/7d/4d/45acbe9d0795d8ceef0fee1f9ac2dcbf27dca3a0578a023fcdc3fef6fd89/dartsclone-0.6.tar.gz
Requirement already satisfied: sortedcontainers~=2.1.0 in /anaconda3/envs/ginza/lib/python3.7/site-packages (from SudachiPy>=0.3.2->ginza==2.0.0) (2.1.0)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /anaconda3/envs/ginza/lib/python3.7/site-packages (from requests<3.0.0,>=2.13.0->spacy>=2.1.0->ginza==2.0.0) (3.0.4)
Requirement already satisfied: idna<2.9,>=2.5 in /anaconda3/envs/ginza/lib/python3.7/site-packages (from requests<3.0.0,>=2.13.0->spacy>=2.1.0->ginza==2.0.0) (2.8)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /anaconda3/envs/ginza/lib/python3.7/site-packages (from requests<3.0.0,>=2.13.0->spacy>=2.1.0->ginza==2.0.0) (1.24.2)
Requirement already satisfied: certifi>=2017.4.17 in /anaconda3/envs/ginza/lib/python3.7/site-packages (from requests<3.0.0,>=2.13.0->spacy>=2.1.0->ginza==2.0.0) (2019.6.16)
Requirement already satisfied: tqdm<5.0.0,>=4.10.0 in /anaconda3/envs/ginza/lib/python3.7/site-packages (from thinc<7.1.0,>=7.0.8->spacy>=2.1.0->ginza==2.0.0) (4.32.1)
Requirement already satisfied: Cython in /anaconda3/envs/ginza/lib/python3.7/site-packages (from dartsclone~=0.6.0->SudachiPy>=0.3.2->ginza==2.0.0) (0.29.12)
Building wheels for collected packages: ginza, SudachiDict-core, ja-ginza, dartsclone
  Building wheel for ginza (setup.py) ... done
  Stored in directory: /Users/hirotaro/Library/Caches/pip/wheels/6f/97/43/f9c8c315bcd598f595e96aae207b120a3b84564f03ddd8d6a7
  Building wheel for SudachiDict-core (setup.py) ... done
  Stored in directory: /Users/hirotaro/Library/Caches/pip/wheels/54/e7/08/e3b4af4f347f89cafc1ea2788f53b15747b6ef8e3aa176e786
  Building wheel for ja-ginza (setup.py) ... done
  Stored in directory: /Users/hirotaro/Library/Caches/pip/wheels/2d/1e/54/93c9cbc2b2c6ae66a3157afa88f812064ee648581737d36c45
  Building wheel for dartsclone (setup.py) ... error
  ERROR: Complete output from command /anaconda3/envs/ginza/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-6aonk8a_/dartsclone/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/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-wheel-4s7tot18 --python-tag cp37:
  ERROR: running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.7-x86_64-3.7
  creating build/lib.macosx-10.7-x86_64-3.7/dartsclone
  copying dartsclone/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/dartsclone
  running build_ext
  cythoning dartsclone/_dartsclone.pyx to dartsclone/_dartsclone.cpp
  /anaconda3/envs/ginza/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/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-6aonk8a_/dartsclone/dartsclone/_dartsclone.pxd
    tree = Parsing.p_module(s, pxd, full_module_name)
  warning: dartsclone/_dartsclone.pyx:119:49: local variable 'result' referenced before assignment
  warning: dartsclone/_dartsclone.pyx:120:15: local variable 'result' referenced before assignment
  building 'dartsclone._dartsclone' extension
  creating build/temp.macosx-10.7-x86_64-3.7
  creating build/temp.macosx-10.7-x86_64-3.7/dartsclone
  creating build/temp.macosx-10.7-x86_64-3.7/csrc
  creating build/temp.macosx-10.7-x86_64-3.7/csrc/src
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/envs/ginza/include -arch x86_64 -I/anaconda3/envs/ginza/include -arch x86_64 -I./csrc/include -I/anaconda3/envs/ginza/include/python3.7m -c dartsclone/_dartsclone.cpp -o build/temp.macosx-10.7-x86_64-3.7/dartsclone/_dartsclone.o
  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]
  dartsclone/_dartsclone.cpp:610:10: fatal error: 'ios' file not found
  #include "ios"
           ^~~~~
  1 warning and 1 error generated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for dartsclone
  Running setup.py clean for dartsclone
Successfully built ginza SudachiDict-core ja-ginza
Failed to build dartsclone
Installing collected packages: wasabi, cymem, preshed, murmurhash, plac, srsly, blis, thinc, spacy, dartsclone, SudachiPy, SudachiDict-core, ja-ginza, ginza
  Running setup.py install for dartsclone ... error
    ERROR: Complete output from command /anaconda3/envs/ginza/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-6aonk8a_/dartsclone/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/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-record-mudk6_bi/install-record.txt --single-version-externally-managed --compile:
    ERROR: running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.7-x86_64-3.7
    creating build/lib.macosx-10.7-x86_64-3.7/dartsclone
    copying dartsclone/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/dartsclone
    running build_ext
    cythoning dartsclone/_dartsclone.pyx to dartsclone/_dartsclone.cpp
    /anaconda3/envs/ginza/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/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-6aonk8a_/dartsclone/dartsclone/_dartsclone.pxd
      tree = Parsing.p_module(s, pxd, full_module_name)
    warning: dartsclone/_dartsclone.pyx:119:49: local variable 'result' referenced before assignment
    warning: dartsclone/_dartsclone.pyx:120:15: local variable 'result' referenced before assignment
    building 'dartsclone._dartsclone' extension
    creating build/temp.macosx-10.7-x86_64-3.7
    creating build/temp.macosx-10.7-x86_64-3.7/dartsclone
    creating build/temp.macosx-10.7-x86_64-3.7/csrc
    creating build/temp.macosx-10.7-x86_64-3.7/csrc/src
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/envs/ginza/include -arch x86_64 -I/anaconda3/envs/ginza/include -arch x86_64 -I./csrc/include -I/anaconda3/envs/ginza/include/python3.7m -c dartsclone/_dartsclone.cpp -o build/temp.macosx-10.7-x86_64-3.7/dartsclone/_dartsclone.o
    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]
    dartsclone/_dartsclone.cpp:610:10: fatal error: 'ios' file not found
    #include "ios"
             ^~~~~
    1 warning and 1 error generated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command "/anaconda3/envs/ginza/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-6aonk8a_/dartsclone/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/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-record-mudk6_bi/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-6aonk8a_/dartsclone/
shirotaro-jp commented 5 years ago

https://github.com/oss-gate/workshop/issues/1272#issuecomment-529894058 を参考に

$ CFLAGS='-stdlib=libc++' pip install  "https://github.com/megagonlabs/ginza/releases/download/latest/ginza-latest.tar.gz"

でインストール

shirotaro-jp commented 5 years ago

command lineで動かしてみる

$ ginza
mode is C
disabling sentence separator
こんにちは。今日はいい天気ですね。
# text = こんにちは。今日はいい天気ですね。
1   こんにちは   今日は INTJ    感動詞-一般  _   0   root    BunsetuBILabel=B|BunsetuPositionType=ROOT|SpaceAfter=No
2   。   。   PUNCT   補助記号-句点 _   1   punct   _   BunsetuBILabel=I|BunsetuPositionType=CONT|SpaceAfter=No
3   今日  今日  NOUN    名詞-普通名詞-副詞可能    _   6   iobj    BunsetuBILabel=B|BunsetuPositionType=SEM_HEAD|SpaceAfter=No|NP_B|NE=DATE_B
4   は   は   ADP 助詞-係助詞  _   3   case    _   BunsetuBILabel=I|BunsetuPositionType=SYN_HEAD|SpaceAfter=No
5   いい  良い  ADJ 形容詞-非自立可能   _   6   amod    BunsetuBILabel=B|BunsetuPositionType=CONT|SpaceAfter=No
6   天気  天気  NOUN    名詞-普通名詞-一般  _   0   root    BunsetuBILabel=I|BunsetuPositionType=ROOT|SpaceAfter=No|NP_B
7   です  です  AUX 助動詞 _   6   cop _   BunsetuBILabel=I|BunsetuPositionType=FUNC|SpaceAfter=No
8   ね   ね   PART    助詞-終助詞  _   6   aux _   BunsetuBILabel=I|BunsetuPositionType=SYN_HEAD|SpaceAfter=No
9   。   。   PUNCT   補助記号-句点 _   6   punct   _   BunsetuBILabel=I|BunsetuPositionType=CONT|SpaceAfter=No
shirotaro-jp commented 5 years ago

Coding example以下を行う

$ python ginza-test.py 
0 依存 依存 NOUN 名詞-普通名詞-サ変可能 compound 2
1 構造 構造 NOUN 名詞-普通名詞-一般 compound 2
2 解析 解析 NOUN 名詞-普通名詞-サ変可能 nmod 4
3 の の ADP 助詞-格助詞 case 2
4 実験 実験 NOUN 名詞-普通名詞-サ変可能 obj 6
5 を を ADP 助詞-格助詞 case 4
6 行っ 行う VERB 動詞-一般 ROOT 6
7 て て SCONJ 助詞-接続助詞 mark 6
8 い 居る AUX 動詞-非自立可能 aux 6
9 ます ます AUX 助動詞 aux 6
10 。 。 PUNCT 補助記号-句点 punct 6
EOS
nagachika commented 5 years ago

インストールまでいけてよかったです。 Xcode の更新による問題みたいなので、手元の Xcode のバージョンなどと共に報告するも良し、README に回避方法を追記する pull request をするも良いかと思います!!

shirotaro-jp commented 5 years ago

Xcode Version 10.2.1

oss-gate-issue-cleaner[bot] commented 5 years ago

おつかれさまでした!

後日引き続きワークショップがある場合

後日のワークショップで再開する際に、issueタイトルの日付を更新してreopenしてください!

ワークショップ終了後に続きがしたい場合

issueはクローズしますが、その後も作業を続けていただいて大丈夫です!

是非このissueを活用なさってください。

今後のイベントの案内

現在以下のイベントの開催を予定しています。

参加をお待ちしてます!

shirotaro-jp commented 5 years ago

フィードバックポイント

nagachika commented 5 years ago

ロゴのリンクは実際には HTTP Status = 302 のレスポンスがかえってきていてリダイレクトされているようですね。このためMarkdownに画像として埋め込まれずにアンカーとなってるみたいです。ブラウザで開くとロゴ画像のダウンロードが始まります。

shirotaro-jp commented 5 years ago
$ pip install "https://github.com/megagonlabs/ginza/releases/download/latest/ginza-latest.tar.gz"

pip install 時、以下のようなエラーが出ました。

Building wheels for collected packages: ginza, SudachiDict-core, ja-ginza, dartsclone
  Building wheel for ginza (setup.py) ... done
  Stored in directory: /Users/hirotaro/Library/Caches/pip/wheels/6f/97/43/f9c8c315bcd598f595e96aae207b120a3b84564f03ddd8d6a7
  Building wheel for SudachiDict-core (setup.py) ... done
  Stored in directory: /Users/hirotaro/Library/Caches/pip/wheels/54/e7/08/e3b4af4f347f89cafc1ea2788f53b15747b6ef8e3aa176e786
  Building wheel for ja-ginza (setup.py) ... done
  Stored in directory: /Users/hirotaro/Library/Caches/pip/wheels/2d/1e/54/93c9cbc2b2c6ae66a3157afa88f812064ee648581737d36c45
  Building wheel for dartsclone (setup.py) ... error
  ERROR: Complete output from command /anaconda3/envs/ginza/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-6aonk8a_/dartsclone/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/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-wheel-4s7tot18 --python-tag cp37:
  ERROR: running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.7-x86_64-3.7
  creating build/lib.macosx-10.7-x86_64-3.7/dartsclone
  copying dartsclone/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/dartsclone
  running build_ext
  cythoning dartsclone/_dartsclone.pyx to dartsclone/_dartsclone.cpp
  /anaconda3/envs/ginza/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/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-6aonk8a_/dartsclone/dartsclone/_dartsclone.pxd
    tree = Parsing.p_module(s, pxd, full_module_name)
  warning: dartsclone/_dartsclone.pyx:119:49: local variable 'result' referenced before assignment
  warning: dartsclone/_dartsclone.pyx:120:15: local variable 'result' referenced before assignment
  building 'dartsclone._dartsclone' extension
  creating build/temp.macosx-10.7-x86_64-3.7
  creating build/temp.macosx-10.7-x86_64-3.7/dartsclone
  creating build/temp.macosx-10.7-x86_64-3.7/csrc
  creating build/temp.macosx-10.7-x86_64-3.7/csrc/src
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/envs/ginza/include -arch x86_64 -I/anaconda3/envs/ginza/include -arch x86_64 -I./csrc/include -I/anaconda3/envs/ginza/include/python3.7m -c dartsclone/_dartsclone.cpp -o build/temp.macosx-10.7-x86_64-3.7/dartsclone/_dartsclone.o
  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]
  dartsclone/_dartsclone.cpp:610:10: fatal error: 'ios' file not found
  #include "ios"
           ^~~~~
  1 warning and 1 error generated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for dartsclone
  Running setup.py clean for dartsclone
Successfully built ginza SudachiDict-core ja-ginza
Failed to build dartsclone
Installing collected packages: wasabi, cymem, preshed, murmurhash, plac, srsly, blis, thinc, spacy, dartsclone, SudachiPy, SudachiDict-core, ja-ginza, ginza
  Running setup.py install for dartsclone ... error
    ERROR: Complete output from command /anaconda3/envs/ginza/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-6aonk8a_/dartsclone/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/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-record-mudk6_bi/install-record.txt --single-version-externally-managed --compile:
    ERROR: running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.7-x86_64-3.7
    creating build/lib.macosx-10.7-x86_64-3.7/dartsclone
    copying dartsclone/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/dartsclone
    running build_ext
    cythoning dartsclone/_dartsclone.pyx to dartsclone/_dartsclone.cpp
    /anaconda3/envs/ginza/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/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-6aonk8a_/dartsclone/dartsclone/_dartsclone.pxd
      tree = Parsing.p_module(s, pxd, full_module_name)
    warning: dartsclone/_dartsclone.pyx:119:49: local variable 'result' referenced before assignment
    warning: dartsclone/_dartsclone.pyx:120:15: local variable 'result' referenced before assignment
    building 'dartsclone._dartsclone' extension
    creating build/temp.macosx-10.7-x86_64-3.7
    creating build/temp.macosx-10.7-x86_64-3.7/dartsclone
    creating build/temp.macosx-10.7-x86_64-3.7/csrc
    creating build/temp.macosx-10.7-x86_64-3.7/csrc/src
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/envs/ginza/include -arch x86_64 -I/anaconda3/envs/ginza/include -arch x86_64 -I./csrc/include -I/anaconda3/envs/ginza/include/python3.7m -c dartsclone/_dartsclone.cpp -o build/temp.macosx-10.7-x86_64-3.7/dartsclone/_dartsclone.o
    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]
    dartsclone/_dartsclone.cpp:610:10: fatal error: 'ios' file not found
    #include "ios"
             ^~~~~
    1 warning and 1 error generated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command "/anaconda3/envs/ginza/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-6aonk8a_/dartsclone/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/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-record-mudk6_bi/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-6aonk8a_/dartsclone/

私のXcodeのバージョンが、Version 10.2.1であることが原因のようであり、 https://github.com/cython/cython/issues/2694#issuecomment-491888725 を参考に、以下の通り環境変数を与えることでインストールすることができました。

$ CFLAGS='-stdlib=libc++' pip install  "https://github.com/megagonlabs/ginza/releases/download/latest/ginza-latest.tar.gz"
shirotaro-jp commented 5 years ago

I tried to install GiNZA with this command.

$ pip install "https://github.com/megagonlabs/ginza/releases/download/latest/ginza-latest.tar.gz"

But I got the following error:

Building wheels for collected packages: ginza, SudachiDict-core, ja-ginza, dartsclone
  Building wheel for ginza (setup.py) ... done
  Stored in directory: /Users/hirotaro/Library/Caches/pip/wheels/6f/97/43/f9c8c315bcd598f595e96aae207b120a3b84564f03ddd8d6a7
  Building wheel for SudachiDict-core (setup.py) ... done
  Stored in directory: /Users/hirotaro/Library/Caches/pip/wheels/54/e7/08/e3b4af4f347f89cafc1ea2788f53b15747b6ef8e3aa176e786
  Building wheel for ja-ginza (setup.py) ... done
  Stored in directory: /Users/hirotaro/Library/Caches/pip/wheels/2d/1e/54/93c9cbc2b2c6ae66a3157afa88f812064ee648581737d36c45
  Building wheel for dartsclone (setup.py) ... error
  ERROR: Complete output from command /anaconda3/envs/ginza/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-6aonk8a_/dartsclone/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/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-wheel-4s7tot18 --python-tag cp37:
  ERROR: running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.7-x86_64-3.7
  creating build/lib.macosx-10.7-x86_64-3.7/dartsclone
  copying dartsclone/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/dartsclone
  running build_ext
  cythoning dartsclone/_dartsclone.pyx to dartsclone/_dartsclone.cpp
  /anaconda3/envs/ginza/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/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-6aonk8a_/dartsclone/dartsclone/_dartsclone.pxd
    tree = Parsing.p_module(s, pxd, full_module_name)
  warning: dartsclone/_dartsclone.pyx:119:49: local variable 'result' referenced before assignment
  warning: dartsclone/_dartsclone.pyx:120:15: local variable 'result' referenced before assignment
  building 'dartsclone._dartsclone' extension
  creating build/temp.macosx-10.7-x86_64-3.7
  creating build/temp.macosx-10.7-x86_64-3.7/dartsclone
  creating build/temp.macosx-10.7-x86_64-3.7/csrc
  creating build/temp.macosx-10.7-x86_64-3.7/csrc/src
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/envs/ginza/include -arch x86_64 -I/anaconda3/envs/ginza/include -arch x86_64 -I./csrc/include -I/anaconda3/envs/ginza/include/python3.7m -c dartsclone/_dartsclone.cpp -o build/temp.macosx-10.7-x86_64-3.7/dartsclone/_dartsclone.o
  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]
  dartsclone/_dartsclone.cpp:610:10: fatal error: 'ios' file not found
  #include "ios"
           ^~~~~
  1 warning and 1 error generated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for dartsclone
  Running setup.py clean for dartsclone
Successfully built ginza SudachiDict-core ja-ginza
Failed to build dartsclone
Installing collected packages: wasabi, cymem, preshed, murmurhash, plac, srsly, blis, thinc, spacy, dartsclone, SudachiPy, SudachiDict-core, ja-ginza, ginza
  Running setup.py install for dartsclone ... error
    ERROR: Complete output from command /anaconda3/envs/ginza/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-6aonk8a_/dartsclone/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/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-record-mudk6_bi/install-record.txt --single-version-externally-managed --compile:
    ERROR: running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.7-x86_64-3.7
    creating build/lib.macosx-10.7-x86_64-3.7/dartsclone
    copying dartsclone/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/dartsclone
    running build_ext
    cythoning dartsclone/_dartsclone.pyx to dartsclone/_dartsclone.cpp
    /anaconda3/envs/ginza/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/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-6aonk8a_/dartsclone/dartsclone/_dartsclone.pxd
      tree = Parsing.p_module(s, pxd, full_module_name)
    warning: dartsclone/_dartsclone.pyx:119:49: local variable 'result' referenced before assignment
    warning: dartsclone/_dartsclone.pyx:120:15: local variable 'result' referenced before assignment
    building 'dartsclone._dartsclone' extension
    creating build/temp.macosx-10.7-x86_64-3.7
    creating build/temp.macosx-10.7-x86_64-3.7/dartsclone
    creating build/temp.macosx-10.7-x86_64-3.7/csrc
    creating build/temp.macosx-10.7-x86_64-3.7/csrc/src
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/envs/ginza/include -arch x86_64 -I/anaconda3/envs/ginza/include -arch x86_64 -I./csrc/include -I/anaconda3/envs/ginza/include/python3.7m -c dartsclone/_dartsclone.cpp -o build/temp.macosx-10.7-x86_64-3.7/dartsclone/_dartsclone.o
    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]
    dartsclone/_dartsclone.cpp:610:10: fatal error: 'ios' file not found
    #include "ios"
             ^~~~~
    1 warning and 1 error generated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command "/anaconda3/envs/ginza/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-6aonk8a_/dartsclone/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/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-record-mudk6_bi/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/dk/tm7h9d1s5k71ws5m75zmcb7w0000gn/T/pip-install-6aonk8a_/dartsclone/

It seemed that my Xcode version was 10.2.1. So, I was able to install by giving environment variables with reference to https://github.com/cython/cython/issues/2694#issuecomment-491888725

$ CFLAGS='-stdlib=libc++' pip install  "https://github.com/megagonlabs/ginza/releases/download/latest/ginza-latest.tar.gz"
shirotaro-jp commented 5 years ago

OSの情報も追記? macOS Mojave 10.14.5

nagachika commented 5 years ago

Looks great to me!

情報は多くて悪いということはないので OS バージョンも含めていいと思います。

これを受けてなにをして欲しいのかという点も明確になっているといいかなと思います。

shirotaro-jp commented 5 years ago

I don't know the underlying solution for the cause of the error. However, there are many people who encounter the same error depending on the environment, so it would be better to describe how to avoid this error in the README.

shirotaro-jp commented 5 years ago

issueタイトル install error on macOS

shirotaro-jp commented 5 years ago

issue書きました〜 https://github.com/megagonlabs/ginza/issues/45

oss-gate-issue-cleaner[bot] commented 5 years ago

おつかれさまでした!

後日引き続きワークショップがある場合

後日のワークショップで再開する際に、issueタイトルの日付を更新してreopenしてください!

ワークショップ終了後に続きがしたい場合

issueはクローズしますが、その後も作業を続けていただいて大丈夫です!

是非このissueを活用なさってください。

今後のイベントの案内

現在以下のイベントの開催を予定しています。

参加をお待ちしてます!