V
V
vadimeasy2021-11-10 11:47:57
Building projects
vadimeasy, 2021-11-10 11:47:57

How to pack the program in EXE, if there is a webdriver?

I use the library pytinstallerto pack programs into EXE. Now I have finished a program that uses Webdriver Selenium and also imports a json file into itself. After the EXE is made, it does not start, the drive and json are in the folder with the "exe". The console appears for a moment, I can’t even screenshot the error, tell me what it can be and maybe I should just use another library and how can I and is it possible at all to push the driver, browser and json file into one executable so that it works on others computers?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
antares4045, 2021-11-10
@vadimeasy

pay attention to the --add-data flag in pytinstaller: it will most likely solve your problem.
and the error can be read by running the executable through the console:
in Windows, right-click with the shift key pressed on any free space in the folder - open a powershell window here - and type in the command
./<имя экзешника>.exe

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question