mdbartos / pysheds

:earth_americas: Simple and fast watershed delineation in python.
GNU General Public License v3.0
708 stars 191 forks source link

installed pysheds 0.3 with pip after runtime error with setup.py #169

Closed itati01 closed 2 years ago

itati01 commented 2 years ago

Hi, I tried to install pysheds 0.3 from Github following the readme, i.e. with python setup.py install.

After the installation, from pysheds.grid import Grid resulted in a ```RuntimeError: cannot cache function '_d8_flowdir_numba': no locator available for file 'C:\Users\xxx\Anaconda3\lib\site-packages\pysheds-0.3-py3.8.egg\pysheds\_sgrid.py'````. I am not sure whether this is related to this numba issue.

I use Anaconda under Windows. After installing the missing libraries with conda and running pip install ., everything is working.

Cheers

mdbartos commented 2 years ago

Interesting. I was able to install on my windows laptop just using conda:

conda create -n pysheds-env python=3.9
conda activate pysheds-env
conda install pysheds
mdbartos commented 2 years ago

Please reopen if the issue persists.