unit test fails when building from git source #52

Closed
erg opened this Issue Sep 6, 2012 · 1 comment

Projects

None yet

2 participants

@erg
erg commented Sep 6, 2012
erg@ommegang ~/python/bottleneck $ [master*] make all
rm -rf bottleneck/src/*~ bottleneck/src/*.so bottleneck/src/*.c bottleneck/src/*.o bottleneck/src/*.html bottleneck/src/build bottleneck/src/../*.so
rm -rf bottleneck/src/func/32bit/*.c bottleneck/src/func/64bit/*.c
rm -rf bottleneck/src/move/32bit/*.c bottleneck/src/move/64bit/*.c
rm -rf bottleneck/src/func/32bit/*.pyx  bottleneck/src/func/64bit/*.pyx
rm -rf bottleneck/src/move/32bit/*.pyx  bottleneck/src/move/64bit/*.pyx
python -c "from bottleneck.src.makepyx import makepyx; makepyx()"
cython bottleneck/src/func/32bit/func.pyx
cython bottleneck/src/func/64bit/func.pyx
cython bottleneck/src/move/32bit/move.pyx
cython bottleneck/src/move/64bit/move.pyx
rm -rf bottleneck/src/../func.so
python bottleneck/src/func/setup.py build_ext --inplace
running build_ext
skipping 'bottleneck/src/func/64bit/func.c' Cython extension (up-to-date)
building 'func' extension
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/lib/python2.7/site-packages/numpy-1.6.2-py2.7-linux-x86_64.egg/numpy/core/include -I/usr/include/python2.7 -c bottleneck/src/func/64bit/func.c -o build/temp.linux-x86_64-2.7/bottleneck/src/func/64bit/func.o
gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu build/temp.linux-x86_64-2.7/bottleneck/src/func/64bit/func.o -L/usr/lib -lpython2.7 -o /home/erg/python/bottleneck/func.so
rm -rf bottleneck/src/../move.so
python bottleneck/src/move/setup.py build_ext --inplace
running build_ext
skipping 'bottleneck/src/move/64bit/move.c' Cython extension (up-to-date)
building 'move' extension
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/lib/python2.7/site-packages/numpy-1.6.2-py2.7-linux-x86_64.egg/numpy/core/include -I/usr/include/python2.7 -c bottleneck/src/move/64bit/move.c -o build/temp.linux-x86_64-2.7/bottleneck/src/move/64bit/move.o
gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu build/temp.linux-x86_64-2.7/bottleneck/src/move/64bit/move.o -L/usr/lib -lpython2.7 -o /home/erg/python/bottleneck/move.so
python -c "import bottleneck;bottleneck.test(extra_argv=['--processes=4'])"
Running unit tests for bottleneck
NumPy version 1.6.2
NumPy is installed in /usr/lib/python2.7/site-packages/numpy-1.6.2-py2.7-linux-x86_64.egg/numpy
Python version 2.7.3 (default, Apr 24 2012, 00:00:54) [GCC 4.7.0 20120414 (prerelease)]
nose version 1.1.2
.......................................nose.plugins.multiprocess: ERROR: Worker 2 error running test or returning results
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/plugins/multiprocess.py", line 688, in __runner
    test(result)
  File "/usr/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py", line 176, in __call__
    return self.run(*arg, **kw)
  File "/usr/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/plugins/multiprocess.py", line 784, in run
    test(orig)
  File "/usr/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py", line 176, in __call__
    return self.run(*arg, **kw)
  File "/usr/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/plugins/multiprocess.py", line 784, in run
    test(orig)
  File "/usr/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py", line 176, in __call__
    return self.run(*arg, **kw)
  File "/usr/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/plugins/multiprocess.py", line 767, in run
    self.tasks, test)
  File "/usr/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/plugins/multiprocess.py", line 511, in addtask
    testQueue.put((test_addr,arg), block=False)
  File "<string>", line 2, in put
  File "/usr/lib/python2.7/multiprocessing/managers.py", line 758, in _callmethod
    conn.send((self._id, methodname, args, kwds))
PicklingError: Can't pickle <built-in function nansum>: import of module func failed
....E...................................................
======================================================================
ERROR: Failure: PicklingError (Can't pickle <built-in function nansum>: import of module func failed)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/plugins/multiprocess.py", line 688, in __runner
    test(result)
  File "/usr/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py", line 176, in __call__
    return self.run(*arg, **kw)
  File "/usr/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/plugins/multiprocess.py", line 784, in run
    test(orig)
  File "/usr/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py", line 176, in __call__
    return self.run(*arg, **kw)
  File "/usr/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/plugins/multiprocess.py", line 784, in run
    test(orig)
  File "/usr/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py", line 176, in __call__
    return self.run(*arg, **kw)
  File "/usr/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/plugins/multiprocess.py", line 767, in run
    self.tasks, test)
  File "/usr/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/plugins/multiprocess.py", line 511, in addtask
    testQueue.put((test_addr,arg), block=False)
  File "<string>", line 2, in put
  File "/usr/lib/python2.7/multiprocessing/managers.py", line 758, in _callmethod
    conn.send((self._id, methodname, args, kwds))
PicklingError: Can't pickle <built-in function nansum>: import of module func failed

----------------------------------------------------------------------
Ran 95 tests in 9.141s

FAILED (errors=1)

erg@ommegang ~/python/bottleneck $ [master*] uname -a
Linux ommegang 3.5.3-1-ARCH #1 SMP PREEMPT Sun Aug 26 09:14:51 CEST 2012 x86_64 GNU/Linux
@kwgoodman
Owner

Thanks for the report. Keep those bugs coming!

@kwgoodman kwgoodman closed this in e464adb Sep 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment