Hi this is my first time using pyinstaller.
I made script with
anaconda 4.8.1, python 3.5.6, pyqt5 5.14, selenium 3.141.0, pandas 0.25.3, pymysql 0.9.3 chromedriver
have 4 Qthread and seperated main.py
when I do 3 command below,
pyinstaller myapp.py
pyinstaller --onedir myapp.py
pyinstaller --onefile myapp.py
it works fine, no error massage,
only warning I got when making it to exe is
21972 INFO: Loading module hook "hook-PyQt5.py"...
22159 WARNING: Hidden import "sip" not found!
nothing else. since at bug report, say warning is just warning not error.
but I installed sip and PyQt5.sip.( as written in stackoverflow)
I even tried above 3 exe to 10 different computer with 10 different people. works fine.
but when I do
pyinstaller --noconsole myapp.py
pyinstaller --noconsole --onedir myapp.py
pyinstaller --noconsole --onefile myapp.py
still got "sip" not found warning.
but when I click exe, or run through cam, pop up window massage box that say
Fatal error detected
Failed to excute script myapp
so what I tried is
1. run myapp.py from cmd make sure there is no error massage (now nothing print out, even DevTool listening)
2. run myapp.exe (which is made by with console) from cmd make sure there is no error
3. change service.py from C:\Users\Administrator\Anaconda3\envs\test3\Lib\site-packages\selenium\webdriver\common
like this
def start(self):
try:
cmd = [self.path]
cmd.extend(self.command_line_args())
self.process = subprocess.Popen(cmd, env=self.env,
close_fds=platform.system() != 'Windows',
stdin=self.log_file, stdout=self.log_file, stderr=self.log_file, creationflags=CREATE_NO_WINDOW)
def start(self):
try:
cmd = [self.path]
cmd.extend(self.command_line_args())
self.process = subprocess.Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE, shell=False, creationflags=0x08000000)
tried both. this was written in stackoverflow so I just tried it.
4. make new venv, install every thing again.
5. tried --hidden-import sip and PyQt5.sip
6. Go through "When things go wrong"
CAN YOU PLEASE TELL ME WHAT IS DIFFERENT BETWEEN
pyinstaller --onefile myapp.py
pyinstaller --noconsole --onfile myapp.py
AND WHAT I SHOULD TRY.
I am really getting crazy. I stucked here for 2weeks.
I searched a lot seriously. this is my only working project. so I seached, tried for least 10hours a day.
please.. please.. help me. there is no other place I can get help