Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyinstaller freeze single app can't work #369

Closed
2 tasks
HuerFu opened this issue Aug 9, 2019 · 9 comments
Closed
2 tasks

pyinstaller freeze single app can't work #369

HuerFu opened this issue Aug 9, 2019 · 9 comments

Comments

@HuerFu
Copy link

HuerFu commented Aug 9, 2019

Specification

  • pywebview version: pywebview3.0.1
  • platform / version: win10 64

Description

The pywebview runs normally, but after pyinstaller packages a single application in - F mode, the exe program fails to run, indicating that the breakpoint has reached the breakpoint.
I hope you can help me. Thank you.

Practicalities

  • I am willing to work on this issue myself.

  • I am prepared to support this issue financially.

@r0x0r
Copy link
Owner

r0x0r commented Aug 11, 2019

Take a look at a solution described here #343 (comment)

@HuerFu
Copy link
Author

HuerFu commented Aug 12, 2019

@r0x0r I did it in your way, as follows:
image
But it had no effect.When I open the generated exe file after packaging, I still report the same error, as follows:
image
The debug.log file will output the following information:
[0812/112825.786:ERROR:icu_util.cc(133)] Invalid file descriptor to ICU data received.

@HuerFu
Copy link
Author

HuerFu commented Aug 12, 2019

Only in gui='cef' mode will this error occur, other modes are normal. But for some specific reasons, I have to use the gui='cef' model. So I'm wondering why this error occurs when using the cef renderer.
I found a lot of information on the internet, but I didn't find an effective solution. Thank you.

@falan
Copy link

falan commented Aug 12, 2019

FYR,
Have you try to pack bare bone cef pywebview app ?
I remember I have encounter something like this. It was the problem with ceftpyhon3 not packing correctly with pyinstaller. You can go to cefpython3 website to use their cefpython3-hook. I use their hook and working correctly after changing the hook of pyinstaller.

@HuerFu
Copy link
Author

HuerFu commented Aug 12, 2019

@falan Hello, could you tell me how to use the hook of cefpython 3? Thank you

@HuerFu
Copy link
Author

HuerFu commented Aug 12, 2019

FYR,
Have you try to pack bare bone cef pywebview app ?
I remember I have encounter something like this. It was the problem with ceftpyhon3 not packing correctly with pyinstaller. You can go to cefpython3 website to use their cefpython3-hook. I use their hook and working correctly after changing the hook of pyinstaller.

I tried pack bare bone cef pywebview app ,but report the same error.

@falan
Copy link

falan commented Aug 12, 2019

@falan Hello, could you tell me how to use the hook of cefpython 3? Thank you

Go to
https://github.com/cztomczak/cefpython/tree/master/examples/pyinstaller

you can use the pyinstaller.spec as reference.
Copy hook-cefpython3.py to your local python /site-packages/PyInstaller/hooks/
You might also need to use latest hook-webview.py from pyinstaller
https://github.com/pyinstaller/pyinstaller/blob/develop/PyInstaller/hooks/hook-webview.py

Good luck.

@HuerFu
Copy link
Author

HuerFu commented Aug 12, 2019

@falan Hello, could you tell me how to use the hook of cefpython 3? Thank you

Go to
https://github.com/cztomczak/cefpython/tree/master/examples/pyinstaller

you can use the pyinstaller.spec as reference.
Copy hook-cefpython3.py to your local python /site-packages/PyInstaller/hooks/
You might also need to use latest hook-webview.py from pyinstaller
https://github.com/pyinstaller/pyinstaller/blob/develop/PyInstaller/hooks/hook-webview.py

Good luck.

I successfully solved this problem through your method. That's great. Thank you so much. I've been puzzled by this problem for a long time. I'm really happy to be able to solve it. Thank you again.

@HuerFu
Copy link
Author

HuerFu commented Aug 12, 2019

Take a look at a solution described here #343 (comment)

Thank you. It's settled. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants