ctypeslib.py Error when importing tidas from python2.7
Opened this issue · 1 comments
Installed tidas from github with autoconf, mpi-disabled and default prefix
Running Ubuntu 16.04, python 2.7.12, numpy 1.12.0
When trying to import tidas from python2.7:
Traceback (most recent call last):
File "./demo_telescope.py", line 29, in
import tidas
File "/usr/local/lib/python2.7/dist-packages/tidas/init.py", line 17, in
from .ctidas import (
File "/usr/local/lib/python2.7/dist-packages/tidas/ctidas.py", line 153, in
npu8 = wrapped_ndptr(dtype=np.uint8, ndim=1, flags="C_CONTIGUOUS")
File "/usr/local/lib/python2.7/dist-packages/tidas/ctidas.py", line 146, in wrapped_ndptr
base = npc.ndpointer(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/numpy/ctypeslib.py", line 288, in ndpointer
num = _num_fromflags(flags)
File "/usr/local/lib/python2.7/dist-packages/numpy/ctypeslib.py", line 163, in _num_fromflags
num += flagdict[val]
KeyError: u''
Ok, I have done minimal testing with py27, so this may be a python-3-ism that I accidentally included, thanks for the report, I can test locally.