today I am making a game, based of pygame and pil some of the import are actuacly normal :
import csv # To read csv files
import itertools # To create player loop
import json # To convert dictionary to json for MySQL
import random # For dice rolling
import tkinter as tk # To create Graphical User Interface
from ctypes import windll # To get HD Graphical User Interface
import mysql.connector as mysql # For MySQL Connectivity
import tkextrafont # To use custom fonts
from PIL import Image, ImageTk # To import and create images
import pyi_splash
# Update the text on the splash screen
pyi_splash.update_text("PyInstaller is a great software!")
pyi_splash.update_text("Second time's a charm!")
# Close the splash screen. It does not matter when the call
# to this function is made, the splash screen remains open until
# this function is called or the Python program is terminated.
pyi_splash.close()
so this is normal because its for monopoly based game.
whats the problem?
I have get the error this :
Traceback (most recent call last):
File "monopoly.py", line 8, in <module>
import tkextrafont # To use custom fonts
ModuleNotFoundError: No module named 'tkextrafont'
so in the last line I write is that I import the module but when convert it not found.
I have tried many ways so like I have tried to –hidden import or else still it doesnt work so if any suggest please comment down so I could finish my game
1