mdbartos / pysheds

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

AttributeError: 'Proj' object has no attribute 'is_latlong' #101

Closed chrimerss closed 2 years ago

chrimerss commented 4 years ago

This problem occurs when calling grid.cell_slopes(). I think Proj>2.2.0 has removed attribute is_latlong.

KMarkert commented 4 years ago

I was having the same problem. You are correct in that it is a pyproj version issue. You can solve this by explicitly installing a pyproj version before 2.2 (2.1 works just fine).

mdbartos commented 4 years ago

Thanks for your patience. @KMarkert is correct. I will take a look at patching this when I get some time next week. (Also, feel free to submit pull requests if you find that anything is broken).

mdbartos commented 4 years ago

Greetings. This has been resolved in PR #108 (allows for versions of pyproj both > or < 2.2). Let me know if you encounter any more problems.

LorenzoBottaccioli commented 3 years ago

@mdbartos still have the issue in version 2.5 and 3.0.1

ciao

mdbartos commented 2 years ago

Greetings. The offending code was removed in v0.3. I'd recommend upgrading.