Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Conversation

Tigran01
Copy link
Contributor

  • Add dynamic Homebrew prefix detection using 'brew --prefix'
  • Support both Apple Silicon (/opt/homebrew) and Intel (/usr/local) Macs
  • Check multiple library names and fallback locations
  • Graceful error handling for missing dependencies
  • Maintain backward compatibility with Linux/Ubuntu systems

Resolves OSMesa loading issues across different macOS configurations while preserving existing functionality on other platforms.

Fixes the following error:

{"error":"('Unable to load OpenGL library', "dlopen(OSMesa, 0x000A): tried: 'OSMesa' (no such file), '/System/Volumes/Preboot/Cryptexes/OSOSMesa' (no such file), '/Users/tigran/miniconda3/envs/animated_drawings/lib/python3.9/lib-dynload/../../OSMesa' (no such file), '/Users/tigran/miniconda3/envs/animated_drawings/bin/../lib/OSMesa' (no such file), '/usr/lib/OSMesa' (no such file, not in dyld cache), 'OSMesa' (no such file), '/usr/local/lib/OSMesa' (no such file), '/usr/lib/OSMesa' (no such file, not in dyld cache)", 'OSMesa', None)"}

- Add dynamic Homebrew prefix detection using 'brew --prefix'
- Support both Apple Silicon (/opt/homebrew) and Intel (/usr/local) Macs
- Check multiple library names and fallback locations
- Graceful error handling for missing dependencies
- Maintain backward compatibility with Linux/Ubuntu systems

Resolves OSMesa loading issues across different macOS configurations
while preserving existing functionality on other platforms.
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants