LAAC-LSCP / ChildProject

Python package for the management of day-long recordings of children.
https://childproject.readthedocs.io
MIT License
13 stars 5 forks source link

Sampler issue under Windows #253

Open lucasgautheron opened 3 years ago

lucasgautheron commented 3 years ago

Is your feature request related to a problem? Please describe.

This issue seems to be related to multithread. A temporary solution would be to have it off by default on windows.

$ child-project sampler align-vandam/inputs/vandam-data/ sampler/ high-volubility --annotation-set CHA --metric awc --windows-length 60000 --windows-count 5
Process SpawnPoolWorker-1:
Traceback (most recent call last):
  File "c:\users\apfelsaft\python\python38\lib\multiprocessing\process.py", line 315, in _bootstrap
    self.run()
  File "c:\users\apfelsaft\python\python38\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "c:\users\apfelsaft\python\python38\lib\multiprocessing\pool.py", line 114, in worker
    task = get()
  File "c:\users\apfelsaft\python\python38\lib\multiprocessing\queues.py", line 358, in get
    return _ForkingPickler.loads(res)
  File "c:\users\apfelsaft\python\python38\lib\site-packages\ChildProject\pipelines\__init__.py", line 1, in <module>
    from .samplers import SamplerPipeline
  File "c:\users\apfelsaft\python\python38\lib\site-packages\ChildProject\pipelines\samplers.py", line 17, in <module>
    class Sampler(ABC):
  File "c:\users\apfelsaft\python\python38\lib\site-packages\ChildProject\pipelines\samplers.py", line 19, in Sampler
    project: ChildProject.projects.ChildProject,
AttributeError: module 'ChildProject' has no attribute 'projects'