climt icon indicating copy to clipboard operation
climt copied to clipboard

no attribute 'GFSDynamicalCore'

Open HarrisPyper opened this issue 2 years ago • 5 comments

  • CliMT version: 17.12
  • Python version: 3.10.12
  • Operating System: Ubuntu 22.04.3 LTS 64-bit GNOME 42.9

Description

I'm trying to run an example case full_radiation_with_insolation_gcm.py to see how climt works. But I got module 'climt' has no attribute 'GFSDynamicalCore', does it mean I need to update climt?

I also installed climt via anaconda, got the same error.

What I Did

python3 full_radiation_with_insolation_gcm.py
Traceback (most recent call last):
  File "/home/climt/climt_develop/examples/full_radiation_with_insolation_gcm.py", line 60, in <module>
    dycore = climt.GFSDynamicalCore(
AttributeError: module 'climt' has no attribute 'GFSDynamicalCore'

HarrisPyper avatar Dec 15 '23 02:12 HarrisPyper

I used pip3 install climt, I think I installed the latest version.

HarrisPyper avatar Dec 17 '23 19:12 HarrisPyper

I am having the same issue. Any update on this?

I found the following documentation online: https://gfs-dynamical-core.readthedocs.io/en/latest/

adominious avatar Mar 06 '24 09:03 adominious

We've moved GFS dynamical core to be a separate package for ease of maintenance. Please find it here -

https://github.com/Ai33L/gfs_dynamical_core

Ai33L avatar Mar 09 '24 05:03 Ai33L

Thank you for this information. I am having some issues getting this installed, when running pip install gfs-dynamical-core, the following error is given:

ERROR: Cannot install climt==0.17.5, gfs-dynamical-core and gfs-dynamical-core==0.1.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    gfs-dynamical-core 0.1.0 depends on sympl==0.4.1
    climt 0.17.5 depends on sympl==0.4.0
    gfs-dynamical-core 0.1.0 depends on sympl==0.4.1
    climt 0.16.25 depends on sympl==0.4.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Any advise on how to solve this?

adominious avatar Mar 11 '24 09:03 adominious

Which python version are you using? Please use one of py 3.8, 3.9 or 3.10 Using a conda environment with one of these python versions would be best.

Ai33L avatar Mar 12 '24 09:03 Ai33L