Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
py2exe failed to compiled
#10
(Feb-27-2019, 08:49 PM)snippsat Wrote: A quick test,an you have to read the doc.
So can use spec file that get create every time run pyinstaller or add stuff with commands.
Adding binary from commands.
pyinstaller --onefile --console --add-binary chromedriver.exe;. duck_go.py 
In spec file it look like this '.' or command line ;. means find file in folder you run from an add it to build.
binaries=[('chromedriver.exe', '.')],
So when i build i have chromedriver.exe is same folder as .py file,and no path giver to chromedriver.exe in .py file.
browser = webdriver.Chrome(executable_path=r'chromedriver.exe')
If move .exe to other Pc it work when in this test.

Okay. It appear that the chrome browser is launched, but I got the log error saying that IndexError: ('list index out of range',)
This error doesn't appear in my local, but in my client computer.
Any idea tho?
Reply


Messages In This Thread
py2exe failed to compiled - by gahhon - Feb-27-2019, 12:44 PM
RE: py2exe failed to compiled - by snippsat - Feb-27-2019, 01:28 PM
RE: py2exe failed to compiled - by gahhon - Feb-27-2019, 03:44 PM
RE: py2exe failed to compiled - by snippsat - Feb-27-2019, 04:47 PM
RE: py2exe failed to compiled - by gahhon - Feb-27-2019, 05:45 PM
RE: py2exe failed to compiled - by snippsat - Feb-27-2019, 06:05 PM
RE: py2exe failed to compiled - by gahhon - Feb-27-2019, 07:07 PM
RE: py2exe failed to compiled - by snippsat - Feb-27-2019, 08:49 PM
RE: py2exe failed to compiled - by gahhon - Feb-28-2019, 10:26 AM
RE: py2exe failed to compiled - by gahhon - Mar-04-2019, 03:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Py2exe Writing UNKNOWN-0.0.0-py3.7.egg-info sarahroxon7 1 908 Apr-20-2022, 08:02 AM
Last Post: VadimCr
  Py2exe and pycryptodome reks2004 5 4,094 Dec-16-2020, 06:42 PM
Last Post: reks2004
  I need my compiled Python Mac app to accept a file as a parameter Oethen 2 2,357 May-10-2020, 05:57 PM
Last Post: Oethen
  compiled cpython output wrong version bigrockcrasher 0 1,480 Feb-25-2020, 06:31 PM
Last Post: bigrockcrasher
  Py2exe Writing UNKNOWN-0.0.0-py3.7.egg-info Rickus 2 3,609 Feb-18-2020, 03:09 PM
Last Post: Rickus
  Hello Im looking for a compiled window version of 3.4.x ... SlowMotion 2 2,172 Feb-12-2019, 08:13 PM
Last Post: SlowMotion
  What are ways of pointing cross-compiled origin source line for python? wyvogew 2 2,772 Feb-02-2019, 03:16 PM
Last Post: wyvogew
  py2exe keegan_010 4 4,436 Aug-22-2018, 07:58 AM
Last Post: buran
  How would I combine multiple .py files into one .exe with Py2Exe shlomi27 0 3,066 Aug-20-2018, 10:27 AM
Last Post: shlomi27
  jira-2.0.0.dist causing error with py2exe johnlawlor 1 2,483 Aug-09-2018, 08:27 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020