gem / oq-engine

OpenQuake Engine: a software for Seismic Hazard and Risk Analysis
https://github.com/gem/oq-engine/#openquake-engine
GNU Affero General Public License v3.0
377 stars 273 forks source link

`ray` not in requirements.txt #8182

Closed cossatot closed 1 year ago

cossatot commented 1 year ago

I'm working from a fresh install using latest master. When using run_calc from a script I get this error:

File ~/src/gem/oq-engine/openquake/baselib/parallel.py:671, in Starmap.init(cls, distribute)
    670 try:
--> 671     from ray.util.multiprocessing import Pool
    672     cls.pool = Pool(cls.num_cores, init_workers)

ModuleNotFoundError: No module named 'ray'

Obviously an easy fix on my machine with pip install ray but perhaps this should be in the requirements?

micheles commented 1 year ago

No, this is not right, ray is not officially supported, you should never go there. What are you doing exactly?