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

Pandas ImportError #9007

Closed cossatot closed 11 months ago

cossatot commented 11 months ago

I just rebuilt my python environment (python 3.10, linux) and got this error when trying to start the dbserver:

File "/home/itchy/src/gem/oq-engine/openquake/commands/run.py", line 25, in <module>
    from pandas.core.common import SettingWithCopyWarning
ImportError: cannot import name 'SettingWithCopyWarning' from 'pandas.core.common' (/home/itchy/src/miniconda/envs/oq/lib/python3.10/site-packages/pandas/core/common.py)

Pandas is version 2.1.0; that error has either been removed or moved to a different place in the codebase.

I'm submitting a quick-fix PR for this as well.

micheles commented 11 months ago

You have to wait for this to become green: https://github.com/gem/oq-engine/pull/9014