SPHYv2.2.1 and PCRaster installation

375 views
Skip to first unread message

Paul Sandoval

unread,
Dec 24, 2021, 10:31:28 AM12/24/21
to SPHY-model-user
Dear Wilco, 

I'm try to install SPHY v2.2.1 but I'm having some problems with the istallation of PCRaster v4.1.0 (this version was removed from the official website). I'll try to install it manually, so for this I'd like to ask you for the following information:

- Python version?
- Numpy version?
- bit version of PCRaster? 

Thank you and Merry Christmas 🎄


WilcoTerink

unread,
Dec 30, 2021, 3:52:28 PM12/30/21
to SPHY-model-user
Nowadays you can also install PCRaster using anaconda. I suggest you try that first:

conda install -c conda-forge pcraster

uday kumar

unread,
Feb 12, 2022, 8:46:49 AM2/12/22
to SPHY-model-user
Dear Sir,
Using above mentioned command PCRaster version 4.3.2 is getting installed in the python environment. Will this work for running SPHY in python environment? 

WilcoTerink

unread,
Feb 14, 2022, 4:35:31 AM2/14/22
to SPHY-model-user
Yes it should. If you do not get any errors it means it runs successfully..

Paul Sandoval

unread,
Mar 7, 2022, 10:41:17 AM3/7/22
to SPHY-model-user
Hi!!

I had some problems installing SPHY v2.2.1, so I create an Install guide. It's the first version so it could have some errors, anyway I hope it will be useful.

Cheers!!

Paul 

SPHY221_install_guide_v1.pdf

Sai Krishna

unread,
Aug 21, 2024, 12:24:41 PM8/21/24
to SPHY-model-user
I have tried PC raster installation in anaconda as provided in the manual by Wilcoterink ( Installation — SPHY 2.2.1 documentation )  and also referred the installation steps manual by Paul. The initial step was installation of python 2.7 or python 3.7 on anaconda, followed by installation of numpy and pandas, and then installation of zip file of PCRaster 4.1.0. After configuring the environment variable to bin folder and python folder of PCRaster-4.1.0, the test for pcraster module import in anaconda python terminal is not successful.
pcraster_environvar.pngpcraster_python.png 
Kindly provide further guidance for resolving the issue.

Paul Sandoval

unread,
Aug 21, 2024, 1:50:27 PM8/21/24
to SPHY-model-user
Hi, 

Now I install python 3.7, numpy, pandas and PCRaster using conda. I recommend doing it beacause its easier, but then you have to modify some lines of the codes associated with the print function (I suppose that function change from python 2.7 to 3.7). For example in the line 56 (see the attached figure) instead "print  'Version 2.2.1'" you have to put print('Version 2.2.1').

I hope it helps you. 


ej.png

Sai Krishna

unread,
Aug 23, 2024, 11:00:31 PM8/23/24
to SPHY-model-user
Hi,
Finally pcraster installation was solved by modifying anaconda's  ".condarc" file.

Old .condarc file contents:
condarcfile_old.png

Edited .condarc file contents:
condarc file.png

Then on anaconda terminal used the command "conda create  --name sphy python3.7 numpy pcraster" for installing the packages needed.
Finally I got packages' version as follows:
numpy-1.21.6-py37h*
pandas-1.3.5-py37h*
pcraster-4.3.3-py37h*

Tested the pcraster import and import is successful
pcraster import success.png

Then installed SPHYv2.2.1
SPHYv221_install.png


I am looking forward to beginning my journey towards using and learning the SPHY model. 

Cheers!

WilcoTerink

unread,
Aug 31, 2024, 2:21:03 PM8/31/24
to SPHY-model-user
I see you managed to get it installed later on, which is great. Just some additional info: PCRaster was not available as an Anaconda installer by the time I released SPHY 2.2.1. Therefore, it has to be installed manually. However, nowadays PCRaster is available as an Anaconda installer (which you already figured out below). I will make this part of the SPHY model installation in a future release, so it'll become more straightforward for you all. 😃
Reply all
Reply to author
Forward
0 new messages