Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#10 python 2.7 Symbol not found in setsc.so

closed
guppy (6)
5
2010-08-17
2010-08-17
Richard West
No

bash$ python -c 'import guppy; import guppy.sets'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/guppy/sets/__init__.py", line 3, in <module>
from setsc import BitSet # base bitset type
ImportError: dlopen(/usr/local/Cellar/python/2.7/lib/python2.7/site-packages/guppy/sets/setsc.so, 2): Symbol not found: __PyLong_AsScaledDouble
Referenced from: /usr/local/Cellar/python/2.7/lib/python2.7/site-packages/guppy/sets/setsc.so
Expected in: dynamic lookup

This is using
* Mac OS 10.6 Snow Leopard
* Python 2.7 from Homebrew ( brew install python)
* Guppy installed via pip (although easy_install has the same result)

The installation log is here:

basht$ pip install guppy
Downloading/unpacking guppy
Downloading guppy-0.1.9.tar.gz (494Kb): 494Kb downloaded
Running setup.py egg_info for package guppy

warning: no files found matching 'MANIFEST'
Installing collected packages: guppy
Running setup.py install for guppy
building 'guppy.sets.setsc' extension
/usr/bin/cc -fno-strict-aliasing -O3 -march=core2 -w -pipe -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -I/usr/local/Cellar/python/2.7/include/python2.7 -c src/sets/sets.c -o build/temp.macosx-10.4-x86_64-2.7/src/sets/sets.o
/usr/bin/cc -fno-strict-aliasing -O3 -march=core2 -w -pipe -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -I/usr/local/Cellar/python/2.7/include/python2.7 -c src/sets/bitset.c -o build/temp.macosx-10.4-x86_64-2.7/src/sets/bitset.o
/usr/bin/cc -fno-strict-aliasing -O3 -march=core2 -w -pipe -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -I/usr/local/Cellar/python/2.7/include/python2.7 -c src/sets/nodeset.c -o build/temp.macosx-10.4-x86_64-2.7/src/sets/nodeset.o
/usr/bin/cc -L/usr/local/Cellar/readline/6.0/lib -bundle -undefined dynamic_lookup -arch x86_64 build/temp.macosx-10.4-x86_64-2.7/src/sets/sets.o build/temp.macosx-10.4-x86_64-2.7/src/sets/bitset.o build/temp.macosx-10.4-x86_64-2.7/src/sets/nodeset.o -o build/lib.macosx-10.4-x86_64-2.7/guppy/sets/setsc.so
building 'guppy.heapy.heapyc' extension
/usr/bin/cc -fno-strict-aliasing -O3 -march=core2 -w -pipe -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -I/usr/local/Cellar/python/2.7/include/python2.7 -c src/heapy/heapyc.c -o build/temp.macosx-10.4-x86_64-2.7/src/heapy/heapyc.o
/usr/bin/cc -fno-strict-aliasing -O3 -march=core2 -w -pipe -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -I/usr/local/Cellar/python/2.7/include/python2.7 -c src/heapy/stdtypes.c -o build/temp.macosx-10.4-x86_64-2.7/src/heapy/stdtypes.o
/usr/bin/cc -L/usr/local/Cellar/readline/6.0/lib -bundle -undefined dynamic_lookup -arch x86_64 build/temp.macosx-10.4-x86_64-2.7/src/heapy/heapyc.o build/temp.macosx-10.4-x86_64-2.7/src/heapy/stdtypes.o -o build/lib.macosx-10.4-x86_64-2.7/guppy/heapy/heapyc.so

warning: no files found matching 'MANIFEST'
Successfully installed guppy
Cleaning up...

Any suggestions?
Thanks.

Discussion

  • Richard West
    Richard West
    2010-08-17

    • status: open --> closed
     
  • Richard West
    Richard West
    2010-08-17

    This seems to have been fixed in the trunk - i.e. getting pip to install from the svn server instead of the 0.1.9 release seemed to fix it:

    bash$ pip install https://guppy-pe.svn.sourceforge.net/svnroot/guppy-pe/trunk/guppy
    Downloading/unpacking https://guppy-pe.svn.sourceforge.net/svnroot/guppy-pe/trunk/guppy
    Downloading guppy
    Checking out svn repository https://guppy-pe.svn.sourceforge.net/svnroot/guppy-pe/trunk/guppy to /var/folders/Hh/Hh3mlKHOFAOewsPBGQy59U+++TM/-Tmp-/pip-VldRzv-build
    Running setup.py egg_info for package from https://guppy-pe.svn.sourceforge.net/svnroot/guppy-pe/trunk/guppy

    Installing collected packages: guppy
    Running setup.py install for guppy
    building 'guppy.sets.setsc' extension
    /usr/bin/cc -fno-strict-aliasing -O3 -march=core2 -w -pipe -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -I/usr/local/Cellar/python/2.7/include/python2.7 -c src/sets/sets.c -o build/temp.macosx-10.4-x86_64-2.7/src/sets/sets.o
    /usr/bin/cc -fno-strict-aliasing -O3 -march=core2 -w -pipe -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -I/usr/local/Cellar/python/2.7/include/python2.7 -c src/sets/bitset.c -o build/temp.macosx-10.4-x86_64-2.7/src/sets/bitset.o
    /usr/bin/cc -fno-strict-aliasing -O3 -march=core2 -w -pipe -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -I/usr/local/Cellar/python/2.7/include/python2.7 -c src/sets/nodeset.c -o build/temp.macosx-10.4-x86_64-2.7/src/sets/nodeset.o
    /usr/bin/cc -L/usr/local/Cellar/readline/6.0/lib -bundle -undefined dynamic_lookup -arch x86_64 build/temp.macosx-10.4-x86_64-2.7/src/sets/sets.o build/temp.macosx-10.4-x86_64-2.7/src/sets/bitset.o build/temp.macosx-10.4-x86_64-2.7/src/sets/nodeset.o -o build/lib.macosx-10.4-x86_64-2.7/guppy/sets/setsc.so
    building 'guppy.heapy.heapyc' extension
    /usr/bin/cc -fno-strict-aliasing -O3 -march=core2 -w -pipe -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -I/usr/local/Cellar/python/2.7/include/python2.7 -c src/heapy/heapyc.c -o build/temp.macosx-10.4-x86_64-2.7/src/heapy/heapyc.o
    /usr/bin/cc -fno-strict-aliasing -O3 -march=core2 -w -pipe -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -I/usr/local/Cellar/python/2.7/include/python2.7 -c src/heapy/stdtypes.c -o build/temp.macosx-10.4-x86_64-2.7/src/heapy/stdtypes.o
    /usr/bin/cc -L/usr/local/Cellar/readline/6.0/lib -bundle -undefined dynamic_lookup -arch x86_64 build/temp.macosx-10.4-x86_64-2.7/src/heapy/heapyc.o build/temp.macosx-10.4-x86_64-2.7/src/heapy/stdtypes.o -o build/lib.macosx-10.4-x86_64-2.7/guppy/heapy/heapyc.so

    Successfully installed guppy
    Cleaning up...
    bash$ python -c 'import guppy; import guppy.sets'
    bash$