Closed paulmelis closed 1 year ago
The line /usr/bin/env python in hexmap.py might resolve to Python 3.x for some users (including me). The division for d in
/usr/bin/env python
hexmap.py
d
https://github.com/lifelike/hexmapextension/blob/11401e23889318bdefb72df6980393050299d8cc/hexmap.py#L36-L39
then no longer returns an integer with Python 3, but a float value (as / is changed in Py 3). Which causes an issue for the return value. Replacing d = c / 26 with d = c // 26 fixes it and also works in Python 2.
/
d = c / 26
d = c // 26
Good catch! This must be fixed as part of supporting Inkscape 1.0.
This was fixed by commit 58e9830cf9f5841a112743b9f05b4bf1a0b60a6f by Mario Voigt as part of updating this extension to work with Inkscape 1.0.
The line
/usr/bin/env python
inhexmap.py
might resolve to Python 3.x for some users (including me). The division ford
inhttps://github.com/lifelike/hexmapextension/blob/11401e23889318bdefb72df6980393050299d8cc/hexmap.py#L36-L39
then no longer returns an integer with Python 3, but a float value (as
/
is changed in Py 3). Which causes an issue for the return value. Replacingd = c / 26
withd = c // 26
fixes it and also works in Python 2.