T O P

Pyinstaller and Selenium Problem

Pyinstaller and Selenium Problem

Gfrkad21

There might be a logical error in the program. Can you provide the source code?


CaptRosh

Sorry, as I said, I am under an NDA. What I can tell you is that the .py file executes flawlessly. It's only the conversion to exe, which causes the file to mess up


RobinsonDickinson

There is a lot of things going on with selenium/chrome driver at a given time, so converting your program into an exe is bound to give an error and is definitely not ideal. I suggest you looking into turning it into a CLI program instead. Pyinstaller is a package after all, just like selenium and different dependencies will always conflict with each other and it is pretty difficult to pin-point the exact issue without being able to debug the `exe` itself.


CaptRosh

Thanks for your reply. I want to make it so that the end user doesnt have to install the libraries and the webdrivers, as they might not be so tech-savvy. Is there an alternative to pyinstaller?


RobinsonDickinson

Yeah, I have had the same issue as you before and I used a bash script to take care of the dependencies, since my program was CLI based. There aren't any good alternatives to pyinstaller (not that I know of atleast) but there is py2exe and a few others you could try out: https://stackoverflow.com/a/63109100/14204618


CaptRosh

Thanks so much! I'll look into them


ElliotDG

How did you let pyinstaller know about the chrome driver? Did you list it in the datas section?