Skip to content

Can't find model 'en_core_web_sm'. #53

@azuryl

Description

@azuryl

./run_web_agent_text_env.sh
/home/azuryl/anaconda3/envs/webshop/lib/python3.8/site-packages/requests/init.py:43: DeprecationWarning: 'urllib3[secure]' extra is deprecated and will be removed in a future release of urllib3 2.x. Read more in this issue: urllib3/urllib3#2680
import urllib3
/home/azuryl/anaconda3/envs/webshop/lib/python3.8/site-packages/jnius_config.py:87: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import resource_filename
/home/azuryl/anaconda3/envs/webshop/lib/python3.8/site-packages/pkg_resources/init.py:3154: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('mpl_toolkits').
Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
/home/azuryl/anaconda3/envs/webshop/lib/python3.8/site-packages/faiss/loader.py:28: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(numpy.version) >= "1.19":
/home/azuryl/anaconda3/envs/webshop/lib/python3.8/site-packages/setuptools/_distutils/version.py:337: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
other = LooseVersion(other)
/home/azuryl/anaconda3/envs/webshop/lib/python3.8/site-packages/thefuzz/fuzz.py:11: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning
warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning')
Traceback (most recent call last):
File "/home/azuryl/anaconda3/envs/webshop/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/azuryl/anaconda3/envs/webshop/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/data3/azuryl/WebShop/run_envs/run_web_agent_text_env.py", line 10, in
from web_agent_site.envs import WebAgentTextEnv
File "/data3/azuryl/WebShop/web_agent_site/envs/init.py", line 4, in
from web_agent_site.envs.web_agent_text_env import WebAgentTextEnv
File "/data3/azuryl/WebShop/web_agent_site/envs/web_agent_text_env.py", line 24, in
from web_agent_site.engine.goal import get_reward, get_goals
File "/data3/azuryl/WebShop/web_agent_site/engine/goal.py", line 12, in
nlp = spacy.load("en_core_web_sm")
File "/home/azuryl/anaconda3/envs/webshop/lib/python3.8/site-packages/spacy/init.py", line 51, in load
return util.load_model(
File "/home/azuryl/anaconda3/envs/webshop/lib/python3.8/site-packages/spacy/util.py", line 472, in load_model
raise IOError(Errors.E050.format(name=name))
OSError: [E050] Can't find model 'en_core_web_sm'. It doesn't seem to be a Python package or a valid path to a data directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions