[Pythonmac-SIG] Can't complete py2app build
Terry Acree
terryacree at icloud.com
Wed Sep 16 15:56:48 EDT 2020
Sorry to bother you but i can’t get py2app to complete. all packages up to date py2app 0.22.
error
raise ValueError("%r does not exist" % (pathname,))
ValueError: '/opt/anaconda3/lib/libpython3.7.dylib' does not exist
test module “gaussapp.py”
import math
def gaussian(amp, delta, rt):
if delta == 0:
delta = 0.0003
n, point, peak, time, y = 0, [], [], rt-delta/2, 0
while n != 20:
sn = ((rt-time)/(.15*delta))**2
y = amp*math.exp(- sn)
time = time + delta/19
point = [time, y]
n = n + 1
peak.append(point)
peak[0][1] = 0.0
peak[19][1] = 0.0
return peak
if __name__ == "__main__":
amp = 500000
delta = 0.002
rt = 7.0
i = 0
stuff = gaussian(amp,delta,rt)
while i != 20:
print (stuff[i])
py2app test “setup_gaussapp.py”
APP = ['gaussapp.py']
DATA_FILES = []
OPTIONS = {'argv_emulation': True, 'iconfile': 'Divine.icns'
}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20200916/d615f7ac/attachment.html>
More information about the Pythonmac-SIG
mailing list