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

Failing due to PyObject -> PyArrayObject #39

Open
dutra opened this issue Jul 22, 2024 · 0 comments
Open

Failing due to PyObject -> PyArrayObject #39

dutra opened this issue Jul 22, 2024 · 0 comments

Comments

@dutra
Copy link

dutra commented Jul 22, 2024

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!

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

No branches or pull requests

1 participant