usgs/slab2

trouble installing slab2

Thomas-Ulrich opened this issue · 3 comments

Hi,

So I m trying to get slab 2.0 running on my desktop (on which Linux debian is running).

  1. First trying to run 'slab2env.sh' I got an error when running the script because $_CONDA_ROOT was an empty string (within the script).
    I first tried changing source ~/.bash_profile against source ~/.bashrc but it did not help.
    the 2 last lines of my ~/.bashrc are:

. /export/data/ulrich/MyLibs/anaconda3/etc/profile.d/conda.sh
conda activate base

I finally came up a solution for that:
using '. /export/data/ulrich/MyLibs/anaconda3/etc/profile.d/conda.sh' instead of 'source ~/.bash_profile' in your script and the install script then runs.

  1. let's first comment the 3 pip install. I then get this error:

ResolvePackageNotFound:

  • gdal==2.1.3=py35_7
  • bcrypt==3.1.4=py35h7e31480_0
  • qt==5.6.2=h9e3eb04_4
  • appnope==0.1.0=py35_0
  • webencodings==0.5.1=py35_0
  1. getting over this error, if I then uncomment the last 3 pip install, I get the following error:

creating /usr/local/lib/python2.7/dist-packages/impactutils
error: could not create '/usr/local/lib/python2.7/dist-packages/impactutils': Permission denied
Probably because I m not root. This is fixed by adding '--user' to the last pip.

So I m almost done, but 2) is not fixed.

Thx in advance,

Thomas.

The new slab2env environment should address all these issues.
Note some changes to s2d and s2d_fnctns as well.

Hi,
every got installed properly except that i need to add '--user' to
'pip install git+git://github.com/usgs/earthquake-impact-utils.git'
Thx.
Thomas.