Problem with packing

32 views
Skip to first unread message

Jacoo

unread,
Mar 25, 2021, 4:00:23 AM3/25/21
to PyInstaller
Hello, I'm trying to pack python script with installed module Playwright into onefile. Everything works perfect until I try to open browser through exe file - it can't find browser. Could someone please help me and explain what I'm doing wrong?

I tried adding "--add-data"/"--add-binary" pointed to browser location and same error occurs.

Steve Barnes

unread,
Mar 26, 2021, 6:50:00 AM3/26/21
to pyins...@googlegroups.com

Since different machines have the browser installed in different places and with many different names it is usually safer and better to use webbrowser.open rather than exe a file this will use the system default file on whatever machine it is running on.

 

Steve Barnes

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/aaf3bb5d-92dc-4279-8d49-63a3bffdc1c5n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages