cioos-siooc / cioos-siooc_data_transform

6 stars 5 forks source link

Fix install procedure and documentation #99

Open jeffcullis opened 2 years ago

jeffcullis commented 2 years ago

Got feedback from a newer user that following the install docs for the main transform package and ODF project package did not work for them, updates to the docs / install procedures may be needed for different environments:

I did encounter an issue installing the cioos_data_transform project (using pip install –e cioos_data_transform). My error relates to building the wheel for gsw. I can’t seem to install the setup.py for gsw. Lower down in the output I get an error that says ‘Microsoft Visual C++ 14.0 or greater is required’ I had no issues installing the ‘projects’ (pip install –e projects) within the cioos_data_transform folder, but am unable to run the odf_to_netcdf python script (which I am assuming is related to the inability to install the cioos_data_transform project).

jeffcullis commented 2 years ago

The latest commands that worked for me to install it:

cd $ODF_CONVERTER_DIR
git pull
sudo su miniconda
conda create --name $CONDA_ENV --channel conda-forge python=3.6 netcdf4 gdal rpy2 pandas gsw
conda activate $CONDA_ENV
pip install -e cioos_data_transform
# may need to remove rpy2 from projects/setup.py requirements, since already installed
pip install --ignore-installed certifi -e projects
exit