Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing eeg notebooks on Mac M1 #200

Open
oreHGA opened this issue Jul 28, 2022 · 1 comment
Open

Installing eeg notebooks on Mac M1 #200

oreHGA opened this issue Jul 28, 2022 · 1 comment
Assignees

Comments

@oreHGA
Copy link
Collaborator

oreHGA commented Jul 28, 2022

Hey folks, wanted to use this thread to keep track of the changes to support installation of eeg-notebooks on Mac M1.

(I initially tried using poetry for this based on #190 but it added another layer of complexity w the errors so I decided to get it working with manual pip first)

I was able to tweak the requirements.txt enough to get installation to complete, but I get this error when trying to run eegnb runexp -ip for an experiment

  File "/Users/oreogundipe/miniconda3/envs/eeg-notebooks/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/Users/oreogundipe/lab/eeg-notebooks/eegnb/cli/__main__.py", line 9, in <module>
    from .introprompt import intro_prompt
  File "/Users/oreogundipe/lab/eeg-notebooks/eegnb/cli/introprompt.py", line 7, in <module>
    from .utils import run_experiment, get_exp_desc, experiments
  File "/Users/oreogundipe/lab/eeg-notebooks/eegnb/cli/utils.py", line 15, in <module>
    from eegnb.experiments.auditory_oddball import aob, diaconescu
  File "/Users/oreogundipe/lab/eeg-notebooks/eegnb/experiments/auditory_oddball/aob.py", line 3, in <module>
    from psychopy import visual, core, event, sound
  File "/Users/oreogundipe/miniconda3/envs/eeg-notebooks/lib/python3.8/site-packages/psychopy/sound/__init__.py", line 99, in <module>
    raise exceptions.DependencyError(
psychopy.exceptions.DependencyError: No sound libs could be loaded. Tried: ['PTB']
Check whether the necessary sound libs are installed
0.0019 	WARNING 	PTB audio lib was requested but not loaded: psychtoolbox audio failed to import

To get things running on my mac, I'm using latest beta release for psychtoolbox 3.0.18.10 (https://github.com/Psychtoolbox-3/Psychtoolbox-3/releases)

All roads point towards psychtoolbox/ psychopy as area to try tweaking

@JohnGriffiths do you have any pointers on how to get extra sound libs installed? I'll keep this thread updated if anything gives

@oreHGA oreHGA self-assigned this Jul 28, 2022
@JohnGriffiths
Copy link
Collaborator

Is psychtoolbox installed? Looks like it isn't finding it ?

More generally, if this failure is going to occur it should happen when you are trying to run the auditory experiment, not at the experiment selection stage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants