安装依赖时sentencepiece报错导致无法安装Senta,sentencepiecebug已修复,但senta没有更新依赖
- Dominant language
- Python
- Stars
- 2k
- Forks
- 361
- PR merge metrics
- No merged PRs in 30d
Description
Python 3.8.10
系统MacOS
Senta 2.0.0
安装Senta时报错:
```bash
Downloading http://mirrors.aliyun.com/pypi/packages/1b/87/c3c2fa8cbec61fffe031ca9f0da512747520bec9be7f886f748457daac31/sentencepiece-0.1.83.tar.gz (497 kB)
|████████████████████████████████| 497 kB 972 kB/s
ERROR: Command errored out with exit status 1:
command: /Users/xq/.conda/envs/pycharm_env/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/lm/34w426114hx95sq_59v1vfn00000gn/T/pip-install-p7t2pty9/sentencepiece_9d01e557b12843c6968415c54cbc6637/setup.py'"'"'; __file__='"'"'/private/var/folders/lm/34w426114hx95sq_59v1vfn00000gn/T/pip-install-p7t2pty9/sentencepiece_9d01e557b12843c6968415c54cbc6637/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/lm/34w426114hx95sq_59v1vfn00000gn/T/pip-pip-egg-info-ht12s8be
cwd: /private/var/folders/lm/34w426114hx95sq_59v1vfn00000gn/T/pip-install-p7t2pty9/sentencepiece_9d01e557b12843c6968415c54cbc6637/
Complete output (7 lines):
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/lm/34w426114hx95sq_59v1vfn00000gn/T/pip-install-p7t2pty9/sentencepiece_9d01e557b12843c6968415c54cbc6637/setup.py", line 29, in
with codecs.open(os.path.join('..', 'VERSION'), 'r', 'utf-8') as f:
File "/Users/xq/.conda/envs/pycharm_env/lib/python3.8/codecs.py", line 905, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '../VERSION'
WARNING: Discarding http://mirrors.aliyun.com/pypi/packages/1b/87/c3c2fa8cbec61fffe031ca9f0da512747520bec9be7f886f748457daac31/sentencepiece-0.1.83.tar.gz#sha256=d194cf7431dd87798963ff998380f1c02ff0f9e380cc922a07926b69e21c4e2b (from http://mirrors.aliyun.com/pypi/simple/sentencepiece/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
```
对此,在sentencepiece的项目中对应的issue是:FileNotFoundError: [Errno 2] No such file or directory: '..\\VERSION' #386
对应的网址是:https://github.com/google/sentencepiece/issues/386
在v0.1.86及以上版本已修复,但是Senta没有更新这个依赖,而且在安装时会强制安装sentencepiece==0.1.83,导致出现报错
Contributor guide
No contributing guide indexed for this repository
Research direction
Inspect Senta's dependency declaration to find where sentencepiece==0.1.83 is pinned. Compare it with the reported fix in sentencepiece 0.1.86 or later, then verify that Senta installs successfully on the reported Python and macOS setup without the VERSION error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100