Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
py2exe failed to compiled
#5
(Feb-27-2019, 04:47 PM)snippsat Wrote:
(Feb-27-2019, 03:44 PM)gahhon Wrote: But if convert to .exe by using pyinstaller, the client computers are not able to execute the .exe files due to their computers have no Python installed.
That's why I am consider to using the py2exe.
Then you doing something wrong,like not aware that stuff can be outside(Python) link to OS that's need to be included.

Follow all in this post.
So if move power.exe to Pc without Python then it will work.
power.py is simple file with no external dependencies.

Look at Sound-player standalone,
see that i take step to include external OS dependencies AVbin avbin.dll(windows) and libavbin.so.10(Linux).
If i do not do this,it's not a standalone solution.
See also that i start with virtual environment,to have isolation from OS in first place before start troubleshoot.

Have to understand that there never will be one easy solution for doing building stuff like this.
py2exe had of course the same problem,if there where external dependencies.

I think I know the clue already.
I have to install the pipenv.
Then using the pipenv to install pyinstaller, selenium, and any other libraries that I had import in my script.
Then in my script, I must add the pyglet.lib.load_library('avbin.dll') pyglet.have_avbin=True
But in your post, you were mentioned that pyglet & avbin is for the playing. But what if for Selenium?
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 997 Apr-20-2022, 08:02 AM
Last Post: VadimCr
  Py2exe and pycryptodome reks2004 5 4,312 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,511 May-10-2020, 05:57 PM
Last Post: Oethen
  compiled cpython output wrong version bigrockcrasher 0 1,557 Feb-25-2020, 06:31 PM
Last Post: bigrockcrasher
  Py2exe Writing UNKNOWN-0.0.0-py3.7.egg-info Rickus 2 3,772 Feb-18-2020, 03:09 PM
Last Post: Rickus
  Hello Im looking for a compiled window version of 3.4.x ... SlowMotion 2 2,304 Feb-12-2019, 08:13 PM
Last Post: SlowMotion
  What are ways of pointing cross-compiled origin source line for python? wyvogew 2 2,914 Feb-02-2019, 03:16 PM
Last Post: wyvogew
  py2exe keegan_010 4 4,622 Aug-22-2018, 07:58 AM
Last Post: buran
  How would I combine multiple .py files into one .exe with Py2Exe shlomi27 0 3,178 Aug-20-2018, 10:27 AM
Last Post: shlomi27
  jira-2.0.0.dist causing error with py2exe johnlawlor 1 2,608 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