-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Hi,
I tried to install pyschism with miniforge on Ubuntu 24.04 and failed as pip (pip install pyschism) blamed that maximum attempts were reached. It looks like a dependency problem.
Has anyone successfully installed pyschism on Ubuntu 24.04 using pip? I also tried to use conda (conda install -c conda-forge pyschism) to install pyschism. It was successfully installed, but I had an error when loading pyschism.
I was able to install pyschism by using setup.py as follows and it appears to be working for now. I followed one of the previous posts about conda installation. That did not work for Ubuntu 24.04, but worked for 22.04 (but with miniconda, not miniforge). But I don't want to use the older version, because I was not able to run schism test cases with Ubuntu 22.04 for unknown reason.
I had to install a bunch of dependencies manually (appdirs f90nml etc.) aside from what was suggested. I think this is not necessarily the correct way to install pyschism, but nothing else has worked.
git clone https://github.com/schism-dev/pyschism.git
cd pyschism
conda create -n schism python=3.9.18
conda activate schism
conda install -c conda-forge udunits2
conda install -c conda-forge gdal sqlite fiona ipython notebook
conda install -c conda-forge numpy scipy netcdf4 matplotlib geopandas shapely
conda install -c conda-forge appdirs f90nml cf-python tqdm tqdm-logging-wrappery seawater xmltodict cdsapi xarray stormevents utm boto3 python-wget
python setup.py install