question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'spacy.syntax.nn_parser.array' has no attribute '__reduce_cython__'

See original GitHub issue

It is similar to the following issues: #5136 #4571 #2883

How to reproduce the behavior

Flask app deployed on AWS Elastic Beanstalk having spacy==2.2.3 and few other libraries including Cython==0.29.17

Your Environment

  • Operating System: Linux
  • Python Version Used: 3.6
  • spaCy Version Used: 2.2.3
  • Environment Information: virtualenv

But then I downgraded to spacy==2.1.3. It worked perfectly for me, no issues.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
adrianeboydcommented, Jun 16, 2020

This can be due to files that weren’t cleaned up properly by pip or conda when you upgraded spacy. Our best advice is to try uninstalling spacy completely before reinstalling a newer version, and if it still isn’t working, try installing spacy in a brand new virtual environment.

0reactions
github-actions[bot]commented, Nov 1, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'spacy.syntax.nn_parser.array' has no attribute ... - GitHub
I have tried to import spacy after installation of latest version and below is the error i am facing. Although i have checked...
Read more >
AttributeError: type object 'spacy.syntax.nn_parser.array' has ...
I'm not sure why and how. But with a little bit of trial and error, I downgraded spacy to 2.1.3 (Spacy==2.1.3) and it...
Read more >
Linguistic Features · spaCy Usage Documentation
spaCy is a free open-source library for Natural Language Processing in Python. It features NER, POS tagging, dependency parsing, word vectors and more....
Read more >
spaCy NLP Tutorial - Analytics Vidhya
spaCy is a library for natural language processing. ... As you can see in the figure above, the NLP pipeline has multiple components, ......
Read more >
Natural Language Processing With spaCy in Python
Sentence Detection with no customization >>> ellipsis_doc = nlp(ellipsis_text) ... spaCy provides various attributes for the Token class:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found