sentencepiece: pip install failed on linux cluster
System Info: Linux version 4.14.0-115.7.1.el7a.ppc64le (mockbuild@ppc-056.build.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC))
I tried both installing from PyPI and installing from source file, but neither of them worked.
When installing from PyPI:
$ pip install sentencepiece
Collecting sentencepiece
Using cached https://files.pythonhosted.org/packages/1b/87/c3c2fa8cbec61fffe031ca9f0da512747520bec9be7f886f748457daac31/sentencepiece-0.1.83.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-t33o0yz4/sentencepiece/setup.py", line 29, in <module>
with codecs.open(os.path.join('..', 'VERSION'), 'r', 'utf-8') as f:
File "/opt/anaconda3/lib/python3.6/codecs.py", line 897, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '../VERSION'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-t33o0yz4/sentencepiece/
I then manually downloaded the tar.gz source file, uncompressed it, changed the directory to “./python”, and tried to install directly from the setup.py:
$ python setup.py install
Package sentencepiece was not found in the pkg-config search path.
Perhaps you should add the directory containing `sentencepiece.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sentencepiece' found
Failed to find sentencepiece pkgconfig
However pip install .
gives a different error message:
$ pip install .
Processing <...>/sentencepiece-0.1.83/python
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-209jgy5x/setup.py", line 29, in <module>
with codecs.open(os.path.join('..', 'VERSION'), 'r', 'utf-8') as f:
File "/opt/anaconda3/lib/python3.6/codecs.py", line 897, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '../VERSION'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-209jgy5x/
Does anyone know what might be wrong and how to fix it? Thank you!
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 6
- Comments: 24
Same error here. Raspberry Pi 4B (4 gig), Python 3.7, Raspbian Buster
Also tried earlier versions ( pip install sentencepiece==0.1.83 ) to same effect.
Need this to run other stuff in my project… help appreciated very much.
Un Ubuntu, first run :
sudo apt-get install cmake build-essential pkg-config libgoogle-perftools-dev
and then:sudo pip install sentencepiece
Just ran into this as well.
pip install sentencepiece==0.1.82
works thoughWe’re all waiting on the SentencePiece Dev Crew apparently. Sure could use a code fix so I can get GPT-2 running on my Raspberries…
I hope everybody’s safe & healthy.
From: Piotr Konsek notifications@github.com Sent: Thursday, April 2, 2020 3:44 PM To: google/sentencepiece sentencepiece@noreply.github.com Cc: Dave Xanatos xanatos@xanatos.com; Comment comment@noreply.github.com Subject: Re: [google/sentencepiece] pip install failed on linux cluster (#403)
Same error here: Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux cmake version 3.13.4
tried both pip and installing from the source. Nothing works I’ve been trying to install v0.1.83
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/google/sentencepiece/issues/403#issuecomment-608065978 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLWB6EBG4EST5DOWLNT7KDRKTTHBANCNFSM4IXJ2TDQ . https://github.com/notifications/beacon/AGLWB6H4Q7CFJTLSUBMC4T3RKTTHBA5CNFSM4IXJ2TD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEQ7FTOQ.gif
Worked for me after upgrading to pip 20.0.2
Same error here: Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux cmake version 3.13.4
tried both pip and installing from the source. Nothing works I’ve been trying to install v0.1.83
Using this process worked for me on Red Hat Linux Server 7.7.