WorksApplications / SudachiPy

Python version of Sudachi, a Japanese tokenizer.
Apache License 2.0
392 stars 50 forks source link

Cannot install SudachiDict-core 20200722 #174

Open wubowen416 opened 2 years ago

wubowen416 commented 2 years ago

Hi, thank you for providing this repo.

I tried to install SudachiDict-core 20200722 from https://pypi.org/project/SudachiDict-core/20200722/, but the pip tells me that

(gd) wu@irgpu01:~/repo/gesture-diffusion$ python -m pip install SudachiDict-core==20200722
Collecting SudachiDict-core==20200722
  Using cached SudachiDict-core-20200722.tar.gz (8.8 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [21 lines of output]
      Downloading the Sudachi dictionary (It may take a while) ...
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-vt2se1yi/sudachidict-core_8a9a33469456470f914729aca871a592/setup.py", line 44, in <module>
          _, _msg = urlretrieve(ZIP_URL, ZIP_NAME)
        File "/home/wu/anaconda3/envs/gd/lib/python3.8/urllib/request.py", line 247, in urlretrieve
          with contextlib.closing(urlopen(url, data)) as fp:
        File "/home/wu/anaconda3/envs/gd/lib/python3.8/urllib/request.py", line 222, in urlopen
          return opener.open(url, data, timeout)
        File "/home/wu/anaconda3/envs/gd/lib/python3.8/urllib/request.py", line 531, in open
          response = meth(req, response)
        File "/home/wu/anaconda3/envs/gd/lib/python3.8/urllib/request.py", line 640, in http_response
          response = self.parent.error(
        File "/home/wu/anaconda3/envs/gd/lib/python3.8/urllib/request.py", line 569, in error
          return self._call_chain(*args)
        File "/home/wu/anaconda3/envs/gd/lib/python3.8/urllib/request.py", line 502, in _call_chain
          result = func(*args)
        File "/home/wu/anaconda3/envs/gd/lib/python3.8/urllib/request.py", line 649, in http_error_default
          raise HTTPError(req.full_url, code, msg, hdrs, fp)
      urllib.error.HTTPError: HTTP Error 401: Unauthorized
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Could you help me to find out? Thanks in advance.