pyopengl icon indicating copy to clipboard operation
pyopengl copied to clipboard

Python, PyOpenGL and macOS BigSur

Open 0r31 opened this issue 3 years ago • 0 comments

Hi @mcfletch ,

According to the macOS BigSur release note :

New in macOS Big Sur 11.0.1, the system ships with a built-in dynamic linker cache of all system-provided libraries. As part of this change, copies of dynamic libraries are no longer present on the filesystem. Code that attempts to check for dynamic library presence by looking for a file at a path or enumerating a directory will fail. Instead, check for library presence by attempting to dlopen() the path, which will correctly check for the library in the cache. (62986286)

This is handled by python devs (all the stuff regarding BigSur support is listed here). Unfortunately, it seems it will be supported for python 3.8+.

At the PyOpenGL level, this line won't work anymore if using python 3.8-.

I've made a quick and dirty fix for my needs.

Are you interested in a more generic fix? If so, i can provide you a PR.

Regards, Orel

0r31 avatar Nov 19 '20 10:11 0r31