christianbrodbeck / Eelbrain

eelbrain.readthedocs.io
Other
69 stars 27 forks source link

Missing dependencies keyring, wxPython, colormath, pymatreader #69

Closed joschaschmiedt closed 4 months ago

joschaschmiedt commented 5 months ago

When I install eelbrain via pip install eelbrain import eelbrain fails with

File C:\Code\envs\neuro-conda-2023b\lib\site-packages\eelbrain\_utils\com.py:6
      4 from email.mime.multipart import MIMEMultipart
      5 from email.mime.text import MIMEText
----> 6 import keyring
      7 from keyring.errors import KeyringError
      8 from pathlib import Path

ModuleNotFoundError: No module named 'keyring'

Manually installing keyring via pip fixes this issue. Next, I get

File C:\Code\envs\neuro-conda-2023b\lib\site-packages\eelbrain\_wxgui\__init__.py:5
      2 from warnings import filterwarnings
      4 filterwarnings('ignore', message='Not importing directory .*', module='wx.*')
----> 5 import wx
      7 # filter unnecessary warnings
      8 from .. import _config

ModuleNotFoundError: No module named 'wx'

Next, colormath is missing:

File C:\Code\envs\neuro-conda-2023b\lib\site-packages\eelbrain\_colorspaces.py:13
     10 if logger.level == 0:  # otherwise it was probably set by user (DEBUG=10)
     11     logger.setLevel(logging.WARNING)
---> 13 from colormath.color_objects import LCHabColor, sRGBColor
     14 from colormath.color_conversions import convert_color
     15 import matplotlib

ModuleNotFoundError: No module named 'colormath'

and pymatreader

File C:\Code\envs\neuro-conda-2023b\lib\site-packages\eelbrain\_io\cnd.py:9
      7 import mne
      8 import numpy
----> 9 from pymatreader import read_mat
     11 from .._data_obj import Dataset, Factor, NDVar, Scalar, Sensor, UTS, Var, combine, _matrix_graph
     12 from .._io.fiff import mne_neighbor_files

ModuleNotFoundError: No module named 'pymatreader'

This is using

christianbrodbeck commented 5 months ago

Thanks for noting that! I've been neglecting the dependencies in setup.py and will update them.

christianbrodbeck commented 4 months ago

This should now work with the latest PYPI release.