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
FileExistsError macos with playwright webkit driver locally installed #8363
Comments
Yeah, collection of stuff that Using last PyInstaller 5.x release (5.13.2) might alleviate the problem, at the cost of all those symlinks being duplicated and/or missing. |
then the browser just doesn't work in the compiled app. It does not launch |
Then in contrast to #7969, this never really worked. |
Using 5.13.2 I can get it working with the chromium and firefox driver but not webkit (which I was using). However, I changed one other thing apart from downgrading pyinstaller, I also removed setting the env var PLAYWRIGHT_BROWSERS_PATH=0 from inside my python script. |
|
when installing the drivers, we have to use PLAYWRIGHT_BROWSERS_PATH=0 because otherwise there is no binary driver for the browser in the package, and nothing will work. |
Description of the issue
On macos (intel, Ventura) when building a project, I get a FileExistsError
The most complex thing about this project is that has a locally installed playwright browser driver.
pyinstaller is 6.5.0
python is 3.11.8
The application runs correctly when run as a python script.
Context information (for bug reports)
Output of
pyinstaller --version
:(paste here)
6.5.0
Version of Python:
3.11.8
Platform:
os x. The same project builds fine on Windows, also with webkit driver.
How you installed Python:
python is a venv based on the official python installer.
Did you also try this on another platform? Does it work there?
Yes and yes.
try the latest development version, using the following command:
The same problem.
--onedir produces the same result
(https://github.com/pyinstaller/pyinstaller/wiki/If-Things-Go-Wrong) and
Make sure everything is packaged correctly
--noupx
or setupx=False
in your .spec-file--debug
topyi-makespec
orpyinstaller
or useEXE(..., debug=1, ...)
in your .spec file.A minimal example program which shows the error
Note: first you need to
pip install playwright
and from directory of script:
PLAYWRIGHT_BROWSERS_PATH=0 playwright install webkit
Stacktrace / full error message
Please also see https://github.com/pyinstaller/pyinstaller/wiki/How-to-Report-Bugs
for more about what would use to solve the issue.
The text was updated successfully, but these errors were encountered: