Then I installed the model I wanted,
(flask3) ➜ readable001 git:(master) python -m spacy download en
...You can now load the model via spacy.load('en')
and now it works on THIS machine, too...
[image: Snip20180922_106.png]
Seems the models for spaCy are not installed in the GAE2 Standard
Environment.
We want to use GAE.
Please HELP.
On Saturday, September 22, 2018 at 2:24:43 PM UTC-4, BLONDEV INC wrote:
>
> Having an issue, however, on another machine using a different environment.
> This is a message I got while installing spaCy:
>
> (flask3) ➜ readable001 git:(master) python -m spacy validate
>
> Installed models (spaCy v2.0.12)
> /Users/rose/WORK/VENVS/flask3/lib/python3.7/site-packages/spacy
>
>
> No models found in your current environment.
>
>
> And then, the error message when I try to run from THIS machine:
>
> OSError: [E050] Can't find model 'en'. It doesn't seem to be a shortcut
> link, a Python package or a valid path to a data directory.
>
>
>
> On Saturday, September 22, 2018 at 2:21:19 PM UTC-4, BLONDEV INC wrote:
>>
>> Yes. It works just fine...
>>
>>
>>
>> [image: PHOTO-2018-09-22-14-17-42.jpg]
>>
>>
>> On Saturday, September 22, 2018 at 1:09:53 PM UTC-4, Rahul Ravindran
>> wrote:
>>>
>>> We don't use Conda. THis seems like an issue with your application. Can
>>> you run this locally successfully?
>>>
>>> On Sat, Sep 22, 2018 at 9:50 AM BLONDEV INC <[email protected]> wrote:
>>>
>>>>
>>>> Hi,
>>>>
>>>> I am getting this error message when I make a GET request to my app's
>>>> URL.
>>>>
>>>> File "/srv/main.py", line 12, in break_sentences nlp = spacy.load('en')
>>>> File "/env/lib/python3.7/site-packages/spacy/__init__.py", line 15, in
>>>> load
>>>> return util.load_model(name, **overrides) File
>>>> "/env/lib/python3.7/site-packages/spacy/util.py", line 119, in load_model
>>>> raise IOError(Errors.E050.format(name=name)) OSError: [E050] Can't find
>>>> model 'en'. It doesn't seem to be a shortcut link, a Python package or a
>>>> valid path to a data directory."
>>>>
>>>>
>>>>
>>>> I am using the new version of GAE Standard Environment with python37
>>>> runtime.
>>>>
>>>> Someone with a similar issue in a different context was able to solve
>>>> by updating their version of spaCy. It seems that if you install with
>>>> conda, this issue arises.
>>>>
>>>> Could it be possible that the Google folks used conda to install spaCy
>>>> to the new Standard Environment and that is why this is happening here?
>>>>
>>>> In any case... Can someone please HELP ME fix this and get my app
>>>> running properly?
>>>>
>>>> Thanks!
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Google App Engine" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To post to this group, send email to [email protected].
>>>> Visit this group at https://groups.google.com/group/google-appengine.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/google-appengine/9eaffe10-b3ca-446e-ab73-e81394dff2c7%40googlegroups.com
>>>>
>>>> <https://groups.google.com/d/msgid/google-appengine/9eaffe10-b3ca-446e-ab73-e81394dff2c7%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/5b22b3e3-6d48-4aaf-ab13-7aaddc58c19c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.