Giter Site home page Giter Site logo

Unable to install pyopengl-accelerate on py 3.12.3: `src/numpy_formathandler.pyx:22:42: 'Py_intptr_t' is not a type identifier` about pyopengl HOT 7 OPEN

sanjayankur31 avatar sanjayankur31 commented on September 14, 2024
Unable to install pyopengl-accelerate on py 3.12.3: `src/numpy_formathandler.pyx:22:42: 'Py_intptr_t' is not a type identifier`

from pyopengl.

Comments (7)

adonishong avatar adonishong commented on September 14, 2024 1

met same issue with python 3.9.16 and python 3.10.10 also under macOS Sonoma 14.5

from pyopengl.

totaam avatar totaam commented on September 14, 2024

FWIW: I don't need the numpy format handlers so I have used a brutal approach (ignore the fact that the patch is misnamed):
https://github.com/Xpra-org/xpra/blob/master/packaging/rpm/patches/pyopengl-py3.13-nonumpy.patch

from pyopengl.

sanjayankur31 avatar sanjayankur31 commented on September 14, 2024

Thanks @totaam : not sure if this will work on our CI, I'll take a look.

from pyopengl.

tomhaber avatar tomhaber commented on September 14, 2024

Same issue here with python 3.12.4 :|

from pyopengl.

WaleedFarooq51 avatar WaleedFarooq51 commented on September 14, 2024

Has anybody found the solution of this problem? I am facing the same issue with Python version 3.12.3

from pyopengl.

MoralCode avatar MoralCode commented on September 14, 2024

havent found the problem yet but i found a reference to Py_intptr_t in the numpy C ABI https://numpy.org/doc/stable/reference/c-api/dtype.html#c.npy_intp

Before NumPy 2.0, this was the same as Py_intptr_t. While a better match, this did not match actual usage in practice. On the Python side, we still support np.dtype('p') to fetch a dtype compatible with storing pointers, while n is the correct character for the ssize_t.

from pyopengl.

MoralCode avatar MoralCode commented on September 14, 2024

this looks like it was fixed in 3.1.8, specifically commit f897b0e

https://github.com/mcfletch/pyopengl/releases/tag/release-3.1.8

seems like its just not released to pypi

Likely solutions until its released on pypi: install from git tag release-3.1.8 or install from the tarball in the release linked above

from pyopengl.

Related Issues (20)

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.