spaCy icon indicating copy to clipboard operation
spaCy copied to clipboard

model load error:Could not find: alms

Open andyhegedus opened this issue 1 year ago • 3 comments

How to reproduce the behaviour

Your Environment

Info about spaCy

  • spaCy version: 3.7.5
  • Platform: macOS-10.16-x86_64-i386-64bit
  • Python version: 3.9.13
  • Pipelines: en_core_web_sm (3.7.1), en_core_web_md (3.7.1)

Spacy used to work fine, though I haven't used it recently.

Notebook code

import spacy

import en_core_web_sm nlp = spacy.load("en_core_web_sm") doc = nlp("Apple is looking at buying U.K. startup for $1 billion")

returns error: 3 import en_core_web_sm ----> 4 nlp = spacy.load("en_core_web_sm") 5 doc = nlp("Apple is looking at buying U.K. startup for $1 billion")

AttributeError: Could not find: llms

How do I resolve?

Andy

andyhegedus avatar Oct 14 '24 21:10 andyhegedus

I'm not sure how the requirements have worked out exactly, but the resolution for now is to run pip install spacy-llm. If you install a fresh copy of spaCy it should all happen automatically.

honnibal avatar Oct 15 '24 09:10 honnibal

Hi, I ran pip install spacy-llm and I noticed that each package had "requirement already satisfied". In Jupterlab, i restarted kernel to no avail. It yields the same error when it tries to load the language model. ----> 4 nlp = spacy.load("en_core_web_sm")

Next steps? Andy

andyhegedus avatar Oct 15 '24 14:10 andyhegedus

Hi, I think some of the trouble is numpy version. The switch to version 2.0 on has broken several things. Some of the libraries that are loaded are incompatible with version 1.24.6 and others are incompatible with version 2.0.2. You language installer forces the dumpy 2.0.2 install and that breaks things.

What version of Spacy and language models works with lumpy 1.24.6? I did a clean reinstall of the Anaconda package and I need to use numpy version 1 for pandas library. Andy

andyhegedus avatar Oct 15 '24 16:10 andyhegedus