So I'm trying create a project and can't resolve this issue for some reason.
My directory:
Desktop
|- MyProject
|- TableInfo
|- Team.py
|- User.py
What my User.py looks like:
import hashlib
import uuid
class createUser():
userId = str(uuid.uuid4())
def __init__(self, name, password):
self.userName = name
hashedPassword = hashlib.sha512(password.encode()+name.encode())
self.userPassword = hashedPassword.hexdigest()
What my Team.py looks like:
from User import createUser
import uuid
class Team():
playerOne = None
playerTwo = None
teamId = str(uuid.uuid4())
def addPlayerOne(self, p1):
self.playerOne = p1
def addPlayerTwo(self, p2):
self.playerTwo = p2
and when i execute Team.py I get the error of
ModuleNotFoundError: No module named 'User'
I'm annoyed because it was working, then I went to bed, and when I retried this morning it's not working. Can anyone help me resolve this simple issue please?