Re: PyNGL/PyNIO on Mac OSX libc++ error?

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Apr 23 2013 - 16:13:54 MDT

Let me check on the version of gcc when I get home.

I had a typo in my pynglex correction.

It should be:

#!/usr/bin/env python

--Mary

On Apr 23, 2013, at 4:08 PM, Madeline Miller wrote:

> Hi Mary,
>
> Is there a way to modify a path variable in one of the PyNGL/PyNIO files to point to another installed gcc version to run those functions, or does my version of Python need to be re-compiled with the newer gcc to make this work?
>
> Modifying that line in the pynglex file did not fix the problem; could this be related to the gcc issue as well?
>
> Thanks,
>
> Madeline
>
>
> On Tue, Apr 23, 2013 at 2:00 PM, Mary Haley <haley@ucar.edu> wrote:
> Hi Madeline,
>
> I believe this issue has to do with the version of gcc that PyNGL was compiled with.
>
> This was on my home Mac, so I can't verify which gcc this was built with. I *think* it was 4.5.0,
> which will certainly be an issue trying to link against your 4.2.1 version.
>
> Do you have any other versions of gcc that you can point to on your system?
>
> The pynglex problem is a bug on my part.
>
> You should be able to edit this file directly and change the top line to read:
>
> !#/usr/bin/env python
>
>
> --Mary
>
> On Apr 23, 2013, at 10:46 AM, Madeline Miller wrote:
>
> > Hi,
> >
> > I am having some issues getting PyNGL and PyNIO installed.
> > I am using the most recent pre-compiled binaries for Mac OS X, Python 2.7 and NumPy 1.6.
> >
> > PyNIO-1.4.1.macos-10.6-x86_64-py271-numpy160-nodap.tar.gz
> > PyNGL-1.4.0.macos-10.6-x86_64-py271-numpy160.tar.gz
> >
> >
> > These are the details of my operating system/other installations:
> >
> > Mac OSX 10.6.8 (Snow Leopard)
> >
> > Python 2.7.3 installed with MacPorts, using GCC 4.2.1
> >
> > file `which python` returns:
> > /opt/local/bin/python: Mach-O 64-bit executable x86_64
> >
> > After installing PyNIO and PyNGL in the python directories, I start python and try to import Nio and Ngl:
> >
> >
> > >>> import Nio
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in <module>
> > File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyNIO/Nio.py", line 63, in <module>
> > from nio import *
> > ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyNIO/nio.so, 2): Symbol not found: ___emutls_get_address
> > Referenced from: /usr/local/lib/libstdc++.6.dylib
> > Expected in: /usr/local/lib/libgcc_s.1.dylib
> > in /usr/local/lib/libstdc++.6.dylib
> >
> > Does anyone know what might be the issue or how to fix this?
> >
> >
> > There are no errors for import Ngl, but
> >
> > >>> pynglex -l
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in <module>
> > NameError: name 'pynglex' is not defined
> >
> > I put the binaries pynglex and pynglex 2.7 in the folder:
> > $PYTHONPREFIX/bin
> >
> > Should they go somewhere else?
> >
> > Thanks,
> >
> > Madeline
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > pyngl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
>
>

_______________________________________________
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Tue Apr 23 16:14:01 2013

This archive was generated by hypermail 2.1.8 : Fri May 03 2013 - 07:37:28 MDT