I am in the “intra-package reference” session module using Python 3.12.0. I am going the import one module (contact.py) in my customer package to another module (sales.py) in my shopping package. So, I put in the absolute import statement: from ecommerce.customer import contact. Then type contact for the object and the method .contact_customer(). My issue is contact.contact_customer() give me a red underline along with it telling me AttributeError: module ‘ecommerce.customer.contact’ has no attribute ‘contact_customer’ What am I doing wrong that there is no attribute and red underline???
1 Like
I am also facing a error similar to this. For me its saying No module named ‘ecommerce’. Any suggestions on any item that i am missing here ?