Re: Can't complete py2app build

The Shelter via Pythonmac-SIG <[email protected]> Sun, 27 Sep 2020 09:18:06 +0200
Newsgroups gmane.comp.python.apple
Message-ID <[email protected]>
--===============0335114535816360728==
Content-Type: multipart/alternative; boundary=Apple-Mail-7469CECB-17E3-4DB1-8361-883E65E7C282
Content-Transfer-Encoding: 7bit


--Apple-Mail-7469CECB-17E3-4DB1-8361-883E65E7C282
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable


I recommend switching to pyinstaller.=20
It seems well better maintained and is very straightfwd.=20
I myself switched after much trouble w/ py2app on Python3.=20

Cheers=20

> Am 26.09.2020 um 17:35 schrieb Terry Acree via Pythonmac-SIG <pythonmac-si=
[email protected]>:
>=20
> =EF=BB=BFSorry to bother you but i can=E2=80=99t get py2app to complete. a=
ll packages up to date py2app 0.22.
>=20
> error
>     raise ValueError("%r does not exist" % (pathname,))
> ValueError: '/opt/anaconda3/lib/libpython3.7.dylib' does not exist
>=20
> test module =E2=80=9Cgaussapp.py=E2=80=9D
> import math
>=20
> def gaussian(amp, delta, rt):
>     if delta =3D=3D 0:
>         delta =3D 0.0003
>     n, point, peak, time, y =3D 0, [], [], rt-delta/2, 0
>=20
>     while n !=3D 20:
>         sn =3D ((rt-time)/(.15*delta))**2
>         y =3D amp*math.exp(- sn)
>         time =3D time + delta/19
>         point =3D [time, y]
>         n =3D n + 1
>         peak.append(point)
>        =20
>     peak[0][1] =3D 0.0
>     peak[19][1] =3D 0.0
>    =20
>     return peak
>=20
> if __name__ =3D=3D "__main__":
>     amp =3D 500000
>     delta =3D 0.002
>     rt =3D 7.0
>    =20
>     i =3D 0
>     stuff =3D gaussian(amp,delta,rt)
>     while i !=3D 20:
>         print (stuff[i])
>=20
> py2app test =E2=80=9Csetup_gaussapp.py=E2=80=9D
>=20
> APP =3D ['gaussapp.py']
> DATA_FILES =3D []
> OPTIONS =3D {'argv_emulation': True, 'iconfile': 'Divine.icns'
> }
> setup(
>     app=3DAPP,
>     data_files=3DDATA_FILES,
>     options=3D{'py2app': OPTIONS},
>     setup_requires=3D['py2app'],
> )
>=20
>=20
>=20
>=20
> _______________________________________________
> Pythonmac-SIG maillist  -  [email protected]
> https://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG

--Apple-Mail-7469CECB-17E3-4DB1-8361-883E65E7C282
Content-Type: text/html;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=3D=
utf-8"></head><body dir=3D"auto"><br>I recommend switching to pyinstaller.&n=
bsp;<div>It seems well better maintained and is very straightfwd.&nbsp;</div=
><div>I myself switched after much trouble w/ py2app on Python3.&nbsp;</div>=
<div><br></div><div>Cheers&nbsp;<br><div dir=3D"ltr"><br><blockquote type=3D=
"cite">Am 26.09.2020 um 17:35 schrieb Terry Acree via Pythonmac-SIG &lt;pyth=
[email protected]&gt;:<br><br></blockquote></div><blockquote type=3D"cite=
"><div dir=3D"ltr">=EF=BB=BF<meta http-equiv=3D"Content-Type" content=3D"tex=
t/html; charset=3Dutf-8">Sorry to bother you but i can=E2=80=99t get py2app t=
o complete. all packages up to date py2app 0.22.<div class=3D""><br class=3D=
""></div><div class=3D"">error</div><div class=3D""><div style=3D"margin: 0p=
x; font-stretch: normal; font-size: 11px; line-height: normal; font-family: M=
enlo;" class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures=
" class=3D"">&nbsp; &nbsp;&nbsp;raise ValueError("%r does not exist" % (path=
name,))</span></div><div style=3D"margin: 0px; font-stretch: normal; font-si=
ze: 11px; line-height: normal; font-family: Menlo;" class=3D""><span style=3D=
"font-variant-ligatures: no-common-ligatures" class=3D"">ValueError: '/opt/a=
naconda3/lib/libpython3.7.dylib' does not exist</span></div></div><div style=
=3D"margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal;=
 font-family: Menlo;" class=3D""><span style=3D"font-variant-ligatures: no-c=
ommon-ligatures" class=3D""><br class=3D""></span></div><div style=3D"margin=
: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-fami=
ly: Menlo;" class=3D""><span style=3D"font-variant-ligatures: no-common-liga=
tures" class=3D"">test module =E2=80=9Cgaussapp.py=E2=80=9D</span></div><div=
 style=3D"margin: 0px; font-stretch: normal; font-size: 11px; line-height: n=
ormal; font-family: Menlo;" class=3D""><span style=3D"font-variant-ligatures=
: no-common-ligatures" class=3D""><div style=3D"margin: 0px; font-stretch: n=
ormal; line-height: normal;" class=3D""><span style=3D"font-variant-ligature=
s: no-common-ligatures" class=3D"">import math</span></div><div style=3D"mar=
gin: 0px; font-stretch: normal; line-height: normal; min-height: 13px;" clas=
s=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" class=3D"=
"></span><br class=3D""></div><div style=3D"margin: 0px; font-stretch: norma=
l; line-height: normal;" class=3D""><span style=3D"font-variant-ligatures: n=
o-common-ligatures" class=3D"">def gaussian(amp, delta, rt):</span></div><di=
v style=3D"margin: 0px; font-stretch: normal; line-height: normal;" class=3D=
""><span style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&n=
bsp; &nbsp; if delta =3D=3D 0:</span></div><div style=3D"margin: 0px; font-s=
tretch: normal; line-height: normal;" class=3D""><span style=3D"font-variant=
-ligatures: no-common-ligatures" class=3D"">&nbsp; &nbsp; &nbsp; &nbsp; delt=
a =3D 0.0003</span></div><div style=3D"margin: 0px; font-stretch: normal; li=
ne-height: normal;" class=3D""><span style=3D"font-variant-ligatures: no-com=
mon-ligatures" class=3D"">&nbsp; &nbsp; n, point, peak, time, y =3D 0, [], [=
], rt-delta/2, 0</span></div><div style=3D"margin: 0px; font-stretch: normal=
; line-height: normal; min-height: 13px;" class=3D""><span style=3D"font-var=
iant-ligatures: no-common-ligatures" class=3D""></span><br class=3D""></div>=
<div style=3D"margin: 0px; font-stretch: normal; line-height: normal;" class=
=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" class=3D""=
>&nbsp; &nbsp; while n !=3D 20:</span></div><div style=3D"margin: 0px; font-=
stretch: normal; line-height: normal;" class=3D""><span style=3D"font-varian=
t-ligatures: no-common-ligatures" class=3D"">&nbsp; &nbsp; &nbsp; &nbsp; sn =3D=
 ((rt-time)/(.15*delta))**2</span></div><div style=3D"margin: 0px; font-stre=
tch: normal; line-height: normal;" class=3D""><span style=3D"font-variant-li=
gatures: no-common-ligatures" class=3D"">&nbsp; &nbsp; &nbsp; &nbsp; y =3D a=
mp*math.exp(- sn)</span></div><div style=3D"margin: 0px; font-stretch: norma=
l; line-height: normal;" class=3D""><span style=3D"font-variant-ligatures: n=
o-common-ligatures" class=3D"">&nbsp; &nbsp; &nbsp; &nbsp; time =3D time + d=
elta/19</span></div><div style=3D"margin: 0px; font-stretch: normal; line-he=
ight: normal;" class=3D""><span style=3D"font-variant-ligatures: no-common-l=
igatures" class=3D"">&nbsp; &nbsp; &nbsp; &nbsp; point =3D [time, y]</span><=
/div><div style=3D"margin: 0px; font-stretch: normal; line-height: normal;" c=
lass=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" class=3D=
"">&nbsp; &nbsp; &nbsp; &nbsp; n =3D n + 1</span></div><div style=3D"margin:=
 0px; font-stretch: normal; line-height: normal;" class=3D""><span style=3D"=
font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; &nbsp; &nbsp;=
 &nbsp; peak.append(point)</span></div><p style=3D"margin: 0px; font-stretch=
: normal; line-height: normal; min-height: 13px;" class=3D""><span style=3D"=
font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp;&nbsp; &nbsp; &=
nbsp; &nbsp;</span><br class=3D"webkit-block-placeholder"></p><div style=3D"=
margin: 0px; font-stretch: normal; line-height: normal;" class=3D""><span st=
yle=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; &nbsp;=
 peak[0][1] =3D 0.0</span></div><div style=3D"margin: 0px; font-stretch: nor=
mal; line-height: normal;" class=3D""><span style=3D"font-variant-ligatures:=
 no-common-ligatures" class=3D"">&nbsp; &nbsp; peak[19][1] =3D 0.0</span></d=
iv><p style=3D"margin: 0px; font-stretch: normal; line-height: normal; min-h=
eight: 13px;" class=3D""><span style=3D"font-variant-ligatures: no-common-li=
gatures" class=3D"">&nbsp;&nbsp; &nbsp;</span><br class=3D"webkit-block-plac=
eholder"></p><div style=3D"margin: 0px; font-stretch: normal; line-height: n=
ormal;" class=3D""><span style=3D"font-variant-ligatures: no-common-ligature=
s" class=3D"">&nbsp; &nbsp; return peak</span></div><div style=3D"margin: 0p=
x; font-stretch: normal; line-height: normal; min-height: 13px;" class=3D"">=
<span style=3D"font-variant-ligatures: no-common-ligatures" class=3D""></spa=
n><br class=3D""></div><div style=3D"margin: 0px; font-stretch: normal; line=
-height: normal;" class=3D""><span style=3D"font-variant-ligatures: no-commo=
n-ligatures" class=3D"">if __name__ =3D=3D "__main__":</span></div><div styl=
e=3D"margin: 0px; font-stretch: normal; line-height: normal;" class=3D""><sp=
an style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; &=
nbsp; amp =3D 500000</span></div><div style=3D"margin: 0px; font-stretch: no=
rmal; line-height: normal;" class=3D""><span style=3D"font-variant-ligatures=
: no-common-ligatures" class=3D"">&nbsp; &nbsp; delta =3D 0.002</span></div>=
<div style=3D"margin: 0px; font-stretch: normal; line-height: normal;" class=
=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" class=3D""=
>&nbsp; &nbsp; rt =3D 7.0</span></div><p style=3D"margin: 0px; font-stretch:=
 normal; line-height: normal; min-height: 13px;" class=3D""><span style=3D"f=
ont-variant-ligatures: no-common-ligatures" class=3D"">&nbsp;&nbsp; &nbsp;</=
span><br class=3D"webkit-block-placeholder"></p><div style=3D"margin: 0px; f=
ont-stretch: normal; line-height: normal;" class=3D""><span style=3D"font-va=
riant-ligatures: no-common-ligatures" class=3D"">&nbsp; &nbsp; i =3D 0</span=
></div><div style=3D"margin: 0px; font-stretch: normal; line-height: normal;=
" class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" cla=
ss=3D"">&nbsp; &nbsp; stuff =3D gaussian(amp,delta,rt)</span></div><div styl=
e=3D"margin: 0px; font-stretch: normal; line-height: normal;" class=3D""><sp=
an style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; &=
nbsp; while i !=3D 20:</span></div><div style=3D"margin: 0px; font-stretch: n=
ormal; line-height: normal;" class=3D""><span style=3D"font-variant-ligature=
s: no-common-ligatures" class=3D"">&nbsp; &nbsp; &nbsp; &nbsp; print (stuff[=
i])</span></div><div style=3D"margin: 0px; font-stretch: normal; line-height=
: normal;" class=3D""><span style=3D"font-variant-ligatures: no-common-ligat=
ures" class=3D""><br class=3D""></span></div><div style=3D"margin: 0px; font=
-stretch: normal; line-height: normal;" class=3D""><span style=3D"font-varia=
nt-ligatures: no-common-ligatures" class=3D"">py2app test =E2=80=9Csetup_gau=
ssapp.py=E2=80=9D</span></div><div style=3D"margin: 0px; font-stretch: norma=
l; line-height: normal;" class=3D""><span style=3D"font-variant-ligatures: n=
o-common-ligatures" class=3D""><br class=3D""></span></div><div style=3D"mar=
gin: 0px; font-stretch: normal; line-height: normal;" class=3D""><span style=
=3D"font-variant-ligatures: no-common-ligatures" class=3D""><div style=3D"ma=
rgin: 0px; font-stretch: normal; line-height: normal;" class=3D""><div style=
=3D"margin: 0px; font-stretch: normal; line-height: normal;" class=3D""><spa=
n style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">APP =3D [=
'gaussapp.py']</span></div><div style=3D"margin: 0px; font-stretch: normal; l=
ine-height: normal;" class=3D""><span style=3D"font-variant-ligatures: no-co=
mmon-ligatures" class=3D"">DATA_FILES =3D []</span></div><div style=3D"margi=
n: 0px; font-stretch: normal; line-height: normal;" class=3D""><span style=3D=
"font-variant-ligatures: no-common-ligatures" class=3D"">OPTIONS =3D {'argv_=
emulation': True, 'iconfile': 'Divine.icns'</span></div><div style=3D"margin=
: 0px; font-stretch: normal; line-height: normal;" class=3D""><span style=3D=
"font-variant-ligatures: no-common-ligatures" class=3D"">}</span></div><div s=
tyle=3D"margin: 0px; font-stretch: normal; line-height: normal;" class=3D"">=
<span style=3D"font-variant-ligatures: no-common-ligatures" class=3D"">setup=
(</span></div><div style=3D"margin: 0px; font-stretch: normal; line-height: n=
ormal;" class=3D""><span style=3D"font-variant-ligatures: no-common-ligature=
s" class=3D"">&nbsp; &nbsp; app=3DAPP,</span></div><div style=3D"margin: 0px=
; font-stretch: normal; line-height: normal;" class=3D""><span style=3D"font=
-variant-ligatures: no-common-ligatures" class=3D"">&nbsp; &nbsp; data_files=
=3DDATA_FILES,</span></div><div style=3D"margin: 0px; font-stretch: normal; l=
ine-height: normal;" class=3D""><span style=3D"font-variant-ligatures: no-co=
mmon-ligatures" class=3D"">&nbsp; &nbsp; options=3D{'py2app': OPTIONS},</spa=
n></div><div style=3D"margin: 0px; font-stretch: normal; line-height: normal=
;" class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" cl=
ass=3D"">&nbsp; &nbsp; setup_requires=3D['py2app'],</span></div><div style=3D=
"margin: 0px; font-stretch: normal; line-height: normal;" class=3D""><span s=
tyle=3D"font-variant-ligatures: no-common-ligatures" class=3D"">)</span></di=
v></div><div style=3D"margin: 0px; font-stretch: normal; line-height: normal=
;" class=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" cl=
ass=3D""><br class=3D""></span></div><div style=3D"margin: 0px; font-stretch=
: normal; line-height: normal;" class=3D""><span style=3D"font-variant-ligat=
ures: no-common-ligatures" class=3D""><br class=3D""></span></div></span></d=
iv><div style=3D"margin: 0px; font-stretch: normal; line-height: normal;" cl=
ass=3D""><span style=3D"font-variant-ligatures: no-common-ligatures" class=3D=
""><br class=3D""></span></div><div style=3D"margin: 0px; font-stretch: norm=
al; line-height: normal;" class=3D""><span style=3D"font-variant-ligatures: n=
o-common-ligatures" class=3D""><br class=3D""></span></div></span></div><spa=
n>_______________________________________________</span><br><span>Pythonmac-=
SIG maillist &nbsp;- &nbsp;[email protected]</span><br><span>https://=
mail.python.org/mailman/listinfo/pythonmac-sig</span><br><span>unsubscribe: h=
ttps://mail.python.org/mailman/options/Pythonmac-SIG</span><br></div></block=
quote></div></body></html>=

--Apple-Mail-7469CECB-17E3-4DB1-8361-883E65E7C282--

--===============0335114535816360728==
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

--===============0335114535816360728==--