Stefan Richthofer
Stefan Richthofer
It looks like you hit the limits of current numpy support. Actually it's good that you found such a concise workaround. I wasn't aware of this specific limit but note...
I just investigated newer NumPy versions. 14.1 and 14.2 result in the same error as 14.0 above. NumPy 14.3, 14.4, 14.5 give this new error: ``` ('1.8.0_171', 'Oracle Corporation', ('OpenJDK...
So, I located the first type of failure to NumPy's source file ``multiarray/ctors.c``. Specifically in the function ``PyArray_NewFromDescr_int`` the line ``res = PyObject_Call(func, args, NULL);`` fails, i.e. returns zero, triggering...
Tracked it down a bit further: It fails in the method ``MaskedArray._update_from`` in ``ma/core.py``. Specifically the line ``self.__dict__.update(_dict)`` fails. Here ``_dict`` contains a bunch of updates for attributes that shall...
Note that the CPython output is as one would naively expect: Instead of ```` we get ```` and instead of ```` we get ``{}``. So somehow JyNI, or maybe Jython...
The "dict" object of type ```` is an instance of ``PyDataDescriptor``, see ``PyDataDescriptor.java``. ``type$1`` is a generated type (as I already expected actually). ``PyDataDescriptor`` is abstract and Jython generates concrete...
Quick experiment: Inserted this code snippet into ``PyCPeer.__findattr_ex__`` right before the return statement: ``` if (er != null && er.implementsDescrGet() && er.isDataDescr()){ er = er.__get__(this, objtype); } ``` Now the...
The recently released NumPy 1.15.0 gives the following error on import: ``` /usr/lib/jvm/java-8-openjdk-amd64/bin/java: symbol lookup error: /data/workspace/linux/numpy/1.15.0/numpy/core/multiarray.so: undefined symbol: PyStructSequence_InitType ``` However, I suppose this is easier to fix. Adding...
Thanks for this work. I added two comments which I am not sure if they are issues. Maybe it's just questions or *potential* concerns. With these resolved I'll gladly merge...
What do you think about my suggestion in https://github.com/Stewori/JyNI/pull/33#discussion_r214400955? That would avoid multiple targets and https://www.gnu.org/software/make/manual/html_node/Multiple-Rules.html leaves me a bit puzzled about whether duplicate target is really the right thing....