Skip to content

Python Versioning Information #32

@manishvenu

Description

@manishvenu

Details:
VisualCaseGen was capped at 3.11 because of weird import logic issue in land prep stage, see the error below. It has to do with the way six is importing in the CLM/CESM. For some reason six is manually overwritten in CLM so you can bad issues in new versions of python that don't use that version of six. As such, it was fixed a couple years ago by Sam. I'm trying to see if VisualCaseGen will work with never versions of CESM that fix this.

It works now with beta07 & python3.14! You need to add a lon_type argument to the fsurdat_modifier part, see the fix in the PR: #34

The error:
LandGridMode fsurgat modifier

File "/glade/work/manishrv/installs/cesm3_0_beta06_gui/components/clm/tools/modify_input_files/../../python/ctsm/modify_input_files/modify_fsurdat.py", line 13, in <module>
   import xarray as xr
 File "/glade/work/manishrv/conda-envs/visualCaseGen/lib/python3.14/site-packages/xarray/__init__.py", line 3, in <module>
   from xarray import testing, tutorial
 File "/glade/work/manishrv/conda-envs/visualCaseGen/lib/python3.14/site-packages/xarray/testing/__init__.py", line 1, in <module>
   from xarray.testing.assertions import (  # noqa: F401
   ...<12 lines>...
   )
 File "/glade/work/manishrv/conda-envs/visualCaseGen/lib/python3.14/site-packages/xarray/testing/assertions.py", line 8, in <module>
   import pandas as pd
 File "/glade/work/manishrv/conda-envs/visualCaseGen/lib/python3.14/site-packages/pandas/__init__.py", line 44, in <module>
   import pandas.core.config_init  # pyright: ignore[reportUnusedImport] # noqa: F401
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/glade/work/manishrv/conda-envs/visualCaseGen/lib/python3.14/site-packages/pandas/core/config_init.py", line 31, in <module>
   from pandas.errors import Pandas4Warning
 File "/glade/work/manishrv/conda-envs/visualCaseGen/lib/python3.14/site-packages/pandas/errors/__init__.py", line 12, in <module>
   from pandas._libs.tslibs import (
   ...<3 lines>...
   )
 File "/glade/work/manishrv/conda-envs/visualCaseGen/lib/python3.14/site-packages/pandas/_libs/__init__.py", line 18, in <module>
   from pandas._libs.interval import Interval
 File "pandas/_libs/interval.pyx", line 1, in init pandas._libs.interval
 File "pandas/_libs/hashtable.pyx", line 1, in init pandas._libs.hashtable
 File "pandas/_libs/missing.pyx", line 1, in init pandas._libs.missing
 File "/glade/work/manishrv/conda-envs/visualCaseGen/lib/python3.14/site-packages/pandas/_libs/tslibs/__init__.py", line 41, in <module>
   from pandas._libs.tslibs.conversion import localize_pydatetime
 File "pandas/_libs/tslibs/conversion.pyx", line 1, in init pandas._libs.tslibs.conversion
 File "pandas/_libs/tslibs/offsets.pyx", line 1, in init pandas._libs.tslibs.offsets
 File "pandas/_libs/tslibs/timestamps.pyx", line 1, in init pandas._libs.tslibs.timestamps
 File "pandas/_libs/tslibs/timedeltas.pyx", line 1, in init pandas._libs.tslibs.timedeltas
 File "pandas/_libs/tslibs/timezones.pyx", line 17, in init pandas._libs.tslibs.timezones
 File "/glade/work/manishrv/conda-envs/visualCaseGen/lib/python3.14/site-packages/dateutil/tz/__init__.py", line 2, in <module>
   from .tz import *
 File "/glade/work/manishrv/conda-envs/visualCaseGen/lib/python3.14/site-packages/dateutil/tz/tz.py", line 21, in <module>
   from six.moves import _thread
ModuleNotFoundError: No module named 'six.moves'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions