Giter VIP home page Giter VIP logo

mozcpy's Issues

'pip install mozcpy' failed

I got this error when installing mozcpy:

python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-vgfh7wgc/mozcpy_41adbd3297a04ce9bfde91c1db9c58d9/setup.py", line 41, in <module>
          open('CHANGES.rst', encoding='utf8').read()
        File "/home/ngocnp/anaconda3/envs/test/lib/python3.8/codecs.py", line 905, in open
          file = builtins.open(filename, mode, buffering)
      FileNotFoundError: [Errno 2] No such file or directory: 'CHANGES.rst'

Please add CHANGES.rst to package archive

RuntimeError: No such file or directory

I got this error when using Converter.convert

Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\Python3.10\lib\site-packages\MeCab\__init__.py", line 133, in __init__
    super(Tagger, self).__init__(args)
RuntimeError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\Python3.10\lib\site-packages\IPython\core\interactiveshell.py", line 3460, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-6-bb952a5b9b71>", line 1, in <module>
    converter.convert('まほうしょうじょ')
  File "C:\ProgramData\Anaconda3\envs\Python3.10\lib\site-packages\mozcpy\mozcpy.py", line 22, in convert
    return self._convert(sentence, n_best, MECAB_ARGS)
  File "C:\ProgramData\Anaconda3\envs\Python3.10\lib\site-packages\mozcpy\mozcpy.py", line 13, in _convert
    tagger = MeCab.Tagger(mecab_args)
  File "C:\ProgramData\Anaconda3\envs\Python3.10\lib\site-packages\MeCab\__init__.py", line 135, in __init__
    raise RuntimeError(error_info(rawargs)) from ee
RuntimeError: 
----------------------------------------------------------
Failed initializing MeCab. Please see the README for possible solutions:
    https://github.com/SamuraiT/mecab-python3#common-issues
If you are still having trouble, please file an issue here, and include the
ERROR DETAILS below:
    https://github.com/SamuraiT/mecab-python3/issues
issueを英語で書く必要はありません。
------------------- ERROR DETAILS ------------------------
arguments: -d C:\ProgramData\Anaconda3\envs\Python3.10\lib\site-packages\mozcpy\dic
[ifs] no such file or directory: C:ProgramDataAnaconda3envsPython3.10libsite-packagesmozcpydic\dicrc
----------------------------------------------------------

I think it's caused by the Windows path not escaping properly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.