From: Steve S. <st...@sp...> - 2010-09-09 09:15:54
|
Possible clue... on my PPC running Leopard (10.5.8) I see: $ otool -vT /usr/lib/libSystem.B.dylib | grep memcpy single module ___memcpy_chk single module _memcpy single module _wmemcpy on my intel, running Snow Leopard $ otool -vT /usr/lib/libSystem.B.dylib /usr/lib/libSystem.B.dylib: Table of contents (0 entries) module name symbol name So... that's interesting. Having said that I installed v5.32/py2.7 and it works correctly on my Snow Leopard intel system... so the numpy that's installed with visual doesn't seem to link to the missing symbol. Gary... did anything else get installed besides visual/py2.7 ? Maybe a different version of numpy? This might also be useful: IntelMini:~ steve$ python -v -c 'import numpy' 2>&1 | grep multiarray dlopen("/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so", 2); import numpy.core.multiarray # dynamically loaded from /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so # cleanup[2] numpy.core.multiarray IntelMini:~ steve$ -steve On Sep 8, 2010, at 7:41 PM, Bruce Sherwood wrote: > It's not a problem of not finding packages, since when you import > numpy you find numpy. The problem is that numpy can't find a resource > it needs. > > I don't know what could be set up oddly on these Macs, but the trace > claims that ___memcpy_chk should be found in > /usr/lib/libSystem.B.dylib. So the first thing to do is to verify that > indeed this file is missing (or damaged?). Is it? > > Note that to see /usr/lib in the Finder you need to use the Finder > menu Go > Go to Folder. > > Bruce Sherwood > > On Wed, Sep 8, 2010 at 4:51 PM, Gary Pajer <gar...@gm...> wrote: >> Our IT dept. just installed vpython on the 'clean' Macs in our lab. AFAIK, >> they followed the instructions on vpython.org. >> >> Unfortunately, python can't find packages. numpy and visual are installed >> in the "Frameworks" site-packages directory, but they are not found on >> import. >> >> One problem is that PATH is not set properly. which python ==> >> /usr/bin/python >> >> But if I launch python using the entire path to the executable, then import >> numpy, I get the attached traceback. >> >> Anyone know what the missing link is? >> >> thanks, >> gary >> >> --------------------------------------------------------------------------------- >> >>>>> import numpy >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File "/Library/Frameworks/Python. >> framework/Versions/2.7/lib/python2.7/site-packages/numpy/__init__.py", line >> 136, in <module> >> import add_newdocs >> File >> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/add_newdocs.py", >> line 9, in <module> >> from numpy.lib import add_newdoc >> File >> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/__init__.py", >> line 4, in <module> >> from type_check import * >> File >> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/type_check.py", >> line 8, in <module> >> import numpy.core.numeric as _nx >> File >> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/__init__.py", >> line 5, in <module> >> import multiarray >> ImportError: >> dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so, >> 2): Symbol not found: ___memcpy_chk >> Referenced from: >> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so >> Expected in: /usr/lib/libSystem.B.dylib >> >> >> > > ------------------------------------------------------------------------------ > This SF.net Dev2Dev email is sponsored by: > > Show off your parallel programming skills. > Enter the Intel(R) Threading Challenge 2010. > http://p.sf.net/sfu/intel-thread-sfd > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |