Error importing many libs with no reason

35 views
Skip to first unread message

ALI ELSHEIKH

unread,
Apr 4, 2023, 8:22:36 AM4/4/23
to PyInstaller
Hello, 
I have a Python script for a program designed in PyQt5 and converted to .Py but when i try to convert the .Py to Exe i get many errors with the libs although i installed them all from the command prompt and also they work perfectly through PyCharm.

these are the list of libs: import sys
from PyQt5 import (QtWidgets, QtCore)
from PyQt5.QtWidgets import *
from PyQt5.QtWidgets import (QMessageBox, QFileDialog,QTableWidget, QTableWidgetItem, QTextBrowser, QSplashScreen,QDesktopWidget)
import icons_rc
import MySQLdb
import os
from datetime import datetime
import datetime
import time
from PyQt5.QtCore import (QDate, QTime, Qt, QDateTime, QFile, QTimer,QTranslator)
import xlsxwriter
from decimal import Decimal
import psycopg2
import logging
import mimetypes
from PyQt5.QtGui import (QIcon,  QPixmap)
import tempfile
import zipfile
import rarfile
from PyQt5.QtSql import (QSqlQuery, QSqlTableModel)
import win32com.client
from win32com.client import (Dispatch, constants)
import xlwt
import re
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.utils import COMMASPACE
from email import encoders
import configparser
from docx import Document
import pdfkit
import io
from docx2pdf import convert
import shutil
import datetime
import openpyxl
from openpyxl.worksheet.table import Table, TableStyleInfo
from login import Ui_Dialog as login_window
from splash import Ui_Form as splash_window
from mainapp import Ui_MainWindow as main_window
from about import Ui_Form as about_window



I am facing issues with qt_material, psycopg2 and more.
any thoughts?
thanks in advance. 
Reply all
Reply to author
Forward
0 new messages