NeuroTechX / NeuroTechX/EEG-ExPy

ImportError: Unable to load OpenGL library

Open
#160 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug EEG-ExPy platform: macos
Dominant language
Python
Stars
575
Forks
153
Avg merge
6h 44m
Merged PRs (30d)
3

Description

Computer: MacOS Monterey
Python Version: 3.7.11
Jupyter Notebook Version: 6.3.0
Brain Interface Used: Cyton+Daisy

I am trying to Test if the Python library installed correctly by using the code:

from eegnb import generate_save_fn
from eegnb.devices.eeg import EEG
from eegnb.experiments.visual_n170 import n170

I get the following ImportError. Any advice on how to fix this?

ImportError: ('Unable to load OpenGL library', "dlopen(OpenGL, 0x000A): tried: '/opt/anaconda3/envs/eeg-notebooks/lib/OpenGL' (no such file), '/opt/anaconda3/envs/eeg-notebooks/lib/OpenGL' (no such file), '/opt/anaconda3/envs/eeg-notebooks/lib/python3.7/lib-dynload/../../OpenGL' (no such file), '/opt/anaconda3/envs/eeg-notebooks/lib/OpenGL' (no such file), '/opt/anaconda3/envs/eeg-notebooks/bin/../lib/OpenGL' (no such file), 'OpenGL' (no such file), '/usr/local/lib/OpenGL' (no such file), '/usr/lib/OpenGL' (no such file), '/Users/priyanshiporwal/eeg-notebooks/OpenGL' (no such file), '/usr/local/lib/OpenGL' (no such file), '/usr/lib/OpenGL' (no such file)", 'OpenGL', None)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the three reported imports in the macOS Monterey, Python 3.7.11, and Jupyter Notebook 6.3.0 environment, then identify which import triggers the OpenGL loader. Done means the imports complete without the reported ImportError and the required environment condition is recorded.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, macos, python
Domain
computer-graphics, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.