Feb-27-2019, 05:45 PM
(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.Then you doing something wrong,like not aware that stuff can be outside(Python) link to OS that's need to be included.
That's why I am consider to using the py2exe.
Follow all in this post.
So if movepower.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 dependenciesAVbin 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?