ALPSCore/ALPSCore-Python

Incompatibility with the latest alpscore

Opened this issue · 2 comments

"make test" does not succeed with the latest ALPSCore.
Typical errors are shown below.
Do you reproduce this problem?

make test
Running tests...
/opt/local/bin/ctest --force-new-ctest-process
Test project /Users/hiroshi/build/alpscore-python
Start 1: hdf5
1/3 Test #1: hdf5 .............................***Failed 0.80 sec
============================= test session starts ==============================
platform darwin -- Python 2.7.13, pytest-3.0.7, py-1.4.33, pluggy-0.4.0
rootdir: /Users/hiroshi, inifile:
collected 13 items

../../../ClionProjects/ALPSCore-Python/test/hdf5_test.py .....FFFFFFFF

=================================== FAILURES ===================================
_________________________________ test_complex _________________________________

oar = <alps.alps_c.pyhdf5_c.hdf5_archive_impl object at 0x10fff2470>

def test_complex(oar):
    oar["/cmplx"]=complex(1.5,2.25)
  check_scalar(oar, "/cmplx", complex, complex(1.5,2.25))

../../../ClionProjects/ALPSCore-Python/test/hdf5_test.py:111:


ar = <alps.alps_c.pyhdf5_c.hdf5_archive_impl object at 0x10fff2470>
name = '/cmplx', vtype = <type 'complex'>, expected_val = (1.5+2.25j)

def check_scalar(ar,name,vtype,expected_val):
    ext=ar.extent(name)
    assert len(ext)==1 #, ("Invalid extent length for scalar \"%s\"" % name)
    assert ext[0]==1 #, ("Invalid extent value for scalar \"%s\"" % name)
  x = ar[name]

E SystemError: NULL result without error in PyObject_Call

../../../ClionProjects/ALPSCore-Python/test/hdf5_test.py:22: SystemError

@shinaoka: I cannot reproduce it, using my platform linux2 -- Python 2.7.12, pytest-2.8.7, py-1.4.31, pluggy-0.3.1: all tests pass.

I will dig more. Do you have any hints as to since which ALPSCore commit it fails? Would you mind to roll back ALPSCore (maybe, all the way back to commit b3a4e4f4efb9203350284ff4799c14a43534d320) and try again, to see if it is indeed an ALPSCore problem?

Could you please also send/attach your CMakeCache.txt files from ALPSCore and ALPSCore-Python build dirs?

Thanks!

Thank you for the suggestion.
Actually, I got the same error with the old version of ALPSCore (b3a4e4f4efb9203350284ff4799c14a43534d320).
Do you get some insights from the CMakeCache files?

CMakeCache.txt for ALPSCore (commit b3a4e4f4efb9203350284ff4799c14a43534d320)
CMakeCache.txt

CMakeCache.txt for ALPSCore-Python.
CMakeCache.txt