ModuleNotFoundError

I am trying to run my website, and everything is working except the this error.

I have tries deleting a recreating my modules as well as searching up solutions online, but I cannot find anything.

All of my code is working, but here is my code for the specific ModuleNotFoundError: No module named ‘Form2.ItemTemplate1/Home_Page’ form2:

from ._anvil_designer import ItemTemplate2Template
from anvil import *
import anvil.server
import anvil.tables as tables
import anvil.tables.query as q
from anvil.tables import app_tables

class ItemTemplate2(ItemTemplate2Template):
def init(self, **properties):
# Set Form properties and Data Bindings.
self.init_components(**properties)

# Any code you write here will run before the form opens.
from ._anvil_designer import ItemTemplate2Template
self.label_1.text = f"Location: {self.item['Location']}"
self.label_2.text = f"Amount of Votes: {self.item['Votes']}"

Here is my clone link:

Welcome to the Forum!

Based on your posting above, the 2nd line below is a duplicate of your file’s first line. It should only appear once, at the top of your file.

Removing this duplicate line should improve things for you.

1 Like