Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with the latest alpscore #11

Open
shinaoka opened this issue Jul 17, 2017 · 2 comments
Open

Incompatibility with the latest alpscore #11

shinaoka opened this issue Jul 17, 2017 · 2 comments

Comments

@shinaoka
Copy link
Contributor

"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

@galexv
Copy link
Contributor

galexv commented Jul 21, 2017

@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!

@shinaoka
Copy link
Contributor Author

shinaoka commented Aug 7, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants