climt
climt copied to clipboard
Again aquaplanet example not run: Note python is 3.8.10 *not* 3.10.6
- CliMT version:climt-0.16.25-cp38-cp38-manylinux2010_x86_64.whl
- Python version:Python 3.8.10
- Operating System:
Description
python3 gmd_aquaplanet.py
/usr/local/lib/python3.8/dist-packages/sympl/_core/dataarray.py:6: FutureWarning: xarray subclass DataArray should explicitly define slots
class DataArray(xr.DataArray):
Traceback (most recent call last):
File "gmd_aquaplanet.py", line 94, in :), ellipsis (
python3 -V Python 3.8.10
What I Did
installet first python3-pip
sudo apt install python3-pip
libexpat1 libexpat1-dev libpython3-dev libpython3.8 libpython3.8-dev libpython3.8-minimal libpython3.8-stdlib python-pip-whl python3-dev python3-distutils python3-lib2to3 python3-setuptools python3-wheel python3.8 python3.8-dev python3.8-minimal Suggested packages: python-setuptools-doc python3.8-venv python3.8-doc The following NEW packages will be installed: libexpat1-dev libpython3-dev libpython3.8-dev python-pip-whl python3-dev python3-distutils python3-lib2to3 python3-pip python3-setuptools python3-wheel python3.8-dev The following packages will be upgraded: libexpat1 libpython3.8 libpython3.8-minimal libpython3.8-stdlib python3.8 python3.8-minimal
Example:
Get:5 http://ftp.acc.umu.se/ubuntu focal-updates/main amd64 python3.8 amd64 3.8.10-0ubuntu1~20.04.5 [387 kB]
sudo pip3 install numpy scipy matplotlib netcdf4 climt
sudo pip3 install numpy scipy matplotlib netcdf4 climt Collecting numpy Downloading numpy-1.23.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.1 MB) |████████████████████████████████| 17.1 MB 9.8 MB/s Collecting scipy Downloading scipy-1.9.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (43.4 MB) |████████████████████████████████| 43.4 MB 5.3 MB/s Collecting matplotlib Downloading matplotlib-3.5.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (11.3 MB) |████████████████████████████████| 11.3 MB 10.7 MB/s Collecting netcdf4 Downloading netCDF4-1.6.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.2 MB) |████████████████████████████████| 5.2 MB 12.5 MB/s Collecting climt Downloading climt-0.16.25-cp38-cp38-manylinux2010_x86_64.whl (26.1 MB) |████████████████████████████████| 26.1 MB 8.3 MB/s Collecting kiwisolver>=1.0.1 Downloading kiwisolver-1.4.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.2 MB) |████████████████████████████████| 1.2 MB 12.3 MB/s Requirement already satisfied: pillow>=6.2.0 in /usr/lib/python3/dist-packages (from matplotlib) (7.0.0) Collecting python-dateutil>=2.7 Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) |████████████████████████████████| 247 kB 6.2 MB/s Collecting cycler>=0.10 Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB) Requirement already satisfied: packaging>=20.0 in /usr/lib/python3/dist-packages (from matplotlib) (20.3) Requirement already satisfied: pyparsing>=2.2.1 in /usr/lib/python3/dist-packages (from matplotlib) (2.4.6) Collecting fonttools>=4.22.0 Downloading fonttools-4.37.1-py3-none-any.whl (957 kB) |████████████████████████████████| 957 kB 9.6 MB/s Collecting cftime Downloading cftime-1.6.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (241 kB) |████████████████████████████████| 241 kB 7.4 MB/s Collecting pint>=0.7.0 Downloading Pint-0.19.2.tar.gz (292 kB) |████████████████████████████████| 292 kB 7.9 MB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting sympl==0.4.0 Downloading sympl-0.4.0.tar.gz (107 kB) |████████████████████████████████| 107 kB 9.6 MB/s Collecting cython>=0.25 Downloading Cython-0.29.32-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (1.9 MB) |████████████████████████████████| 1.9 MB 7.3 MB/s Collecting xarray>=0.8.0 Downloading xarray-2022.6.0-py3-none-any.whl (927 kB) |████████████████████████████████| 927 kB 10.8 MB/s Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.7->matplotlib) (1.14.0) Collecting pandas>=1.2 Downloading pandas-1.4.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.7 MB) |████████████████████████████████| 11.7 MB 9.1 MB/s Collecting pytz>=2020.1 Downloading pytz-2022.2.1-py2.py3-none-any.whl (500 kB) |████████████████████████████████| 500 kB 7.8 MB/s Building wheels for collected packages: pint, sympl Building wheel for pint (PEP 517) ... done Created wheel for pint: filename=Pint-0.19.2-py3-none-any.whl size=231002 sha256=c20c3c1b404f1dd4c178958c1aa336ab3f1336bd918f7c441e6f57cbfda47960 Stored in directory: /root/.cache/pip/wheels/98/1d/e0/a44541f5302ac50028a3be0db9417c18092c61f25009d62145 Building wheel for sympl (setup.py) ... done Created wheel for sympl: filename=sympl-0.4.0-py2.py3-none-any.whl size=51847 sha256=95b1f8aa7b69e1fac45d1e768613eec8b2bddd309575eaf49ddf80db5b1d5783 Stored in directory: /root/.cache/pip/wheels/c9/b0/b0/1b81d24978f7a1e994410ec0d6456c952c097aebddf263d4ed Successfully built pint sympl Installing collected packages: numpy, scipy, kiwisolver, python-dateutil, cycler, fonttools, matplotlib, cftime, netcdf4, pint, pytz, pandas, xarray, sympl, cython, climt Successfully installed cftime-1.6.1 climt-0.16.25 cycler-0.11.0 cython-0.29.32 fonttools-4.37.1 kiwisolver-1.4.4 matplotlib-3.5.3 netcdf4-1.6.0 numpy-1.23.2 pandas-1.4.4 pint-0.19.2 python-dateutil-2.8.2 pytz-2022.2.1 scipy-1.9.1 sympl-0.4.0 xarray-2022.6.0
python3 -V Python 3.8.10
ah, looks like some changes in xarray has broken sympl.
This is not a climt issue, but in xarray/sympl.
However, for now could you downgrade xarray:
pip install -U xarray==0.16.2
and see if it works?
On Sat, Sep 3, 2022 at 3:32 PM oculus99 @.***> wrote:
- CliMT version:climt-0.16.25-cp38-cp38-manylinux2010_x86_64.whl
- Python version:Python 3.8.10
- Operating System:
Description
python3 gmd_aquaplanet.py
/usr/local/lib/python3.8/dist-packages/sympl/_core/dataarray.py:6: FutureWarning: xarray subclass DataArray should explicitly define slots class DataArray(xr.DataArray): Traceback (most recent call last): File "gmd_aquaplanet.py", line 94, in diag, my_state = dycore(my_state, model_time_step) File "/usr/local/lib/python3.8/dist-packages/climt/_components/gfs/component.py", line 311, in call raw_state['tracers'] = self._tracer_packer.pack(state) File "/usr/local/lib/python3.8/dist-packages/sympl/_core/tracers.py", line 202, in pack array[tracer_slice] = raw_state[name] IndexError: only integers, slices (:), ellipsis (
python3 -V Python 3.8.10 What I Did
installet first python3-pip
sudo apt install python3-pip
libexpat1 libexpat1-dev libpython3-dev libpython3.8 libpython3.8-dev libpython3.8-minimal libpython3.8-stdlib python-pip-whl python3-dev python3-distutils python3-lib2to3 python3-setuptools python3-wheel python3.8 python3.8-dev python3.8-minimal Suggested packages: python-setuptools-doc python3.8-venv python3.8-doc The following NEW packages will be installed: libexpat1-dev libpython3-dev libpython3.8-dev python-pip-whl python3-dev python3-distutils python3-lib2to3 python3-pip python3-setuptools python3-wheel python3.8-dev The following packages will be upgraded: libexpat1 libpython3.8 libpython3.8-minimal libpython3.8-stdlib python3.8 python3.8-minimal
Example:
Get:5 http://ftp.acc.umu.se/ubuntu focal-updates/main amd64 python3.8 amd64 3.8.10-0ubuntu1~20.04.5 [387 kB]
sudo pip3 install numpy scipy matplotlib netcdf4 climt
sudo pip3 install numpy scipy matplotlib netcdf4 climt Collecting numpy Downloading numpy-1.23.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.1 MB) |████████████████████████████████| 17.1 MB 9.8 MB/s Collecting scipy Downloading scipy-1.9.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (43.4 MB) |████████████████████████████████| 43.4 MB 5.3 MB/s Collecting matplotlib Downloading matplotlib-3.5.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (11.3 MB) |████████████████████████████████| 11.3 MB 10.7 MB/s Collecting netcdf4 Downloading netCDF4-1.6.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.2 MB) |████████████████████████████████| 5.2 MB 12.5 MB/s Collecting climt Downloading climt-0.16.25-cp38-cp38-manylinux2010_x86_64.whl (26.1 MB) |████████████████████████████████| 26.1 MB 8.3 MB/s Collecting kiwisolver>=1.0.1 Downloading kiwisolver-1.4.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.2 MB) |████████████████████████████████| 1.2 MB 12.3 MB/s Requirement already satisfied: pillow>=6.2.0 in /usr/lib/python3/dist-packages (from matplotlib) (7.0.0) Collecting python-dateutil>=2.7 Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) |████████████████████████████████| 247 kB 6.2 MB/s Collecting cycler>=0.10 Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB) Requirement already satisfied: packaging>=20.0 in /usr/lib/python3/dist-packages (from matplotlib) (20.3) Requirement already satisfied: pyparsing>=2.2.1 in /usr/lib/python3/dist-packages (from matplotlib) (2.4.6) Collecting fonttools>=4.22.0 Downloading fonttools-4.37.1-py3-none-any.whl (957 kB) |████████████████████████████████| 957 kB 9.6 MB/s Collecting cftime Downloading cftime-1.6.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (241 kB) |████████████████████████████████| 241 kB 7.4 MB/s Collecting pint>=0.7.0 Downloading Pint-0.19.2.tar.gz (292 kB) |████████████████████████████████| 292 kB 7.9 MB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting sympl==0.4.0 Downloading sympl-0.4.0.tar.gz (107 kB) |████████████████████████████████| 107 kB 9.6 MB/s Collecting cython>=0.25 Downloading Cython-0.29.32-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (1.9 MB) |████████████████████████████████| 1.9 MB 7.3 MB/s Collecting xarray>=0.8.0 Downloading xarray-2022.6.0-py3-none-any.whl (927 kB) |████████████████████████████████| 927 kB 10.8 MB/s Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.7->matplotlib) (1.14.0) Collecting pandas>=1.2 Downloading pandas-1.4.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.7 MB) |████████████████████████████████| 11.7 MB 9.1 MB/s Collecting pytz>=2020.1 Downloading pytz-2022.2.1-py2.py3-none-any.whl (500 kB) |████████████████████████████████| 500 kB 7.8 MB/s Building wheels for collected packages: pint, sympl Building wheel for pint (PEP 517) ... done Created wheel for pint: filename=Pint-0.19.2-py3-none-any.whl size=231002 sha256=c20c3c1b404f1dd4c178958c1aa336ab3f1336bd918f7c441e6f57cbfda47960 Stored in directory: /root/.cache/pip/wheels/98/1d/e0/a44541f5302ac50028a3be0db9417c18092c61f25009d62145 Building wheel for sympl (setup.py) ... done Created wheel for sympl: filename=sympl-0.4.0-py2.py3-none-any.whl size=51847 sha256=95b1f8aa7b69e1fac45d1e768613eec8b2bddd309575eaf49ddf80db5b1d5783 Stored in directory: /root/.cache/pip/wheels/c9/b0/b0/1b81d24978f7a1e994410ec0d6456c952c097aebddf263d4ed Successfully built pint sympl Installing collected packages: numpy, scipy, kiwisolver, python-dateutil, cycler, fonttools, matplotlib, cftime, netcdf4, pint, pytz, pandas, xarray, sympl, cython, climt Successfully installed cftime-1.6.1 climt-0.16.25 cycler-0.11.0 cython-0.29.32 fonttools-4.37.1 kiwisolver-1.4.4 matplotlib-3.5.3 netcdf4-1.6.0 numpy-1.23.2 pandas-1.4.4 pint-0.19.2 python-dateutil-2.8.2 pytz-2022.2.1 scipy-1.9.1 sympl-0.4.0 xarray-2022.6.0
python3 -V Python 3.8.10
— Reply to this email directly, view it on GitHub https://github.com/CliMT/climt/issues/157, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXWKPNQTU46LW3X6PZJA7TV4MO2FANCNFSM6AAAAAAQD2W2VA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
-- The best ruler, when he finishes his tasks and completes his affairs, the people say “It all happened naturally”
- Te Tao Ch'ing
Now sympl has pandas issue like this:
python3 gmd_aquaplanet.py
Traceback (most recent call last):
File "gmd_aquaplanet.py", line 1, in
Looks like pandas also needs to be downgraded
https://stackoverflow.com/questions/65600306/module-pandas-has-no-attribute-panel
Could you downgrade to pandas==0.24.2 and see?
The long term solution is to upgrade sympl, but I think this should solve the issue for now.
On Sun, Sep 4, 2022, 14:49 oculus99 @.***> wrote:
Now sympl has pandas issue like this:
python3 gmd_aquaplanet.py Traceback (most recent call last): File "gmd_aquaplanet.py", line 1, in import climt File "/usr/local/lib/python3.8/dist-packages/climt/init.py", line 2, in import sympl File "/usr/local/lib/python3.8/dist-packages/sympl/init.py", line 2, in from ._core.base_components import ( File "/usr/local/lib/python3.8/dist-packages/sympl/_core/base_components.py", line 3, in from .restore_dataarray import restore_data_arrays_with_properties File "/usr/local/lib/python3.8/dist-packages/sympl/_core/restore_dataarray.py", line 3, in from .dataarray import DataArray File "/usr/local/lib/python3.8/dist-packages/sympl/_core/dataarray.py", line 1, in import xarray as xr File "/usr/local/lib/python3.8/dist-packages/xarray/init.py", line 12, in from .core.combine import concat, auto_combine File "/usr/local/lib/python3.8/dist-packages/xarray/core/combine.py", line 9, in from .merge import merge File "/usr/local/lib/python3.8/dist-packages/xarray/core/merge.py", line 10, in PANDAS_TYPES = (pd.Series, pd.DataFrame, pd.Panel) File "/usr/local/lib/python3.8/dist-packages/pandas/init.py", line 244, in getattr raise AttributeError(f"module 'pandas' has no attribute '{name}'") AttributeError: module 'pandas' has no attribute 'Panel'
— Reply to this email directly, view it on GitHub https://github.com/CliMT/climt/issues/157#issuecomment-1236295904, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXWKPJEKMHIFEVZZQWKDFTV4RSQRANCNFSM6AAAAAAQD2W2VA . You are receiving this because you commented.Message ID: @.***>
Wnen i tried to downgrade pandas to my Python 3.8.10 it generated error, and also it was very slow to compile pandas to Python.
I try some day again.
I also think that it is some reason to upgrade sympl.
Message ID: @.***>
I see. We always recommend using conda virtual environments to ensure such issues don't occur.
A few users (including me) regularly use climt within a conda python 3.6 virtual environment without any trouble.
But yes, we should upgrade sympl!
Thanks for all your efforts, hope we can make it easier by the next time you try this.
On Sun, Sep 4, 2022, 17:52 oculus99 @.***> wrote:
Wnen i tried to downgrade pandas to my Python 3.8.10 it generated error, and also it was very slow to compile pandas to Python.
I try some day again.
I also think that it is some reason to upgrade sympl.
Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/CliMT/climt/issues/157#issuecomment-1236326485, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXWKPPHEV4UJDFAH6UC7BTV4SH75ANCNFSM6AAAAAAQD2W2VA . You are receiving this because you commented.Message ID: @.***>
Please follow https://github.com/CliMT/climt/issues/161 for updates next week. This should run by then.