Raise TypeError(f"Plain {arg} is not valid as type argument")

Hi I am writing only this code and getting this error.

import spacy
from spacy.language import Language
display(“Hello world”)

raise TypeError(f"Plain {arg} is not valid as type argument")

Please post the full traceback.

Might be this. If you are using a python version older than 3.7.2, try upgrading.

Unrelated to the error you’re seeing right now, display is not a python built-in. You want print.

mine is 3.8.0