Ubuntu 18.04 - ImportError: cannot import name 'sub_forms_by_domain'

As LiborKudela indicated, the first place to look is whether you’ve got any user-installed python modules, installed manually by pip for instance. If you have that then your versions will not be consistent and you will get this kind of error. Python gives priority to user installed modules.

2 Likes