GithubHelp home page GithubHelp logo

pyhd's Issues

Legacy user dtypes using `NPY_ITEM_IS_POINTER` or `NPY_ITEM_REFCOUNT` are unsupported

Hello, I believe that there is a bug. I contacted the numpy developers, but would there be any chance of seeing this fixed?

Thanks!

Andrea


Sebastian Berg [email protected] via python.org
to scipy-dev

On Sat, 2021-02-13 at 16:24 -0600, Andrea Cortis wrote:

I did try to port PyHD to python3 with 2to3
There are 38 warnings upon compiling (macos Catalina), but then when
I try
to run I get

----> 1 from hyperdual import numpy_hyperdual

ValueError: Failed to register dtype for <class
'hyperdual.hyperdual'>:
Legacy user dtypes using NPY_ITEM_IS_POINTER or NPY_ITEM_REFCOUNT
areunsupported. It is possible to create such a dtype only if it is
a
structured dtype with names and fields hardcoded at registration
time.
Please contact the NumPy developers if this used to work but now
fails.

Sounds like a simple bug, the code fails to properly initialize the
descriptor flags, which likely just means zero'ing them out.
(NumPy was really designed with being passed a static version of the
struct, although nothing wrong with the design here โ€“ it just will
never be cleaned up).

  • Sebastian

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.