Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no attribute 'GFSDynamicalCore' #165

Open
HarrisPyper opened this issue Dec 15, 2023 · 5 comments
Open

no attribute 'GFSDynamicalCore' #165

HarrisPyper opened this issue Dec 15, 2023 · 5 comments

Comments

@HarrisPyper
Copy link

  • 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
Copy link
Author

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

@adominious
Copy link

adominious commented Mar 6, 2024

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

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

@Ai33L
Copy link
Collaborator

Ai33L commented Mar 9, 2024

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

@adominious
Copy link

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?

@Ai33L
Copy link
Collaborator

Ai33L commented Mar 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants