Graphviz import

Can’t import Digraph from graphviz

When I do “from graphviz import Digraph” it says “Digraph is unknown import symbol”.

It works fine on Colab, so it must be Replit specific.

Hi @usernaim , welcome to the forum!
What if you make Diagraph lowercase like diagraph?

Thanks for the reply - I tried but still the same error…

Hi, running your code will probably still work fine but the code intelligence is giving a (wrong) warning.
On the line of the import, add the comment # type: ignore
Example:

from pygame import Surface  # type: ignore

Unfortunately, I do not know of any easy configuration for disabling all of this type of warning.

3 Likes

It works, thank you!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.