Import ErrorAll platformsPython 3.8 · 3.9 · 3.10 · 3.11

ImportError: cannot import name 'ie' from 'validate_docbr'

pip install validate-docbr
>>> from validate_docbr import ie
ImportError: cannot import name 'ie' from 'validate_docbr'
# Also fails:
>>> from validate_docbr.ie import ie
ImportError: cannot import name 'ie' from 'validate_docbr.ie'

The validate-docbr class for Inscrição Estadual is IE (uppercase), not ie. Python imports are case-sensitive — ie does not exist in the module.

Linux · Python 3.11
lowercase ie · failsIE · ok
macOS · Python 3.11
lowercase ie · failsIE · ok
Windows · Python 3.11
lowercase ie · failsIE · ok

1Import IE in uppercaseEasiest

The class abbreviates Inscrição Estadual as IE — all caps. Use the exact casing.

from validate_docbr import IE

ie = IE()
print(ie.validate("111.111.111.111"))  # False
print(ie.generate())                   # valid IE string

validate-docbr · Compatibility Matrix
See install results across all Python versions and operating systems
Observed in 140 searches · Last verified Aug 2026
ImportError: cannot import name 'ie' from 'validate_docbr' — validate-docbr