Attribute


An error occurred when Python called the pydot.py file

AttributeError: module ‘OS’ has no attribute ‘errno’

why
No longer available in Python 3.7os. errno
Change the method
Change python3.7/ site-packages /pydot.py to import errno. Line 1863:

if e.errno == errno.ENOENT:
Note: If NameError: Name ‘errno’ is not defined, add import errno to pydot.py


Read More: