[GRASS-dev] [SoC] Week 7 Report - Full support of Python 3 in GRASS GIS

Hi everyone,

This is my week Week 7 report for the project "Full support of Python
3 in GRASS GIS"

1) What did I complete this week?

    Updated ctypes to deal with bytes[0]
    Worked on 'temporal' library [1], lot of errors were encountered
    Looked into issues for 'pygrass' testsuites which were failing too
    Created a spreadsheet[2] detailing errors and information
regarding the temporal testsuites
    Also, updated the pygrass testsuite details on spreadsheet[3]

2) What am I going to achieve for the next week?

    Start exploring GUI library, starting with mapdisp and imgr
    Continue working on fixing ctypes module
    Continue working on 'temporal' library

3) Is there any blocking issue?
    Ctypes are not fully compatible with the Python3 even if they are
compiling without any issues. Discussed witb mentors about the next
steps and how to deal with ctypes.
    Will discuss more about the upcoming milestones and how ctypes
handling is to be done so as not to interfare too much with the
pending work.

The link to my wiki page is here [4].

[0] https://github.com/sanjeetbhatti/FullSupportPython3/blob/master/grass_trunk/lib-python-ctypes/patch_ctypes_changes_from_fork.diff
[1] https://github.com/sanjeetbhatti/FullSupportPython3/blob/master/grass_trunk/lib-python-temporal/patch_temporal.diff
[2] https://docs.google.com/spreadsheets/d/1eAIJtegNWSbBscFChhQzMTl0vmbGPjmrW_013hSw9bI/edit#gid=408919374
[3] https://docs.google.com/spreadsheets/d/1eAIJtegNWSbBscFChhQzMTl0vmbGPjmrW_013hSw9bI/edit#gid=587128881
[4] https://trac.osgeo.org/grass/wiki/GSoC/2018/FullSupportPython3#Week7

Thanks,
Sanjeet

3) Is there any blocking issue?

> Ctypes are not fully compatible with the Python3 even if they are

compiling without any issues. Discussed witb mentors about the >next
steps and how to deal with ctypes.

ctypes seems not to be actively maintained anymore. Are there any
alternatives?

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html

On Mon, Jul 2, 2018 at 6:39 AM Helmut Kudrnovsky <hellik@web.de> wrote:

  1. Is there any blocking issue?
    Ctypes are not fully compatible with the Python3 even if they are
    compiling without any issues. Discussed witb mentors about the >next
    steps and how to deal with ctypes.

ctypes seems not to be actively maintained anymore. Are there any
alternatives?

ctypes is standard Python package, ctypesgen is what is not much maintained, although there are forks with some Python3 changes Sanjeet was using. There are alternatives to ctypes such as cffi, Pietro did some initial work. However given the fact that neither Sanjeet nor we mentors are familiar with this, we decided to attempt to fix the ctypesgen library, any other option would not fit the timeline of this GSoC. Sanjeet got pretty far so hopefully we can eventually got it working fully.

Anna


best regards
Helmut

Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Hi Anna,

ctypes is standard Python package, ctypesgen is what is not much maintained

yes I meant ctypesgen.

although there are forks with some Python3 changes Sanjeet was using.
There are alternatives to ctypes >such as cffi, Pietro did some initial
work. However given the fact that neither Sanjeet nor we mentors are
>familiar with this, we decided to attempt to fix the ctypesgen library,
any other option would not fit the >timeline of this GSoC. Sanjeet got
pretty far so hopefully we can eventually got it working fully.

thanks for the insights-

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html