'Getting attribute error on attribute being imported
Sorry for all the questions and thank you for the help.
I have the following code that I'm working for school. I'm trying to import the Cerberus package into my code with "import cerberus" and that works with no problems. However, when I run the code I get the following message "AttributeError: 'module' object has no attribute 'Validator'" Looking over the documentation on Cerberus, it appears I'm doing calling the right things with "import cerberus" and "validator = cerberus.Validator()" or "validator = cerberus.Validate()"
Can someone explain to me what I'm doing wrong? I've been bashing my head for weeks on this problem. Thanks for the assistance, it's greatly appreciated.
import cerberus
validator = cerberus.Validator()
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
