paulbrodersen / somnotate

Automated polysomnography for experimental animal research
GNU General Public License v3.0
11 stars 6 forks source link

Problem with pomegranate library during run 02_test_state_annotation.py #10

Open BSRLab opened 2 weeks ago

BSRLab commented 2 weeks ago

Hi, I installed (Windows) the somnotate version 0.3.3, and pomegranate 0.14.8 with Python 3.12.4. I installed somnotate in conda environment by using pip. During the running example_pipeline/02_test_annotation.py, I encounter this error:

* File "C:\Users\Utente\somnotate\somnotate-master\example_pipeline\02_test_state_annotation.py", line 12, in from somnotate._automated_state_annotation import StateAnnotator File "C:\Users\Utente\somnotate\somnotate-master\example_pipeline\somnotate_automated_state_annotation.py", line 10, in from pomegranate import ( File "C:\Users\Utente\anaconda3\envs\my_somnotate_virtual_environment_name\pkgs\pomegranate-0.14.8\pomegranate__init__.py", line 11, in from .base import ModuleNotFoundError: No module named 'pomegranate.base'**

Screenshot of the folder pkgs\pomegranate-0.14.8\pomegranate attached here. pomegranate base

Thanks

paulbrodersen commented 2 weeks ago

Pomegranate seems to have had multiple issues with ModuleNotFoundErrors. I will investigate further but you may want to get started trying some of the suggestions in these threads:

https://github.com/jmschrei/pomegranate/issues/345

https://github.com/jmschrei/pomegranate/issues/313

https://github.com/jmschrei/pomegranate/issues/215

https://github.com/jmschrei/pomegranate/issues/215

paulbrodersen commented 2 weeks ago

Also, the pomegranate github states:

If you get an error involving pomegranate/base.c, try installing with pip install --no-cache-dir pomegranate.

paulbrodersen commented 1 week ago

Any luck with fixing the pomegranate installation by following one of the threads above?