Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: [E896] - Colab specific #328

Closed
johnsonpeng5 opened this issue Mar 4, 2021 · 7 comments
Closed

RuntimeError: [E896] - Colab specific #328

johnsonpeng5 opened this issue Mar 4, 2021 · 7 comments

Comments

@johnsonpeng5
Copy link

johnsonpeng5 commented Mar 4, 2021

Hi; I'm trying to run your example code in a Google Colab; but it doesn't appear to work. I'm not sure if it's a version issue. Could you please advise on whether this is an environment issue or if I'm missing the right imports?

image

@dakinggg
Copy link
Collaborator

dakinggg commented Mar 4, 2021

you probably have the wrong version of spacy. you'll need to make sure that you have spacy version >= 3

@johnsonpeng5
Copy link
Author

image
Thanks for the note. I've tried it again with the latest versions of Spacy and Scispacy, in a new notebook and fresh environment, and it's unfortunately still showing the same error.

@dakinggg
Copy link
Collaborator

dakinggg commented Mar 4, 2021

We've had a bunch of people report the same error, and have it go away after using a clean environment (see #318). Could you quadruple check you are reinstalling everything in a totally clean environment? I haven't been able to reproduce this error otherwise, so I don't have another suggestion at the moment.

@johnsonpeng5
Copy link
Author

Hi Daniel, per your advice, I've tried to:

  1. Factory Reset my notebook and run it again
  2. Set up a new Google account, log into a new Colab Notebook and run the same code
  3. Run it on a jupyter notebook

Unfortunately, I'm still running into the similar issue. If it helps; this is the Colab link I was trying to reproduce the error on
https://colab.research.google.com/drive/1QdK7nKD37vnZDNMHi329NDxRfUeNWO6Z?usp=sharing

Johnson

@dakinggg
Copy link
Collaborator

dakinggg commented Mar 4, 2021

Thanks for your diligence. I'll have a look at the colab and see if I can figure it out.

@dakinggg
Copy link
Collaborator

dakinggg commented Mar 5, 2021

It appears that your colab environment is not actually a clean environment. I don't use colab much so I'm not too sure why that happens, but if you restart the runtime and just run !pip list, there are a lot more packages installed than would exist in a clean python environment. I happened to notice that the version of blis in the colab is old, and if you install the latest blis before spacy/scispacy, the error goes away. I'm not sure if there are other package version issues lurking, and would recommend figuring out how to actually create a clean base environment. Hope that helps!

@johnsonpeng5
Copy link
Author

Thanks so much for your help. This was incredibly helpful.

I get your point now. I think Google Colab preinstalls packages that runs well with each other and doesn't do updates unless the new update is stable with all it's other packages. It's unfortunate as a large community of folks must be on colab pulling their hairs out. Thanks again for your help; I'll see how the rest of the notebook goes.

@dakinggg dakinggg changed the title RuntimeError: [E896] RuntimeError: [E896] - Colab specific Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants