Re: py2app and pyinstaller on Big Sur

Ronald Oussoren via Pythonmac-SIG <[email protected]> Fri, 21 May 2021 09:33:22 +0200
Newsgroups gmane.comp.python.apple
Message-ID <[email protected]>
--===============2309688980568347416==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_75524B85-5948-48A8-9647-F4F000D52D42"


--Apple-Mail=_75524B85-5948-48A8-9647-F4F000D52D42
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8



> On 20 May 2021, at 15:26, Paul Fishback <[email protected]> =
wrote:
>=20
> Hello,
>=20
> I'm using Python 3.9 on a Mac running Big Sur and have encountered =
problems converting GUIs into Mac apps. I'm concerned that the problems =
may arise from Big Sur itself.=20
>=20
> Pyinstaller: I posted a problem I ran into at =
https://stackoverflow.com/questions/67593376/pyinstaller-tkinter-script-wo=
rks-fine-but-wont-execute-properly-as-app-or-uni?noredirect=3D1#comment119=
476414_67593376 =
<https://stackoverflow.com/questions/67593376/pyinstaller-tkinter-script-w=
orks-fine-but-wont-execute-properly-as-app-or-uni?noredirect=3D1#comment11=
9476414_67593376>. In essence, I created my .app, which did not function =
on Big Sur but did when someone else ran it on linux.=20
>=20
> py2app:  Problem I encountered is posted at =
https://stackoverflow.com/questions/67611680/problem-with-py2app-when-figu=
recanvastkagg-is-used-in-script?noredirect=3D1#comment119507494_67611680 =
<https://stackoverflow.com/questions/67611680/problem-with-py2app-when-fig=
urecanvastkagg-is-used-in-script?noredirect=3D1#comment119507494_67611680>=
. Essentially, I can get py2app to work fine with a tkinter GUI that =
utilizes matplotlib, unless I need to import FigureCanvassTkAgg from =
matplotlib.backends.backend_tkagg. This problem could be more likely due =
to an incomplete understanding of how to incorporate options with =
py2app.

I=E2=80=99ve added a comment on the stack overflow question.  It says:

The first step to debug issues like this is to start the application in =
the terminal, that is for MyApp.app run =
"dist/MyApp.app/Contents/MacOS/MyApp". This will print errors to the =
terminal instead of that they'll be swallowed by the system. This will =
likely print that some module or library cannot be found. You can use =
"includes" (modules) or "packages' (packages) to explicitly include =
those missing modules/packages (but please report back, I can automate =
this in py2app).

Ronald
>=20
> Thanks
>=20
> PaulF.
> _______________________________________________
> Pythonmac-SIG maillist  -  [email protected]
> https://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG

=E2=80=94

Twitter / micro.blog: @ronaldoussoren
Blog: https://blog.ronaldoussoren.net/


--Apple-Mail=_75524B85-5948-48A8-9647-F4F000D52D42
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><br =
class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">On 20 May 2021, at 15:26, Paul Fishback &lt;<a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" =
class=3D"">Hello,<div class=3D""><br class=3D""></div><div class=3D"">I'm =
using Python 3.9 on a Mac running Big Sur and have =
encountered&nbsp;problems converting GUIs into Mac apps. I'm concerned =
that the problems may arise from Big Sur itself.&nbsp;</div><div =
class=3D""><br class=3D""></div><div class=3D""><b class=3D""><u =
class=3D"">Pyinstaller</u></b>: I posted a problem I ran into at&nbsp;<a =
href=3D"https://stackoverflow.com/questions/67593376/pyinstaller-tkinter-s=
cript-works-fine-but-wont-execute-properly-as-app-or-uni?noredirect=3D1#co=
mment119476414_67593376" =
class=3D"">https://stackoverflow.com/questions/67593376/pyinstaller-tkinte=
r-script-works-fine-but-wont-execute-properly-as-app-or-uni?noredirect=3D1=
#comment119476414_67593376</a>. In essence, I created my .app, which did =
not function on Big Sur but did when someone else ran it on =
linux.&nbsp;</div><div class=3D""><br class=3D""></div><div class=3D""><b =
style=3D"text-decoration-line:underline" =
class=3D"">py2app:&nbsp;</b>&nbsp;Problem I encountered is posted at <a =
href=3D"https://stackoverflow.com/questions/67611680/problem-with-py2app-w=
hen-figurecanvastkagg-is-used-in-script?noredirect=3D1#comment119507494_67=
611680" =
class=3D"">https://stackoverflow.com/questions/67611680/problem-with-py2ap=
p-when-figurecanvastkagg-is-used-in-script?noredirect=3D1#comment119507494=
_67611680</a>. Essentially, I can get py2app to work fine with a tkinter =
GUI that utilizes&nbsp;matplotlib, unless I need to import =
FigureCanvassTkAgg&nbsp;from matplotlib.backends.backend_tkagg. This =
problem could be more likely due to an incomplete understanding of how =
to incorporate options with =
py2app.</div></div></div></blockquote><div><br class=3D""></div>I=E2=80=99=
ve added a comment on the stack overflow question. &nbsp;It =
says:</div><div><br class=3D""></div><blockquote style=3D"margin: 0 0 0 =
40px; border: none; padding: 0px;" class=3D""><div><span =
style=3D"caret-color: rgb(36, 39, 41); color: rgb(36, 39, 41); =
font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, =
&quot;Liberation Sans&quot;, sans-serif; font-size: 13px; =
background-color: rgb(255, 255, 255);" class=3D"">The first step to =
debug issues like this is to start the application in the terminal, that =
is for MyApp.app run "dist/MyApp.app/Contents/MacOS/MyApp". This will =
print errors to the terminal instead of that they'll be swallowed by the =
system. This will likely print that some module or library cannot be =
found. You can use "includes" (modules) or "packages' (packages) to =
explicitly include those missing modules/packages (but please report =
back, I can automate this in py2app).</span></div></blockquote><div><br =
class=3D""></div><div><font color=3D"#242729" face=3D"-apple-system, =
BlinkMacSystemFont, Segoe UI, Liberation Sans, sans-serif" size=3D"2" =
class=3D""><span style=3D"caret-color: rgb(36, 39, 41); =
background-color: rgb(255, 255, 255);" =
class=3D"">Ronald</span></font></div><div><blockquote type=3D"cite" =
class=3D""><div class=3D""><div dir=3D"ltr" class=3D""><div class=3D""><br=
 class=3D""></div><div class=3D"">Thanks</div><div class=3D""><br =
class=3D""></div><div class=3D"">PaulF.</div></div>
_______________________________________________<br =
class=3D"">Pythonmac-SIG maillist &nbsp;- &nbsp;<a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a><br class=3D""><a =
href=3D"https://mail.python.org/mailman/listinfo/pythonmac-sig" =
class=3D"">https://mail.python.org/mailman/listinfo/pythonmac-sig</a><br =
class=3D"">unsubscribe: =
https://mail.python.org/mailman/options/Pythonmac-SIG<br =
class=3D""></div></blockquote></div><br class=3D""><div class=3D"">
<div dir=3D"auto" style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; line-break: after-white-space;" class=3D""><div =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;">=E2=80=94</div><div style=3D"caret-color: rgb(0, 0, 0); color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant-caps: normal; font-weight: normal; letter-spacing: =
normal; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><br class=3D""></div><div style=3D"caret-color: =
rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;">Twitter / =
micro.blog: @ronaldoussoren</div><div style=3D"caret-color: rgb(0, 0, =
0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;">Blog: <a =
href=3D"https://blog.ronaldoussoren.net/" =
class=3D"">https://blog.ronaldoussoren.net/</a></div></div>
</div>
<br class=3D""></body></html>=

--Apple-Mail=_75524B85-5948-48A8-9647-F4F000D52D42--

--===============2309688980568347416==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Pythonmac-SIG maillist  -  [email protected]
https://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG

--===============2309688980568347416==--