Post AL3MeUccuHcooiuSx6 by remcoboerma@fosstodon.org
(DIR) More posts by remcoboerma@fosstodon.org
(DIR) Post #AL2cIPqZNscFkFxynQ by nicemicro@fosstodon.org
2022-07-01T07:55:25Z
0 likes, 0 repeats
Dear #python friends!I have made a python program (GUI with tkinter, pandas, numpy, matplotlib, multiple .py files importing each other) that I'm using at work to make my life easier.Here, all computers run Windows, and while I'm okay running python scripts using Anaconda, I can't share this program this way.I tried py2exe and pyinstaller to make an exe, but neither file runs.What do you guys use for this kind of purpose? Are there any guides for newbies?Thanks!#askfedi #programming
(DIR) Post #AL2rGrp9tR0bFS1fU0 by klaatu@mastodon.xyz
2022-07-01T10:43:11Z
0 likes, 0 repeats
@nicemicro I've not had great luck with cross platform Python. I'm sure I'm doing something wrong because everybody says it's easy.In the past, I've used NSIS to create installers for Windows. It works well but I essentially forced the user to install Python first. You could bundle Python with your installer, I guess. I'm sure there's a better way, so I look forward to other responses.
(DIR) Post #AL2uNLN7FRYEUMgmcy by nicemicro@fosstodon.org
2022-07-01T11:18:00Z
0 likes, 0 repeats
@klaatu The Nullsoft install system?! Those are the same guys who made WinAmp right?Could you please point me to some resource on how to package Python stuff with NSIS?Thanks!
(DIR) Post #AL3MeUccuHcooiuSx6 by remcoboerma@fosstodon.org
2022-07-01T16:34:50Z
0 likes, 0 repeats
@nicemicro I think those do not work with an anaconda distribution. Have you checked the docs that anaconda is supported?
(DIR) Post #AL43cvAPXS28avD1Hs by nicemicro@fosstodon.org
2022-07-02T00:36:22Z
0 likes, 0 repeats
@remcoboerma Unfortunately no, I haven't been able to locate any Anaconda specific documentation for this specific problem.So maybe the lack of the documentation should suggest that Anaconda isn't supported? Even though, py2exe and pyinstaller are available in the Anaconda repository.
(DIR) Post #AL6i6zDNRE7MJpPJNQ by DeepKling@social.anoxinon.de
2022-07-03T07:19:25Z
0 likes, 0 repeats
@nicemicro You need to look at the pyinstaller output, but can be tricky. One thing that helped me was to explicitly import modules the modules you are importing are depending on in the main py. I managed to make a GUI with wx work like that. NSIS is good for creating an installer afterwards. I used it, too.
(DIR) Post #AL6iqNtWWfrPtQlhke by nicemicro@fosstodon.org
2022-07-03T07:27:38Z
0 likes, 0 repeats
@DeepKling Thanks, sounds like a plan!
(DIR) Post #AL6ofWPF8gympZoBhg by DeepKling@social.anoxinon.de
2022-07-03T08:32:53Z
0 likes, 0 repeats
@nicemicro Btw., packing everything to one exe file may be slow and the non-packed version faster (exe plus python environment, so one folder).
(DIR) Post #AL6qhS64Kd1DxAt7q4 by nicemicro@fosstodon.org
2022-07-03T08:55:40Z
0 likes, 0 repeats
@DeepKling Yeah, that's what I meant, an .exe + other stuff in a folder.