Main.py
<code>from pygame import *
import pygame
from Talent_List import *
import requests
import json
import sys
import time
class DeepwokenBuilder:
def __init__(self):
self.active = True
def start(self):
while self.active:
print(" Starting... welcome to the deepwoken talent checker! n")
self.questions()
q = input("Would you like to continue? ")
if q == "yes " or q == "y":
continue
else:
print(" Goodbye, ending loop")
self.active = False
break
def talent_reqs(self):
pass
def questions(self):
flame = input("How much flamecharm do you have?n")
gale = input("How much galebreath do you have?n")
frost = input("How much frostdraw do you have?n")
thunder = input('How much thunder do you have?n')
attributes = [flame, gale, frost, thunder]
return attributes
def controller(self):
pass
if __name__ == '__main__':
Db = DeepwokenBuilder()
Db.start()
</code>
<code>from pygame import *
import pygame
from Talent_List import *
import requests
import json
import sys
import time
class DeepwokenBuilder:
def __init__(self):
self.active = True
def start(self):
while self.active:
print(" Starting... welcome to the deepwoken talent checker! n")
self.questions()
q = input("Would you like to continue? ")
if q == "yes " or q == "y":
continue
else:
print(" Goodbye, ending loop")
self.active = False
break
def talent_reqs(self):
pass
def questions(self):
flame = input("How much flamecharm do you have?n")
gale = input("How much galebreath do you have?n")
frost = input("How much frostdraw do you have?n")
thunder = input('How much thunder do you have?n')
attributes = [flame, gale, frost, thunder]
return attributes
def controller(self):
pass
if __name__ == '__main__':
Db = DeepwokenBuilder()
Db.start()
</code>
from pygame import *
import pygame
from Talent_List import *
import requests
import json
import sys
import time
class DeepwokenBuilder:
def __init__(self):
self.active = True
def start(self):
while self.active:
print(" Starting... welcome to the deepwoken talent checker! n")
self.questions()
q = input("Would you like to continue? ")
if q == "yes " or q == "y":
continue
else:
print(" Goodbye, ending loop")
self.active = False
break
def talent_reqs(self):
pass
def questions(self):
flame = input("How much flamecharm do you have?n")
gale = input("How much galebreath do you have?n")
frost = input("How much frostdraw do you have?n")
thunder = input('How much thunder do you have?n')
attributes = [flame, gale, frost, thunder]
return attributes
def controller(self):
pass
if __name__ == '__main__':
Db = DeepwokenBuilder()
Db.start()
Talents.py
<code>import json
from Main import DeepwokenBuilder
# make talent logic here ig
with open(r'C:UsersZahirDesktopDeepwokenBuilderDeepwoken BuilderTalent_list.json') as f:
Talent_list = json.load(f)
class Talents:
def __init__(self):
self.Talent_list = Talent_list
self.flamecharm = Talent_list['flamecharm']
self.galebreath = Talent_list['galebreath']
self.frostdraw = Talent_list['frostdraw']
self.thundercall = Talent_list['thundercall']
self.base = Talent_list['base']
def display_talents(self):
db = DeepwokenBuilder()
attributes = db.questions()
print(attributes)
for i, v in self.Talent_list.items():
attunement = i
for i, v in v.items():
talent_name = i
talent_req = v
print(f"{talent_name, talent_req}, {attunement} ")
print(attributes)
# if attributes < whatever
tt = Talents()
tt.display_talents()
</code>
<code>import json
from Main import DeepwokenBuilder
# make talent logic here ig
with open(r'C:UsersZahirDesktopDeepwokenBuilderDeepwoken BuilderTalent_list.json') as f:
Talent_list = json.load(f)
class Talents:
def __init__(self):
self.Talent_list = Talent_list
self.flamecharm = Talent_list['flamecharm']
self.galebreath = Talent_list['galebreath']
self.frostdraw = Talent_list['frostdraw']
self.thundercall = Talent_list['thundercall']
self.base = Talent_list['base']
def display_talents(self):
db = DeepwokenBuilder()
attributes = db.questions()
print(attributes)
for i, v in self.Talent_list.items():
attunement = i
for i, v in v.items():
talent_name = i
talent_req = v
print(f"{talent_name, talent_req}, {attunement} ")
print(attributes)
# if attributes < whatever
tt = Talents()
tt.display_talents()
</code>
import json
from Main import DeepwokenBuilder
# make talent logic here ig
with open(r'C:UsersZahirDesktopDeepwokenBuilderDeepwoken BuilderTalent_list.json') as f:
Talent_list = json.load(f)
class Talents:
def __init__(self):
self.Talent_list = Talent_list
self.flamecharm = Talent_list['flamecharm']
self.galebreath = Talent_list['galebreath']
self.frostdraw = Talent_list['frostdraw']
self.thundercall = Talent_list['thundercall']
self.base = Talent_list['base']
def display_talents(self):
db = DeepwokenBuilder()
attributes = db.questions()
print(attributes)
for i, v in self.Talent_list.items():
attunement = i
for i, v in v.items():
talent_name = i
talent_req = v
print(f"{talent_name, talent_req}, {attunement} ")
print(attributes)
# if attributes < whatever
tt = Talents()
tt.display_talents()
ImportError: cannot import name ‘DeepwokenBuilder’ from partially initialized module ‘Main’ (most likely due to a circular import) (DeepwokenBuilderDeepwoken BuilderMain.py)
Im trying to figure out why im having the error
ImportError: cannot import name ‘DeepwokenBuilder’ from partially initialized module ‘Main’ (most likely due to a circular import) (DeepwokenBuilderDeepwoken BuilderMain.py)
New contributor
Devair is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.