Yusuf
Yusuf

Reputation: 3453

partially initialized module 'app' has no attribute 'excute_job_search' (most likely due to a circular import)

I am trying to populate parameters to use it on the backed with the user input, like email and name etc.., when I have imported the app.py to gui.py and export gui.py to app.py I have had this error about the circular import

AttributeError: partially initialized module 'app' has no attribute 'excute_job_search' (most likely due to a circular import)

the code is the following

from tkinter import *
import app

def get_input():
    email = e1.get()
    password = e2.get()
    number_of_jobs = e3.get()
    job_title = e4.get()
    location = e5.get()
    print(email, password, number_of_jobs, job_title, location)

b = Button(window, text="Confirm", width=10, command=get_input)
b1 = Button(window, text="Excute", width=12, command=app.excute_job_search)

Upvotes: 0

Views: 339

Answers (0)

Related Questions