Hi,
Greetings!!
I’m trying to deploy trained NER model on sagemaker with huggingface DLC then I’m getting this error.
Could you please help on this issue?
DLC: image_uri = “763104351884.dkr.ecr.us-east-2.amazonaws.com/huggingface-pytorch-inference:1.9.1-transformers4.12.3-gpu-py38-cu111-ubuntu20.04”
wordninja package is part of requirements.txt file:
wordninja==2.0.0
Cloud watch log details:
Collecting wordninja==2.0.0
Downloading wordninja-2.0.0.tar.gz (541 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status ‘error’
ERROR: Command errored out with exit status 1:
command: /opt/conda/bin/python -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/home/model-server/tmp/pip-install-hn_fwkxb/wordninja_8ffb1cc5dfed4f5d81ff142e00e3b06c/setup.py’"’"’; file=’"’"’/home/model-server/tmp/pip-install-hn_fwkxb/wordninja_8ffb1cc5dfed4f5d81ff142e00e3b06c/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 /home/model-server/tmp/pip-pip-egg-info-4xgnsg33
cwd: /home/model-server/tmp/pip-install-hn_fwkxb/wordninja_8ffb1cc5dfed4f5d81ff142e00e3b06c/
Complete output (5 lines):
Traceback (most recent call last):
File “”, line 1, in
File “/home/model-server/tmp/pip-install-hn_fwkxb/wordninja_8ffb1cc5dfed4f5d81ff142e00e3b06c/setup.py”, line 6, in
scheme[‘data’] = scheme[‘purelib’]
KeyError: ‘purelib’
WARNING: Discarding https://files.pythonhosted.org/packages/30/15/abe4af50f4be92b60c25e43c1c64d08453b51e46c32981d80b3aebec0260/wordninja-2.0.0.tar.gz#sha256=1a1cc7ec146ad19d6f71941ee82aef3d31221700f0d8bf844136cf8df79d281a (from Links for wordninja). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement wordninja==2.0.0 (from versions: 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 2.0.0)
ERROR: No matching distribution found for wordninja==2.0.0
failed to install required packages, exiting
Note: If I use Pytorch DLC then able to install wordninja==2.0.0 package but not with Huggingface DLC.
Even I tried with wordninja==0.1.5 but no luck.
Thanks in advance.