[wingide-users] Having trouble installing package on OSX...

Anthony Palomba apalomba at austin.rr.com
Tue Jan 31 12:42:33 MST 2012


Well there is no other installer available at python.org...

Python 2.7.2 Mac OS X 64-bit/32-bit x86-64/i386
Installer<http://python.org/ftp/python/2.7.2/python-2.7.2-macosx10.6.dmg>(for
Mac OS X 10.6 and 10.7)
I am running a MacBook Pro (10.7)...

After installing the above installer and Pyrex, I get the following error...

Found darwin (OS X) platform
running install
running build
running build_ext
building 'pypm' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot
/Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g
-O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-c pypm.c -o build/temp.macosx-10.6-intel-2.7/pypm.o
unable to execute gcc-4.2: No such file or directory

This is driving me nuts!  The script I am running is below...
Maybe this an issue with Pyrex?



from distutils.core import setup
from distutils.extension import Extension
from Pyrex.Distutils import build_ext
import sys

name = "pyPortMidi"
description="Python Wrappings for PortMidi",
version="0.0.3"
cmdclass = {'build_ext': build_ext}
scripts = ['test.py','README.TXT']

    setup(
        name = name,
        description=description,
        version=version,
        url = url,
        long_description = long_description,
        author = author,
        author_email = author_email,
        cmdclass = cmdclass,
        scripts = scripts,
        ext_modules=[
        Extension("pypm", ["pypm.pyx"],
                  library_dirs=["./OSX"],
                  libraries = ["portmidi", "porttime"],
                  extra_link_args=["-framework", "CoreFoundation",
                                   "-framework", "CoreMIDI",
                                   "-framework", "CoreAudio"])
        ]
    )






On Sat, Jan 28, 2012 at 12:06 PM, Alexander Kain <lxkain at gmail.com> wrote:

> I suspect this is because you have python-*-10.6*.dmg installed on a 10.7
> system. Most likely, if you compile python from source this problem will go
> away.
>
> Which brings up another point: Why don't the python folks make a proper
> 10.7 python binary available?
>
> > On Jan 28, 2012, at 6:55 AM, Justin C. Walker wrote:
> >
> >>
> >> On Jan 27, 2012, at 10:32 , Wing IDE Support wrote:
> >>
> >>> On 1/27/12 12:46 PM, Anthony Palomba wrote:
> >>>> WingIDE gives me the following output. Is there something I am
> missing?
> >>>>
> >>>> Found darwin (OS X) platform
> >>>> running install
> >>>> running build
> >>>> running build_ext
> >>>> building 'pypm' extension
> >>>> gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -arch ppc -arch i386
> >>>> -g -O2 -DNDEBUG -g -O3
> >>>> -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
> -c
> >>>> pypm.c -o build/temp.macosx-10.3-fat-2.7/pypm.o
> >>>> unable to execute gcc-4.0: No such file or directory
> >>>
> >>> My guess is that either you don't have the Apple developer SDK
> installed or that your PATH in Wing than it is in a Terminal.  Can you run
> the script from a Terminal window?
> >>
> >> I'm no expert, so this is just a question:
> >>
> >> Isn't it kind of unusual to have such a specific compiler named
> (without having SDKs specified, at least)?
> >>
> >> Is the name "gcc-4.0" required by the package or supplied by Wing?
> >>
> >> Justin
> >>
> >> --
> >> Justin C. Walker, Curmudgeon at Large
> >> Institute for the Absorption of Federal Funds
> >> -----------
> >> My wife 'n kids 'n dogs are gone,
> >> I can't get Jesus on the phone,
> >> But Ol' Milwaukee's Best is my best friend.
> >> -----------
> >>
> >>
> >> _________________________________________________
> >> Wing IDE users list
> >> http://wingware.com/lists/wingide
> >
>
> _________________________________________________
> Wing IDE users list
> http://wingware.com/lists/wingide
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/wingide-users/attachments/20120131/f6701c8c/attachment.html


More information about the wingide-users mailing list