mdbartos / pysheds

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

Numba error when importing grid #184

Closed rescobarcorrea closed 2 years ago

rescobarcorrea commented 2 years ago

image

mdbartos commented 2 years ago

What version of numba are you using?

rescobarcorrea commented 2 years ago

Dear Matt Bartos,

Sorry if this is not the appropriate channel to ask about this issue.

this is my numba version and, other dependencies:

Requirement already satisfied: numba in /usr/local/lib/python3.7/dist-packages (from pysheds) (0.51.2)

Collecting pysheds Downloading pysheds-0.3.2-py3-none-any.whl (87 kB) |████████████████████████████████| 87 kB 2.9 MB/s Collecting affine Downloading affine-2.3.0-py2.py3-none-any.whl (15 kB) Requirement already satisfied: scipy in /usr/local/lib/python3.7/dist-packages (from pysheds) (1.4.1) Requirement already satisfied: scikit-image in /usr/local/lib/python3.7/dist-packages (from pysheds) (0.18.3) Requirement already satisfied: numpy in /usr/local/lib/python3.7/dist-packages (from pysheds) (1.21.5) Requirement already satisfied: pandas in /usr/local/lib/python3.7/dist-packages (from pysheds) (1.3.5) Requirement already satisfied: numba in /usr/local/lib/python3.7/dist-packages (from pysheds) (0.51.2) Collecting pyproj Downloading pyproj-3.2.1-cp37-cp37m-manylinux2010_x86_64.whl (6.3 MB) |████████████████████████████████| 6.3 MB 35.1 MB/s Collecting rasterio>=1 Downloading rasterio-1.2.10-cp37-cp37m-manylinux1_x86_64.whl (19.3 MB) |████████████████████████████████| 19.3 MB 2.6 MB/s Collecting geojson Downloading geojson-2.5.0-py2.py3-none-any.whl (14 kB) Requirement already satisfied: certifi in /usr/local/lib/python3.7/dist-packages (from rasterio>=1->pysheds) (2021.10.8) Requirement already satisfied: setuptools in /usr/local/lib/python3.7/dist-packages (from rasterio>=1->pysheds) (57.4.0) Collecting snuggs>=1.4.1 Downloading snuggs-1.4.7-py3-none-any.whl (5.4 kB) Collecting cligj>=0.5 Downloading cligj-0.7.2-py3-none-any.whl (7.1 kB) Collecting click-plugins Downloading click_plugins-1.1.1-py2.py3-none-any.whl (7.5 kB) Requirement already satisfied: click>=4.0 in /usr/local/lib/python3.7/dist-packages (from rasterio>=1->pysheds) (7.1.2) Requirement already satisfied: attrs in /usr/local/lib/python3.7/dist-packages (from rasterio>=1->pysheds) (21.4.0) Requirement already satisfied: pyparsing>=2.1.6 in /usr/local/lib/python3.7/dist-packages (from snuggs>=1.4.1->rasterio>=1->pysheds) (3.0.7) Requirement already satisfied: llvmlite<0.35,>=0.34.0.dev0 in /usr/local/lib/python3.7/dist-packages (from numba->pysheds) (0.34.0) Requirement already satisfied: python-dateutil>=2.7.3 in /usr/local/lib/python3.7/dist-packages (from pandas->pysheds) (2.8.2) Requirement already satisfied: pytz>=2017.3 in /usr/local/lib/python3.7/dist-packages (from pandas->pysheds) (2018.9) Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.7/dist-packages (from python-dateutil>=2.7.3->pandas->pysheds) (1.15.0) Requirement already satisfied: imageio>=2.3.0 in /usr/local/lib/python3.7/dist-packages (from scikit-image->pysheds) (2.4.1) Requirement already satisfied: matplotlib!=3.0.0,>=2.0.0 in /usr/local/lib/python3.7/dist-packages (from scikit-image->pysheds) (3.2.2) Requirement already satisfied: PyWavelets>=1.1.1 in /usr/local/lib/python3.7/dist-packages (from scikit-image->pysheds) (1.2.0) Requirement already satisfied: networkx>=2.0 in /usr/local/lib/python3.7/dist-packages (from scikit-image->pysheds) (2.6.3) Requirement already satisfied: tifffile>=2019.7.26 in /usr/local/lib/python3.7/dist-packages (from scikit-image->pysheds) (2021.11.2) Requirement already satisfied: pillow!=7.1.0,!=7.1.1,>=4.3.0 in /usr/local/lib/python3.7/dist-packages (from scikit-image->pysheds) (7.1.2) Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.7/dist-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->pysheds) (0.11.0) Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.7/dist-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->pysheds) (1.3.2) Installing collected packages: snuggs, cligj, click-plugins, affine, rasterio, pyproj, geojson, pysheds Successfully installed affine-2.3.0 click-plugins-1.1.1 cligj-0.7.2 geojson-2.5.0 pyproj-3.2.1 pysheds-0.3.2 rasterio-1.2.10 snuggs-1.4.7

El mié, 23 feb 2022 a las 12:11, Matt Bartos @.***>) escribió:

What version of numba are you using?

— Reply to this email directly, view it on GitHub https://github.com/mdbartos/pysheds/issues/184#issuecomment-1048365082, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX4K45R6ZM5FYU6LLSICM7TU4QX5JANCNFSM5PAJTY4A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- ROGGER E-CORREA *PhD. Msc. Bsc. *Environmental Engineering

Click here for research videos https://www.youtube.com/channel/UCIUTsvvTX8cJmScCJksoHFA

*Click here to see my Google Scholar profile https://scholar.google.com/citations?user=H3LiMNIAAAAJ&hl=es*

mdbartos commented 2 years ago

Looks like it's using v0.51.2. I'm currently using v0.53.1 and unit tests are using the newest version of numba, so upgrading numba might fix it. Using pip, this would look something like pip install -U numba.

rescobarcorrea commented 2 years ago

Dear Matt,

Thanks for your reply, it has worked! So far I'm loving it.

Cheers,

El jue, 24 feb 2022 a las 17:28, Matt Bartos @.***>) escribió:

Looks like it's using v0.51.2. I'm currently using v0.53.1 and unit tests are using the newest version of numba, so upgrading numba might fix it. Using pip, this would look something like pip install -U numba.

— Reply to this email directly, view it on GitHub https://github.com/mdbartos/pysheds/issues/184#issuecomment-1049536107, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX4K45QUIDA2V3YXI4C3O33U4XFZ5ANCNFSM5PAJTY4A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- ROGGER E-CORREA *PhD. Msc. Bsc. *Environmental Engineering

Click here for research videos https://www.youtube.com/channel/UCIUTsvvTX8cJmScCJksoHFA

*Click here to see my Google Scholar profile https://scholar.google.com/citations?user=H3LiMNIAAAAJ&hl=es*

mdbartos commented 2 years ago

Awesome, thank you.

MDB

rescobarcorrea commented 2 years ago

Dear Matt,

I was wondering, is there an easy way to write the drainage network or the stream order as shapefile?

Thanks,

El vie, 25 feb 2022 a las 13:18, Matt Bartos @.***>) escribió:

Awesome, thank you.

MDB

— Reply to this email directly, view it on GitHub https://github.com/mdbartos/pysheds/issues/184#issuecomment-1050451334, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX4K45WOWJVW5XCMKGL3W6TU43RHPANCNFSM5PAJTY4A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- ROGGER E-CORREA *PhD. Msc. Bsc. *Environmental Engineering

Click here for research videos https://www.youtube.com/channel/UCIUTsvvTX8cJmScCJksoHFA

*Click here to see my Google Scholar profile https://scholar.google.com/citations?user=H3LiMNIAAAAJ&hl=es*