title: I was just making a simple kivy app but then I crash into this error so how should I fix it, Even looked up tutorials but nothing helpful
body: <p>So here it goes</p>
  <p>Error message:</p>
  <p><code>kivy.factory.FactoryException: Unknown class &lt;Spamming&gt;</code></p>
  <p>Main.py:</p>
  <pre><code>from kivy.app import App
  from kivy.uix.widget import Widget
  from kivy.core.window import Window
  from kivy.lang.builder import Builder
  import time
  import pyautogui
  
  
  Builder.load_file('SpamBot.kv')
  
  
  class Spamming(Widget):
      pass
  
  
  class SpamBotByOmkarApp(App):
      pass
  
  
  if __name__ == &quot;__main__&quot;:
      SpamBotByOmkarApp().run()
  </code></pre>
  <p>and the SpamBot.kv file:</p>
  <pre><code>Spamming:
  
  &lt;Spamming&gt;:
      TextInput:
          id: &quot;message&quot;
          width: &quot;100dp&quot;
  </code></pre>
  <p>Please help cuz I have to show it to my professor in a week  :)</p>