Skip to content

Failing due to PyObject -> PyArrayObject #39

@dutra

Description

@dutra

Hello!

I am trying to install on my Linux machine with python setup.py install and it fails with the following message.

sphviewer/extensions/scenemodule.c: In function ‘get_float_array’:
sphviewer/extensions/scenemodule.c:79:58: error: passing argument 1 of ‘(python setup.py install * (*)(PyObject *, PyArray_Descr *, int,  int,  int,  PyObject *))*(PyArray_API + 552)’ from incompatible pointer type [-Wincompatible-pointer-types]
   79 |   PyArrayObject *cont_obj = PyArray_ContiguousFromObject(array_obj, NPY_FLOAT, 1, 3);
      |                                                          ^~~~~~~~~
      |                                                          |
      |                                                          PyArrayObject * {aka struct tagPyArrayObject_fields *}

Any help would be greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions