Package Details: python-opengl-accelerate 3.1.7-2

Git Clone URL: https://aur.archlinux.org/python-opengl-accelerate.git (read-only, click to copy)
Package Base: python-opengl-accelerate
Description: This is the Cython-coded accelerator module for PyOpenGL 3.x
Upstream URL: None
Licenses: BSD
Submitter: tobac
Maintainer: tobac
Last Packager: tobac
Votes: 2
Popularity: 0.000000
First Submitted: 2017-10-11 11:11 (UTC)
Last Updated: 2023-07-31 07:18 (UTC)

Latest Comments

1 2 Next › Last »

ajschadler12 commented on 2024-09-10 19:48 (UTC)

Might need to add Cython as makedeps

* Getting build dependencies for wheel...
/usr/lib/python3.12/site-packages/setuptools/config/expand.py:133: SetuptoolsWarning: File '/home/ajschadler12/.cache/paru/clone/python-opengl-accelerate/src/PyOpenGL-accelerate-3.1.7/readme.txt' cannot be found
  return '\n'.join(
running egg_info
writing PyOpenGL_accelerate.egg-info/PKG-INFO
writing dependency_links to PyOpenGL_accelerate.egg-info/dependency_links.txt
writing top-level names to PyOpenGL_accelerate.egg-info/top_level.txt
reading manifest file 'PyOpenGL_accelerate.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'PyOpenGL_accelerate.egg-info/SOURCES.txt'

ERROR Missing dependencies:
        Cython>=0.28

tobac commented on 2024-07-25 05:08 (UTC)

@brauliobo: This is a compatibility issue with Python 3.12.3. Upstream is informed: https://github.com/mcfletch/pyopengl/issues/118

brauliobo commented on 2024-07-19 21:37 (UTC)

got another error:

Error compiling Cython file:
------------------------------------------------------------
...
    cdef int PyArray_CheckScalar( object )
    int NPY_ARRAY_CARRAY
    int NPY_ARRAY_FORCECAST
    int PyArray_ISCARRAY( np.ndarray instance )
    int PyArray_ISCARRAY_RO( np.ndarray instance )
    cdef np.ndarray PyArray_Zeros(int nd, np.Py_intptr_t* dims, np.dtype, int fortran)
                                          ^
------------------------------------------------------------

src/numpy_formathandler.pyx:22:42: 'Py_intptr_t' is not a type identifier
Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in <module>
    main()
  File "/usr/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 357, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 271, in build_wheel
    return _build_backend().build_wheel(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 410, in build_wheel
    return self._build_with_temp_dir(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 395, in _build_with_temp_dir
    self.run_setup()
  File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
    exec(code, locals())
  File "<string>", line 113, in <module>

brauliobo commented on 2024-07-19 21:36 (UTC)

it should require cython as it can't compile without it

thechild commented on 2024-05-18 21:49 (UTC)

Hi, I'm getting this error:

/usr/lib/python3.12/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   17 | #warning "Using deprecated NumPy API, disable it with " \
      |  ^~~~~~~
src/numpy_formathandler.c: In function ‘__pyx_f_17OpenGL_accelerate_19numpy_formathandler_12NumpyHandler_c_asArray’:
src/numpy_formathandler.c:6434:43: error: passing argument 1 of ‘(int (*)(PyArrayObject *, PyObject *))*(PyArray_API + 832)’ from incompatible pointer type [-Wincompatible-pointer-types]
 6434 |     __pyx_v_res = PyArray_FillWithScalar(((PyObject *)__pyx_v_working), __pyx_v_instance);
      |                                          ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           |
      |                                           PyObject * {aka struct _object *}
src/numpy_formathandler.c:6434:43: note: expected ‘PyArrayObject *’ {aka ‘struct tagPyArrayObject_fields *’} but argument is of type ‘PyObject *’ {aka ‘struct _object *’}
src/numpy_formathandler.c: In function ‘__pyx_pymod_exec_numpy_formathandler’:
src/numpy_formathandler.c:9826:3: error: returning ‘void *’ from a function with return type ‘int’ makes integer from pointer without a cast [-Wint-conversion]
 9826 |   import_array();
      |   ^~~~~~~~~~~~

kousu commented on 2023-12-04 10:17 (UTC)

Hi! Thanks for taking the time to maintain this :)

I'm getting

ERROR Missing dependencies:
        Cython>=0.28

when building this.

Adding cython to makedepends fixes it for me.

eclairevoyant commented on 2023-07-31 15:15 (UTC)

Thanks for taking a look, but the build still needs python-setuptools as well. I would suggest always building in a clean chroot as per https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot (using devtools) to catch any necessary deps.

tobac commented on 2023-07-31 07:18 (UTC) (edited on 2023-07-31 07:20 (UTC) by tobac)

@eclairevoiyant thanks for the hint, implemented as suggested in 3.1.7-2.

eclairevoyant commented on 2023-07-31 03:29 (UTC)

This doesn't work as is, because python-setuptools is missing in makedeps. Also, I suggest actually using the new standard as per https://wiki.archlinux.org/title/Python_package_guidelines#Standards_based_(PEP_517) since python-setuptools is basically dead.

kinu commented on 2023-06-20 07:26 (UTC) (edited on 2023-06-20 07:27 (UTC) by kinu)

Cannot compile. Having this error


src/wrapper.c: In function ‘__Pyx_AddTraceback’:
src/wrapper.c:438:62: error: invalid use of incomplete typedef ‘PyFrameObject’ {aka ‘struct _frame’}
438 |   #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
|                                                              ^~
src/wrapper.c:28232:5: note: in expansion of macro ‘__Pyx_PyFrame_SetLineNumber’
28232 |     __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
|     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
==> ERROR: A failure occurred in build().
Aborting...
-> error making: python-opengl-accelerate-exit status 4
-> Failed to install the following packages. Manual intervention is required:
python-opengl-accelerate - exit status 4