Closed flbyrne closed 1 week ago
What exactly are your issues? It seems your code is not importing spacy properly, which I had as well. Possibly try:
spacy==3.3.0
from requirements.txt
conda install spacy
before you run ./setup.sh
I had a lot of problems when running the installation script, so maybe some parts failed there for you?
This PR https://github.com/princeton-nlp/WebShop/pull/34 fixes things for me.
closing for now but feel free to reopen
I'm submitting a ...
What is the current behavior?
I'm having the following error when running run_dev.sh (after doing all the previous steps): anybody was able to fix this:?
(webshop) esf0@DESKTOP-5CVVTN8:~/webshop$ ./run_dev.sh Traceback (most recent call last): File "/home/esf0/anaconda3/envs/webshop/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/home/esf0/anaconda3/envs/webshop/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/esf0/webshop/web_agent_site/app.py", line 23, in from web_agent_site.engine.goal import get_reward, get_goals File "/home/esf0/webshop/web_agent_site/engine/goal.py", line 6, in import spacy File "/home/esf0/anaconda3/envs/webshop/lib/python3.8/site-packages/spacy/init.py", line 14, in from . import pipeline # noqa: F401 File "/home/esf0/anaconda3/envs/webshop/lib/python3.8/site-packages/spacy/pipeline/init.py", line 1, in from .attributeruler import AttributeRuler File "/home/esf0/anaconda3/envs/webshop/lib/python3.8/site-packages/spacy/pipeline/attributeruler.py", line 6, in from .pipe import Pipe File "spacy/pipeline/pipe.pyx", line 8, in init spacy.pipeline.pipe from .callbacks import create_copy_from_base_model # noqa: F401 File "/home/esf0/anaconda3/envs/webshop/lib/python3.8/site-packages/spacy/training/callbacks.py", line 3, in from ..language import Language File "/home/esf0/anaconda3/envs/webshop/lib/python3.8/site-packages/spacy/language.py", line 25, in from .training.initialize import init_vocab, init_tok2vec File "/home/esf0/anaconda3/envs/webshop/lib/python3.8/site-packages/spacy/training/initialize.py", line 14, in from .pretrain import get_tok2vec_ref File "/home/esf0/anaconda3/envs/webshop/lib/python3.8/site-packages/spacy/training/pretrain.py", line 16, in from ..schemas import ConfigSchemaPretrain File "/home/esf0/anaconda3/envs/webshop/lib/python3.8/site-packages/spacy/schemas.py", line 216, in class TokenPattern(BaseModel): File "pydantic/main.py", line 299, in pydantic.main.ModelMetaclass.new File "pydantic/fields.py", line 411, in pydantic.fields.ModelField.infer File "pydantic/fields.py", line 342, in pydantic.fields.ModelField.init File "pydantic/fields.py", line 451, in pydantic.fields.ModelField.prepare File "pydantic/fields.py", line 545, in pydantic.fields.ModelField._type_analysis File "pydantic/fields.py", line 550, in pydantic.fields.ModelField._type_analysis File "/home/esf0/anaconda3/envs/webshop/lib/python3.8/typing.py", line 774, in subclasscheck return issubclass(cls, self.origin) TypeError: issubclass() arg 1 must be a class (webshop) esf0@DESKTOP-5CVVTN8:~/webshop$
File "/home/esf0/anaconda3/envs/webshop/lib/python3.8/site-packages/spacy/training/init.py", line 11, in
Steps to Reproduce
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
Please describe the desired behavior of the WebShop app or agent
Motivation for Change
What is the motivation / use case for changing the behavior?
Please tell us about your environment: