-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] v.rast.bufferstats python 2 vs python 3 issue #274
Comments
neteler
added a commit
that referenced
this issue
Sep 17, 2020
* minor compile fixes * unicode() compatibility fix for Python-2/Python-3 Uses compatibility test from https://github.com/OSGeo/grass/blob/0a5097cd0e53f3df8285a3bef68b43e8050d273e/lib/python/script/core.py#L37 (and many other places in GRASS-core) Fixes #274
I have added a unicode() compatibility fix for both Python-2 and Python-3. |
Thank you 👍 |
landam
pushed a commit
to landam/grass-addons
that referenced
this issue
Nov 19, 2020
* minor compile fixes * unicode() compatibility fix for Python-2/Python-3 Uses compatibility test from https://github.com/OSGeo/grass/blob/0a5097cd0e53f3df8285a3bef68b43e8050d273e/lib/python/script/core.py#L37 (and many other places in GRASS-core) Fixes OSGeo#274
landam
pushed a commit
to landam/grass-addons
that referenced
this issue
Dec 10, 2020
* minor compile fixes * unicode() compatibility fix for Python-2/Python-3 Uses compatibility test from https://github.com/OSGeo/grass/blob/0a5097cd0e53f3df8285a3bef68b43e8050d273e/lib/python/script/core.py#L37 (and many other places in GRASS-core) Fixes OSGeo#274
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
v.rast.bufferstats.py
The
unicode()
python 2 function fails for Python 3. It should be replaced bystr()
according to this porting guide. After manually replacingunicode
withstr
on line 339 the problem was gone.To Reproduce
Just taking the example from the manual here. Not tested, but expect it will show same error (see screenshot).
Expected behavior
v.rast.bufferstats exits with calculated results
Screenshots
System description (please complete the following information):
The text was updated successfully, but these errors were encountered: