[Pythonmac-SIG] Latest Py2app bug..
Ned Deily
nad at acm.org
Thu Oct 8 21:02:19 CEST 2009
In article
<277c20420910080947i564f41a2u2890e890767d54d8 at mail.gmail.com>,
"Luis A. Bastiao Silva" <luis.kop at gmail.com> wrote:
> Just to say that It happens also with me. Using Snow Leopard and python2.6.
>
> File
> "/Users/bastiao/Umit/svn/trunk/py2app-0.4.2-py2.6.egg/py2app/build_app.py",
> line 60, in copy_framework
> destfn = self.appbuilder.copy_framework(info, self.dest)
> File
> "/Users/bastiao/Umit/svn/trunk/py2app-0.4.2-py2.6.egg/py2app/build_app.py",
> line 891, in copy_framework
> self.copy_python_framework(info, dst)
> File
> "/Users/bastiao/Umit/svn/trunk/py2app-0.4.2-py2.6.egg/py2app/build_app.py",
> line 911, in copy_python_framework
> pydir = 'python%d.%d'%(info['version'])
> TypeError: %d format: a number is required, not str
> >
> /Users/bastiao/Umit/svn/trunk/py2app-0.4.2-py2.6.egg/py2app/build_app.py(911)c
> opy_python_framework()
> -> pydir = 'python%d.%d'%(info['version'])
> (Pdb)
>
>
> Solutions?
Looks like it was caused by a one-line patch that was just added to
py2app. Try reverting it by changing line 911 of
py2app-0.4.2-py2.6.egg/py2app/build_app.py from:
pydir = 'python%d.%d'%(info['version'])
back to:
pydir = 'python%d.%d'%(sys.version_info[:2])
--
Ned Deily,
nad at acm.org
More information about the Pythonmac-SIG
mailing list