Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Mon, Sep 3, 2018 at 8:47 PM Markus Neteler wrote: > On Mon, Sep 3, 2018 at 3:48 PM Anna Petrášová wrote: > > also, we have now new small dependency - Python 'six' package > > ok, perhaps to be added in REQUIREMENTS.txt as well? Done in https://trac.osgeo.org/grass/changeset/74469 Markus ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Thu, Sep 13, 2018 at 10:30 PM Anna Petrášová wrote: > On Tue, Sep 4, 2018 at 2:00 AM Markus Neteler wrote: [...] >> # seen in the terminal: >> >> from grass.pygrass.vector import VectorTopo >> File >> "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/etc/python/grass/pygrass/vector/__init__.py", >> line 7, in >> import grass.lib.vector as libvect >> File >> "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/etc/python/grass/lib/vector.py", >> line 5863 >> PORT_LONG_MAX = 2147483647L >> ^ >> SyntaxError: invalid syntax >> > > regarding this issue, make sure you compile GRASS with Python 3. I get this > if I compile it > with Python2 and then open it with Python 3. BTW: I have added that here: https://trac.osgeo.org/grass/wiki/Python3Support#Troubleshooting Markus ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Tue, Sep 4, 2018 at 2:00 AM Markus Neteler wrote: > On Tue, Sep 4, 2018 at 12:39 AM Anna Petrášová > wrote: > > > > are you sure you did make distclean? > > You are right, solved with that. > > Here a few more issues: At wxGUI startup: > > ## > # seen in the terminal: > > from grass.pygrass.vector import VectorTopo > File > "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/etc/python/grass/pygrass/vector/__init__.py", > line 7, in > import grass.lib.vector as libvect > File > "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/etc/python/grass/lib/vector.py", > line 5863 > PORT_LONG_MAX = 2147483647L > ^ > SyntaxError: invalid syntax > > regarding this issue, make sure you compile GRASS with Python 3. I get this if I compile it with Python2 and then open it with Python 3. Anna > > > Markus > ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
Hi, pá 7. 9. 2018 v 22:57 odesílatel Helmut Kudrnovsky napsal: > so I'm not sure that virtualenv will be a helping solution to test python3 > in winGRASS. probably a new temporary package could be introduced into testing OSGeo4W area, eg. `grass-daily-py3` or so with Python3 dependencies. I am planning to do first tests on building machine in the next days/weeks. Ma -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
>So far it seems to be that the Python virtual env works and, alternatively, changing PATH (perhaps >together with creating a symlink) should work too. Also those who needed to workaround that they distro >has python -> python3 symlink don't need to do the workaround anymore. Finally, we could include patch, >or perhaps a sed/awk/python script, to change the shebangs in the local copy of the code. Mac OS and MS >Windows might be little different, but the virtual env approach should be applicable everywhere. after some testing and searching in the net, it's really a pain to setup a working python virtualenv in windows to compile winGRASS. and that's just compiling, not talking about starting winGRASS in a python virtualenv. The root cause may be that virtualenv's list of built-in modules is much smaller than the system python's list. I didn't find a way to solve this issue [1]. so I'm not sure that virtualenv will be a helping solution to test python3 in winGRASS. [1] https://lists.osgeo.org/pipermail/grass-dev/2018-September/089630.html - 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
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Thu, Sep 6, 2018 at 4:41 PM Markus Metz wrote: > > That means that trunk will continue to use python2 by default, and it also > requires that the link python is installed, which will, if installed, refer > to the same target as python2. > > If we want to get python3 support tested in trunk, we must make it clear > to testers that python must refer to python3, contrary to PEP394, i.e. "the > user deliberately overrides this". > > IMHO, we would get more feedback on python3 support if we change the > shebang to python3 in trunk. > Makes sense, but I don't think we should do that right now. We already know many things don't work with Python 3 at all - I'm thinking about all things dependent on ctypes - so we would seriously reduced the functionality for the people who are using trunk for real work (so far we always had people doing it and supported that AFAICT). We are now getting some testing done and in some time, when Python 3 support is more complete and/or we are not getting enough testing, we can change the shebang. So far it seems to be that the Python virtual env works and, alternatively, changing PATH (perhaps together with creating a symlink) should work too. Also those who needed to workaround that they distro has python -> python3 symlink don't need to do the workaround anymore. Finally, we could include patch, or perhaps a sed/awk/python script, to change the shebangs in the local copy of the code. Mac OS and MS Windows might be little different, but the virtual env approach should be applicable everywhere. ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Thu, Sep 6, 2018 at 5:28 AM Vaclav Petras wrote: > > > > On Wed, Sep 5, 2018 at 3:57 PM Markus Metz wrote: >> >> >> >> On Wed, Sep 5, 2018 at 9:41 PM Martin Landa wrote: >> > >> > Hi, >> > >> > st 5. 9. 2018 v 21:38 odesílatel Markus Metz >> > napsal: >> > > alternatively, the shebang in GRASS *.py files can be changed to python3 (should be changed to python3 according to Python developer's Guide PEP394) >> > >> > we are going to support both Python2 and 3, at least for 7.6/7.8, right? Ma >> >> the symbolic link python is deprecated and will disappear soon from current distros: GRASS does not work if python does not exist, while python2 and/or python3 might exist. Current distros are already replacing the shebang in GRASS *.py files with python2. IMHO, if we want to support python3 we need to change the shebang accordingly: no more support for python2 in trunk. >> >> - python as a link to python2 is no longer available on modern distros >> - python3 is older than GRASS7 >> - all currently supported distros provide a full python3 environment > > > Hi Markus and Martin, > > That being said, GRASS GIS does not fully support Python 3 yet and, with exception of few contributions, there was no major work done on the Python 3 support up until recently, i.e. we are not ready to switch to 3 for 7.6. I think we can have something like "technical preview" in 7.8 (e.g. with warning "use 3 only if you have to"). 8.0 should fully support 3. > > Another thing is that Python 3 means using wxPython 4 to get the GUI (other wxPythons don't support Python 3). That was hard to do for quite some time (4.0.0 released in January), but now it is included, e.g., in Ubuntu 18.04 (released April). > > As for the shebang, PEP394 says: "for the time being, all distributions should ensure that python, if installed, refers to the same target as python2, unless the user deliberately overrides this or a virtual environment is active" and that "python should be used in the shebang line only for scripts that are source compatible with both Python 2 and 3" which is what we aim for. So that tells me we should keep there `python` and if a distro decides to patch it to 2 (because their `python` does not point to `python2` as PEP394 suggests) or perhaps later to 3 (because they want to ensure `python3`), they are free to do that. We are not planning to drop support for 2, so keeping `python` in shebang is appropriate in the long term according to PEP394. That means that trunk will continue to use python2 by default, and it also requires that the link python is installed, which will, if installed, refer to the same target as python2. If we want to get python3 support tested in trunk, we must make it clear to testers that python must refer to python3, contrary to PEP394, i.e. "the user deliberately overrides this". IMHO, we would get more feedback on python3 support if we change the shebang to python3 in trunk. Markus M > > Best, > Vaclav > > > Links: > https://wxpython.org/news/wxpython-4.0.0-release/index.html > https://wxpython.org/news/wxpython-4.0.0a1-release/index.html > https://launchpad.net/ubuntu/+source/wxpython4.0 > https://www.python.org/dev/peps/pep-0394/ > >> >> >> Markus M >> >> ___ >> grass-dev mailing list >> grass-dev@lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/grass-dev ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Wed, Sep 5, 2018 at 3:57 PM Markus Metz wrote: > > > On Wed, Sep 5, 2018 at 9:41 PM Martin Landa > wrote: > > > > Hi, > > > > st 5. 9. 2018 v 21:38 odesílatel Markus Metz > > napsal: > > > alternatively, the shebang in GRASS *.py files can be changed to > python3 (should be changed to python3 according to Python developer's Guide > PEP394) > > > > we are going to support both Python2 and 3, at least for 7.6/7.8, right? > Ma > > the symbolic link python is deprecated and will disappear soon from > current distros: GRASS does not work if python does not exist, while > python2 and/or python3 might exist. Current distros are already replacing > the shebang in GRASS *.py files with python2. IMHO, if we want to support > python3 we need to change the shebang accordingly: no more support for > python2 in trunk. > > - python as a link to python2 is no longer available on modern distros > - python3 is older than GRASS7 > - all currently supported distros provide a full python3 environment > Hi Markus and Martin, That being said, GRASS GIS does not fully support Python 3 yet and, with exception of few contributions, there was no major work done on the Python 3 support up until recently, i.e. we are not ready to switch to 3 for 7.6. I think we can have something like "technical preview" in 7.8 (e.g. with warning "use 3 only if you have to"). 8.0 should fully support 3. Another thing is that Python 3 means using wxPython 4 to get the GUI (other wxPythons don't support Python 3). That was hard to do for quite some time (4.0.0 released in January), but now it is included, e.g., in Ubuntu 18.04 (released April). As for the shebang, PEP394 says: "for the time being, all distributions *should* ensure that python, if installed, refers to the same target as python2, unless the user deliberately overrides this or a virtual environment is active" and that "python should be used in the shebang line only for scripts that are source compatible with both Python 2 and 3" which is what we aim for. So that tells me we should keep there `python` and if a distro decides to patch it to 2 (because their `python` does not point to `python2` as PEP394 suggests) or perhaps later to 3 (because they want to ensure `python3`), they are free to do that. We are not planning to drop support for 2, so keeping `python` in shebang is appropriate in the long term according to PEP394. Best, Vaclav Links: https://wxpython.org/news/wxpython-4.0.0-release/index.html https://wxpython.org/news/wxpython-4.0.0a1-release/index.html https://launchpad.net/ubuntu/+source/wxpython4.0 https://www.python.org/dev/peps/pep-0394/ > > Markus M > > ___ > grass-dev mailing list > grass-dev@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/grass-dev ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Wed, Sep 5, 2018 at 9:41 PM Martin Landa wrote: > > Hi, > > st 5. 9. 2018 v 21:38 odesílatel Markus Metz > napsal: > > alternatively, the shebang in GRASS *.py files can be changed to python3 (should be changed to python3 according to Python developer's Guide PEP394) > > we are going to support both Python2 and 3, at least for 7.6/7.8, right? Ma the symbolic link python is deprecated and will disappear soon from current distros: GRASS does not work if python does not exist, while python2 and/or python3 might exist. Current distros are already replacing the shebang in GRASS *.py files with python2. IMHO, if we want to support python3 we need to change the shebang accordingly: no more support for python2 in trunk. - python as a link to python2 is no longer available on modern distros - python3 is older than GRASS7 - all currently supported distros provide a full python3 environment Markus M ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
Hi, st 5. 9. 2018 v 21:38 odesílatel Markus Metz napsal: > alternatively, the shebang in GRASS *.py files can be changed to python3 > (should be changed to python3 according to Python developer's Guide PEP394) we are going to support both Python2 and 3, at least for 7.6/7.8, right? Ma -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Mon, Sep 3, 2018 at 8:28 AM Markus Neteler wrote: [...] > > Could you please post a few lines how to properly do the testing with > virtualenv? If python3 with all required packages is already installed on the system, there is a simpler solution than virtualenv: mkdir ~/bin_p3 ln -s /usr/bin/python3 ~/bin_p3/python # make python3 the default python interpreter export PATH="~/bin_p3:$PATH" compile GRASS and run GRASS with these PATH settings alternatively, the shebang in GRASS *.py files can be changed to python3 (should be changed to python3 according to Python developer's Guide PEP394) Markus M ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
> > Deprecated since version 2.7: The optparse module is deprecated and will not >> be developed further; development will continue with the argparse module. > >Can you add optparse package? It's weird, it should be part of standard Python library: >https://docs.python.org/3.7/library/optparse.html some tests in the MSYS2/mingw build environment. outside of an virtual environment $ python3 --version Python 3.7.0 $ python3 Python 3.7.0 (default, Aug 3 2018, 11:56:18) [GCC 8.2.0 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import optparse >>> import argparse >>> --- inside the virtual environment --- $ source Scripts/activate (grasspy3) $ python --version Python 3.7.0 (grasspy3) $ python3 Python 3.7.0 (default, Aug 3 2018, 11:56:18) [GCC 8.2.0 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import optparse Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'optparse' >>> import argparse Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'argparse' --- the missing optparse here seems to be a local virtual environment issue. any idea to how to solve this? - 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
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
Martin Landa wrote > Hi, > > út 4. 9. 2018 v 16:22 odesílatel Jürgen E. Fischer > jef@ > napsal: >> Also added a wxpython transitional package that depends on python-wx. >> msys-grass and in turn grass6 still depend on it. > > I would prefer to avoid any transitional packages if possible. I have > updated grass6 setup.ini to use new python-wx package instead. Ma > > > -- > Martin Landa > http://geo.fsv.cvut.cz/gwiki/Landa > http://gismentors.cz/mentors/landa > ___ > grass-dev mailing list > grass-dev@.osgeo > https://lists.osgeo.org/mailman/listinfo/grass-dev IMHO GRASS 6 should be retired, archived and removed from OSGeo4W. It's very old, outdated and not maintained anymore. - 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
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Tue, Sep 4, 2018 at 4:21 PM Anna Petrášová wrote: > > Those easy ones should be fixed now, please test Excellent. I had to take out the trailing "L" in a few lines of vector.py, then the wxGUI came up. I can now also reach the system info: 3D view mode not available Reason: No module named 'wxnviz' System Info GRASS version: 7.7.svn GRASS SVN revision: r73241 Build date: 2018-09-04 Build platform: x86_64-pc-linux-gnu GDAL: 2.2.4 PROJ.4: 4.9.3 GEOS: 3.6.1 SQLite: 3.22.0 Python: 3.6.6 wxPython: 4.0.3 Platform: Linux-4.17.18-200.fc28.x86_64-x86_64-with-fedora-28-Twenty_Eight Congrats so far! :) Markus ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
Hi, út 4. 9. 2018 v 16:22 odesílatel Jürgen E. Fischer napsal: > Also added a wxpython transitional package that depends on python-wx. > msys-grass and in turn grass6 still depend on it. I would prefer to avoid any transitional packages if possible. I have updated grass6 setup.ini to use new python-wx package instead. Ma -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
Hi Martin, On Tue, 04. Sep 2018 at 15:55:25 +0200, Martin Landa wrote: > po 3. 9. 2018 v 21:19 odesílatel Helmut Kudrnovsky napsal: > > some notes added there how to compile winGRASS in a virtual python 3 > > environment. > new package `python3-wx` uploaded to OSGeo4W environment (both 32 and > 64bit). BTW, I have renamed current `wxpython` package to `python-wx`. Also added a wxpython transitional package that depends on python-wx. msys-grass and in turn grass6 still depend on it. Jürgen -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de signature.asc Description: PGP signature norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH Rheinstrasse 13, 26506 Norden GF: Jelto Buurman, HR: Amtsgericht Aurich HRB 100827 Datenschutzerklaerung: https://www.norbit.de/83/ ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
Those easy ones should be fixed now, please test On Tue, Sep 4, 2018 at 9:21 AM Anna Petrášová wrote: > > > On Tue, Sep 4, 2018 at 2:00 AM Markus Neteler wrote: > >> On Tue, Sep 4, 2018 at 12:39 AM Anna Petrášová >> wrote: >> > >> > are you sure you did make distclean? >> >> You are right, solved with that. >> >> Here a few more issues: At wxGUI startup: >> >> ### in the terminal: >> 07:37:09: Debug: Adding duplicate image handler for 'Windows bitmap file' >> 07:37:09: Debug: Adding duplicate image handler for 'Windows bitmap file' >> > > not sure about this, but seems minor right now > >> >> --> perhaps from an underlying lib? >> >> ### in the wxGUI console: >> > Menu > System info >> >> 3D view mode not available >> Reason: name 'WindowsError' is not defined >> Vector digitizer not available >> Reason: name 'WindowsError' is not defined >> Note that the wxGUI's vector digitizer is disabled in this >> installation. Please keep an eye out for updated versions of >> GRASS. In the meantime you can use "v.edit" for non- >> interactive editing from the Develop vector map menu. >> /home/mneteler/software/grass77/dist.x86_64-pc-linux- >> gnu/gui/wxpython/mapwin/buffered.py:406: >> > > generally, that's the problem with ctypes which is not fixed yet, I can > look what that 'WindowsError' means specifically > > >> wxPyDeprecationWarning: Call to deprecated item. Use >> DrawLine instead. >> coords[i][1])) >> > > minor, should be easy to get rid of it > > >> System Info >> Traceback (most recent call last): >> File "/home/mneteler/software/grass77/dist.x86_64-pc- >> linux-gnu/gui/wxpython/lmgr/frame.py", line 1259, in >> OnSystemInfo >> >> _("Platform"), platform.platform().decode('utf8', >> 'replace'), osgeo4w), >> AttributeError >> : >> 'str' object has no attribute 'decode' >> >> > I will look at that, should be easy > >> >> ## >> >> display raster > select map > OK button >> >> /home/mneteler/software/grass77/dist.x86_64-pc-linux- >> gnu/gui/wxpython/mapwin/buffered.py:406: >> wxPyDeprecationWarning: Call to deprecated item. Use >> DrawLine instead. >> coords[i][1])) >> /home/mneteler/software/grass77/dist.x86_64-pc-linux- >> gnu/gui/wxpython/mapwin/buffered.py:406: >> wxPyDeprecationWarning: Call to deprecated item. Use >> DrawLine instead. >> coords[i][1])) >> >> ## >> # seen in the terminal: >> >> from grass.pygrass.vector import VectorTopo >> File >> "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/etc/python/grass/pygrass/vector/__init__.py", >> line 7, in >> import grass.lib.vector as libvect >> File >> "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/etc/python/grass/lib/vector.py", >> line 5863 >> PORT_LONG_MAX = 2147483647L >> ^ >> SyntaxError: invalid syntax >> >> > as I said, that's the ctypes problem, weird is I don't get this specific > problem, when I compile it, I get PORT_LONG_MAX = 2147483647 (without the > L) > >> >> >> Markus >> > ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
Hi, po 3. 9. 2018 v 21:19 odesílatel Helmut Kudrnovsky napsal: > some notes added there how to compile winGRASS in a virtual python 3 > environment. new package `python3-wx` uploaded to OSGeo4W environment (both 32 and 64bit). BTW, I have renamed current `wxpython` package to `python-wx`. Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Tue, Sep 4, 2018 at 3:21 PM Anna Petrášová wrote: > On Tue, Sep 4, 2018 at 2:00 AM Markus Neteler wrote: ... >> ## >> # seen in the terminal: >> >> from grass.pygrass.vector import VectorTopo >> File >> "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/etc/python/grass/pygrass/vector/__init__.py", >> line 7, in >> import grass.lib.vector as libvect >> File >> "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/etc/python/grass/lib/vector.py", >> line 5863 >> PORT_LONG_MAX = 2147483647L >> ^ >> SyntaxError: invalid syntax >> > > as I said, that's the ctypes problem, weird is I don't get this specific > problem, when I compile it, I get PORT_LONG_MAX = 2147483647 (without the L) On my Fedora 28 box, I get [mneteler@oboe ctypes ]$ pwd /home/mneteler/software/grass77/lib/python/ctypes [mneteler@oboe ctypes ]$ ag PORT_LONG_MAX OBJ.x86_64-pc-linux-gnu/vector.py 6562:PORT_LONG_MAX = 2147483647L 7256:PORT_LONG_MAX = 2147483647L [mneteler@oboe ctypes ]$ gcc -v ... Target: x86_64-redhat-linux Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix gcc version 8.1.1 20180712 (Red Hat 8.1.1-5) (GCC) See (perhaps) also https://trac.osgeo.org/grass/ticket/3446 where PORT_LONG_MAX is mentioned. Markus ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Tue, Sep 4, 2018 at 2:00 AM Markus Neteler wrote: > On Tue, Sep 4, 2018 at 12:39 AM Anna Petrášová > wrote: > > > > are you sure you did make distclean? > > You are right, solved with that. > > Here a few more issues: At wxGUI startup: > > ### in the terminal: > 07:37:09: Debug: Adding duplicate image handler for 'Windows bitmap file' > 07:37:09: Debug: Adding duplicate image handler for 'Windows bitmap file' > not sure about this, but seems minor right now > > --> perhaps from an underlying lib? > > ### in the wxGUI console: > > Menu > System info > > 3D view mode not available > Reason: name 'WindowsError' is not defined > Vector digitizer not available > Reason: name 'WindowsError' is not defined > Note that the wxGUI's vector digitizer is disabled in this > installation. Please keep an eye out for updated versions of > GRASS. In the meantime you can use "v.edit" for non- > interactive editing from the Develop vector map menu. > /home/mneteler/software/grass77/dist.x86_64-pc-linux- > gnu/gui/wxpython/mapwin/buffered.py:406: > generally, that's the problem with ctypes which is not fixed yet, I can look what that 'WindowsError' means specifically > wxPyDeprecationWarning: Call to deprecated item. Use > DrawLine instead. > coords[i][1])) > minor, should be easy to get rid of it > System Info > Traceback (most recent call last): > File "/home/mneteler/software/grass77/dist.x86_64-pc- > linux-gnu/gui/wxpython/lmgr/frame.py", line 1259, in > OnSystemInfo > > _("Platform"), platform.platform().decode('utf8', > 'replace'), osgeo4w), > AttributeError > : > 'str' object has no attribute 'decode' > > I will look at that, should be easy > > ## > > display raster > select map > OK button > > /home/mneteler/software/grass77/dist.x86_64-pc-linux- > gnu/gui/wxpython/mapwin/buffered.py:406: > wxPyDeprecationWarning: Call to deprecated item. Use > DrawLine instead. > coords[i][1])) > /home/mneteler/software/grass77/dist.x86_64-pc-linux- > gnu/gui/wxpython/mapwin/buffered.py:406: > wxPyDeprecationWarning: Call to deprecated item. Use > DrawLine instead. > coords[i][1])) > > ## > # seen in the terminal: > > from grass.pygrass.vector import VectorTopo > File > "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/etc/python/grass/pygrass/vector/__init__.py", > line 7, in > import grass.lib.vector as libvect > File > "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/etc/python/grass/lib/vector.py", > line 5863 > PORT_LONG_MAX = 2147483647L > ^ > SyntaxError: invalid syntax > > as I said, that's the ctypes problem, weird is I don't get this specific problem, when I compile it, I get PORT_LONG_MAX = 2147483647 (without the L) > > > Markus > ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Tue, Sep 4, 2018 at 12:39 AM Anna Petrášová wrote: > > are you sure you did make distclean? You are right, solved with that. Here a few more issues: At wxGUI startup: ### in the terminal: 07:37:09: Debug: Adding duplicate image handler for 'Windows bitmap file' 07:37:09: Debug: Adding duplicate image handler for 'Windows bitmap file' --> perhaps from an underlying lib? ### in the wxGUI console: > Menu > System info 3D view mode not available Reason: name 'WindowsError' is not defined Vector digitizer not available Reason: name 'WindowsError' is not defined Note that the wxGUI's vector digitizer is disabled in this installation. Please keep an eye out for updated versions of GRASS. In the meantime you can use "v.edit" for non- interactive editing from the Develop vector map menu. /home/mneteler/software/grass77/dist.x86_64-pc-linux- gnu/gui/wxpython/mapwin/buffered.py:406: wxPyDeprecationWarning: Call to deprecated item. Use DrawLine instead. coords[i][1])) System Info Traceback (most recent call last): File "/home/mneteler/software/grass77/dist.x86_64-pc- linux-gnu/gui/wxpython/lmgr/frame.py", line 1259, in OnSystemInfo _("Platform"), platform.platform().decode('utf8', 'replace'), osgeo4w), AttributeError : 'str' object has no attribute 'decode' ## display raster > select map > OK button /home/mneteler/software/grass77/dist.x86_64-pc-linux- gnu/gui/wxpython/mapwin/buffered.py:406: wxPyDeprecationWarning: Call to deprecated item. Use DrawLine instead. coords[i][1])) /home/mneteler/software/grass77/dist.x86_64-pc-linux- gnu/gui/wxpython/mapwin/buffered.py:406: wxPyDeprecationWarning: Call to deprecated item. Use DrawLine instead. coords[i][1])) ## # seen in the terminal: from grass.pygrass.vector import VectorTopo File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/etc/python/grass/pygrass/vector/__init__.py", line 7, in import grass.lib.vector as libvect File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/etc/python/grass/lib/vector.py", line 5863 PORT_LONG_MAX = 2147483647L ^ SyntaxError: invalid syntax Markus ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Mon, Sep 3, 2018 at 6:33 PM Markus Neteler wrote: > On Mon, Sep 3, 2018 at 10:56 PM Anna Petrášová > wrote: > > > > > > > > On Mon, Sep 3, 2018 at 4:48 PM Markus Neteler wrote: > >> > >> Hi, > >> (reducing to grass-dev) > >> > >> ... while I wanted to test, my box fails on "pip install wxpython" in > >> the virtualenv-3: > >> > >> pip install wxpython > >> [...# 30min later: ...] > >> ... > >> Finding libs for WXAUI > : yes > >> 'configure' finished successfully (1.340s) > >> Waf: Entering directory > >> `/home/mneteler/tmp/pip-install-mwki9u85/wxpython/build/waf/3.6/gtk3' > >> [629/868] Linking > >> build/waf/3.6/gtk3/_glcanvas.cpython-36m-x86_64-linux-gnu.so > >> [630/868] Compiling sip/cpp/sip_html2wxWebViewHistoryItem.cpp > >> [631/868] Compiling sip/cpp/sip_html2wxWebViewHandler.cpp > >> [632/868] Compiling sip/cpp/sip_html2wxWebViewFactory.cpp > >> [633/868] Compiling sip/cpp/sip_html2wxWebViewFSHandler.cpp > >> ../../../../sip/cpp/sip_html2wxWebViewHistoryItem.cpp: In function > >> ‘PyObject* meth_wxWebViewHistoryItem_GetUrl(PyObject*, PyObject*)’: > >> ../../../../sip/cpp/sip_html2wxWebViewHistoryItem.cpp:24:12: > >> error: ‘::wxWebViewHistoryItem’ has not been declared > >> ::wxWebViewHistoryItem *sipCpp; > >> ^~~~ > >> ../../../../sip/cpp/sip_html2wxWebViewHistoryItem.cpp:24:12: note: > >> suggested alternative: ‘sipName_WebViewHistoryItem’ > >> ::wxWebViewHistoryItem *sipCpp; > >> > >> [... tons of sip errors...] > >> ... > >> Waf: Leaving directory > >> `/home/mneteler/tmp/pip-install-mwki9u85/wxpython/build/waf/3.6/gtk3' > >> Build failed > >> -> task in '_html2' failed with exit status 1 (run with -v to > >> display more information) > >> -> task in '_html2' failed with exit status 1 (run with -v to > >> display more information) > >> -> task in '_html2' failed with exit status 1 (run with -v to > >> display more information) > >> -> task in '_html2' failed with exit status 1 (run with -v to > >> display more information) > >> Command '"/home/mneteler/grasspy3/bin/python3" > >> /home/mneteler/tmp/pip-install-mwki9u85/wxpython/bin/waf-2.0.7 > >> > --wx_config=/home/mneteler/tmp/pip-install-mwki9u85/wxpython/build/wxbld/gtk3/wx-config > >> --gtk3 --python="/home/mneteler/grasspy3/bin/python3" > >> --out=build/waf/3.6/gtk3 configure build ' failed with exit code 1. > >> Finished command: build_py (0m8.387s) > >> Finished command: build (0m9.512s) > >> Command '"/home/mneteler/grasspy3/bin/python3" -u build.py build' > >> failed with exit code 1. > >> > >> > >> Command "/home/mneteler/grasspy3/bin/python3 -u -c "import setuptools, > >> > tokenize;__file__='/home/mneteler/tmp/pip-install-mwki9u85/wxpython/setup.py';f=getattr(tokenize, > >> 'open', open)(__file__);code=f.read().replace('\r\n', > >> '\n');f.close();exec(compile(code, __file__, 'exec'))" install > >> --record /home/mneteler/tmp/pip-record-sdim1_xp/install-record.txt > >> --single-version-externally-managed --compile --install-headers > >> /home/mneteler/grasspy3/include/site/python3.6/wxpython" failed with > >> error code 1 in /home/mneteler/tmp/pip-install-mwki9u85/wxpython/ > >> > >> Any idea? > > > > > > it looks like it's missing a package, on ubuntu it's libwebkit-dev > > Thanks, that is on Fedora: > webkit2gtk3-devel > > Now I got also wxpython compiled (30min of compilation on my laptop). > > Now the wxGUI start screen comes up. > Once in the session, this error appears: > > GRASS 7.7.svn (nc_spm_08_grass7):~ > 00:29:58: Debug: Adding duplicate > image handler for 'Windows bitmap file' > 00:29:58: Debug: Adding duplicate image handler for 'Windows bitmap file' > Traceback (most recent call last): > File > "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/gui/wxpython/wxgui.py", > line 101, in OnInit > from lmgr.frame import GMFrame > File > "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/gui/wxpython/lmgr/frame.py", > line 50, in > from lmgr.layertree import LayerTree, LMIcons > File > "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/gui/wxpython/lmgr/layertree.py", > line 38, in > from mapdisp.frame import MapFrame > File > "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/gui/wxpython/mapdisp/frame.py", > line 43, in > from mapwin.buffered import BufferedMapWindow > File > "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/gui/wxpython/mapwin/buffered.py", > line 52, in > import grass.lib.gis as gislib > File > "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/etc/python/grass/lib/gis.py", > line 988, in > G_asprintf = _variadic_function(_func,_restype,_argtypes) > TypeError: __init__() missing 1 required positional argument: 'errcheck' > OnInit returned false, exiting... > GRASS 7.7.svn (nc_spm_08_grass7):~ > > are you sure you
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Mon, Sep 3, 2018 at 10:56 PM Anna Petrášová wrote: > > > > On Mon, Sep 3, 2018 at 4:48 PM Markus Neteler wrote: >> >> Hi, >> (reducing to grass-dev) >> >> ... while I wanted to test, my box fails on "pip install wxpython" in >> the virtualenv-3: >> >> pip install wxpython >> [...# 30min later: ...] >> ... >> Finding libs for WXAUI : yes >> 'configure' finished successfully (1.340s) >> Waf: Entering directory >> `/home/mneteler/tmp/pip-install-mwki9u85/wxpython/build/waf/3.6/gtk3' >> [629/868] Linking >> build/waf/3.6/gtk3/_glcanvas.cpython-36m-x86_64-linux-gnu.so >> [630/868] Compiling sip/cpp/sip_html2wxWebViewHistoryItem.cpp >> [631/868] Compiling sip/cpp/sip_html2wxWebViewHandler.cpp >> [632/868] Compiling sip/cpp/sip_html2wxWebViewFactory.cpp >> [633/868] Compiling sip/cpp/sip_html2wxWebViewFSHandler.cpp >> ../../../../sip/cpp/sip_html2wxWebViewHistoryItem.cpp: In function >> ‘PyObject* meth_wxWebViewHistoryItem_GetUrl(PyObject*, PyObject*)’: >> ../../../../sip/cpp/sip_html2wxWebViewHistoryItem.cpp:24:12: >> error: ‘::wxWebViewHistoryItem’ has not been declared >> ::wxWebViewHistoryItem *sipCpp; >> ^~~~ >> ../../../../sip/cpp/sip_html2wxWebViewHistoryItem.cpp:24:12: note: >> suggested alternative: ‘sipName_WebViewHistoryItem’ >> ::wxWebViewHistoryItem *sipCpp; >> >> [... tons of sip errors...] >> ... >> Waf: Leaving directory >> `/home/mneteler/tmp/pip-install-mwki9u85/wxpython/build/waf/3.6/gtk3' >> Build failed >> -> task in '_html2' failed with exit status 1 (run with -v to >> display more information) >> -> task in '_html2' failed with exit status 1 (run with -v to >> display more information) >> -> task in '_html2' failed with exit status 1 (run with -v to >> display more information) >> -> task in '_html2' failed with exit status 1 (run with -v to >> display more information) >> Command '"/home/mneteler/grasspy3/bin/python3" >> /home/mneteler/tmp/pip-install-mwki9u85/wxpython/bin/waf-2.0.7 >> --wx_config=/home/mneteler/tmp/pip-install-mwki9u85/wxpython/build/wxbld/gtk3/wx-config >> --gtk3 --python="/home/mneteler/grasspy3/bin/python3" >> --out=build/waf/3.6/gtk3 configure build ' failed with exit code 1. >> Finished command: build_py (0m8.387s) >> Finished command: build (0m9.512s) >> Command '"/home/mneteler/grasspy3/bin/python3" -u build.py build' >> failed with exit code 1. >> >> >> Command "/home/mneteler/grasspy3/bin/python3 -u -c "import setuptools, >> tokenize;__file__='/home/mneteler/tmp/pip-install-mwki9u85/wxpython/setup.py';f=getattr(tokenize, >> 'open', open)(__file__);code=f.read().replace('\r\n', >> '\n');f.close();exec(compile(code, __file__, 'exec'))" install >> --record /home/mneteler/tmp/pip-record-sdim1_xp/install-record.txt >> --single-version-externally-managed --compile --install-headers >> /home/mneteler/grasspy3/include/site/python3.6/wxpython" failed with >> error code 1 in /home/mneteler/tmp/pip-install-mwki9u85/wxpython/ >> >> Any idea? > > > it looks like it's missing a package, on ubuntu it's libwebkit-dev Thanks, that is on Fedora: webkit2gtk3-devel Now I got also wxpython compiled (30min of compilation on my laptop). Now the wxGUI start screen comes up. Once in the session, this error appears: GRASS 7.7.svn (nc_spm_08_grass7):~ > 00:29:58: Debug: Adding duplicate image handler for 'Windows bitmap file' 00:29:58: Debug: Adding duplicate image handler for 'Windows bitmap file' Traceback (most recent call last): File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/gui/wxpython/wxgui.py", line 101, in OnInit from lmgr.frame import GMFrame File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/gui/wxpython/lmgr/frame.py", line 50, in from lmgr.layertree import LayerTree, LMIcons File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/gui/wxpython/lmgr/layertree.py", line 38, in from mapdisp.frame import MapFrame File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/gui/wxpython/mapdisp/frame.py", line 43, in from mapwin.buffered import BufferedMapWindow File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/gui/wxpython/mapwin/buffered.py", line 52, in import grass.lib.gis as gislib File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/etc/python/grass/lib/gis.py", line 988, in G_asprintf = _variadic_function(_func,_restype,_argtypes) TypeError: __init__() missing 1 required positional argument: 'errcheck' OnInit returned false, exiting... GRASS 7.7.svn (nc_spm_08_grass7):~ > Markus ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
>Can you add optparse package? It's weird, it should be part of >standard Python library: >https://docs.python.org/3.7/library/optparse.html Looking at these Docs: 37.1. optparse — Parser for command line options¶ Source code: Lib/optparse.py Deprecated since version 3.2: The optparse module is deprecated and will not be developed further; development will continue with the argparse module. I'll look tomorrow at it - 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
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Mon, Sep 3, 2018 at 5:29 PM Helmut Kudrnovsky wrote: > Helmut Kudrnovsky wrote > > Markus Neteler wrote > Could you please post a few lines how to properly do the testing with > virtualenv? > >>> > >>> https://trac.osgeo.org/grass/wiki/Python3Support#Howtotest > >> > >> Thanks. > >> I took liberty to expand that section a bit (a bit more text; and with > >> hints for Fedora users as well). > > > > some notes added there how to compile winGRASS in a virtual python 3 > > environment. > > compiling winGRASS-python3 along this notes [but forgotten to do svn up > ;-)]; with this old svn status, compilation > > > -- > test@DESKTOP-VADT8Q4 MINGW64 /usr/src/grasspy3/grass_trunk > $ PACKAGE_POSTFIX=-daily OSGEO4W_POSTFIX=64 ./mswindows/osgeo4w/package.sh > GRASS GIS 7.7.svn r73230M compilation log > -- > Started compilation: Mon Sep 3 21:01:57 CEST 2018 > -- > Errors in: > /usr/src/grasspy3/grass_trunk/lib/python/ctypes > -- > In case of errors please change into the directory with error and run > 'make'. > If you get multiple errors, you need to deal with them in the order they > appear in the error log. If you get an error building a library, you will > also get errors from anything which uses the library. > -- > Finished compilation: Mon Sep 3 21:58:44 CEST 2018 > (grasspy3) > -- > > switching to the related directory > > -- > test@DESKTOP-VADT8Q4 MINGW64 /usr/src/grasspy3/grass_trunk > $ cd lib/python/ctypes > (grasspy3) > make > > make > /usr/src/grasspy3/grass_trunk/dist.x86_64-w64-mingw32/etc/python/grass/lib > make[1]: Entering directory > '/usr/src/grasspy3/grass_trunk/lib/python/ctypes' > make[1]: > > '/usr/src/grasspy3/grass_trunk/dist.x86_64-w64-mingw32/etc/python/grass/lib' > is up to date. > make[1]: Leaving directory > '/usr/src/grasspy3/grass_trunk/lib/python/ctypes' > make OBJ.x86_64-w64-mingw32/date.py OBJ.x86_64-w64-mingw32/gis.py > OBJ.x86_64-w64-mingw32/raster.py OBJ.x86_64-w64-mingw32/gmath.py O > [...] > > dows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl > " LC_ALL=C LANG=C LANGUAGE=C ./ctypesgen.py --cpp "gcc -E > -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64 -I/usr/src/grasspy3/gras > s_trunk/dist.x86_64-w64-mingw32/include > -I/usr/src/grasspy3/grass_trunk/dist.x86_64-w64-mingw32/include > -D__GLIBC_HAVE_LONG_LONG" -l > grass_gis.7.7.svn -lintl-8 > /usr/src/grasspy3/grass_trunk/dist.x86_64-w64-mingw32/include/grass/gis.h > /usr/src/grasspy3/grass_trunk > /dist.x86_64-w64-mingw32/include/grass/defs/gis.h > > /usr/src/grasspy3/grass_trunk/dist.x86_64-w64-mingw32/include/grass/colors.h > /usr/ > > src/grasspy3/grass_trunk/dist.x86_64-w64-mingw32/include/grass/defs/colors.h > -o OBJ.x86_64-w64-mingw32/gis.py > Traceback (most recent call last): > File "./ctypesgen.py", line 15, in > import optparse > ModuleNotFoundError: No module named 'optparse' > make[1]: *** [Makefile:102: OBJ.x86_64-w64-mingw32/gis.py] Error 1 > make[1]: Leaving directory > '/usr/src/grasspy3/grass_trunk/lib/python/ctypes' > make: *** [Makefile:81: default] Error 2 > (grasspy3) > -- > > looking at > > https://docs.python.org/2/library/optparse.html > > 15.5. optparse — Parser for command line options > > New in version 2.3. > > Deprecated since version 2.7: The optparse module is deprecated and will > not > be developed further; development will continue with the argparse module. > Can you add optparse package? It's weird, it should be part of standard Python library: https://docs.python.org/3.7/library/optparse.html > so it's maybe already fixed; will do a fresh svn checkout and compilation. > > no other issues found while compilation of winGRASS and python3 > > > > - > 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 ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Mon, Sep 3, 2018 at 11:15 PM Anna Petrášová wrote: > On Mon, Sep 3, 2018 at 4:56 PM Anna Petrášová wrote: >> On Mon, Sep 3, 2018 at 4:48 PM Markus Neteler wrote: ... >>> (grasspy3) [mneteler@oboe ~ ]$ python3 ~/bin/grass76 >>> Traceback (most recent call last): >>> File "/home/mneteler/bin/grass76", line 2162, in >>> main() >>> File "/home/mneteler/bin/grass76", line 2010, in main >>> set_paths(grass_config_dir=grass_config_dir) >>> File "/home/mneteler/bin/grass76", line 623, in set_paths >>> os.environ['MANPATH'] = sys_man_path >>> File "/home/mneteler/grasspy3/lib64/python3.6/os.py", line 674, in >>> __setitem__ >>> value = self.encodevalue(value) >>> File "/home/mneteler/grasspy3/lib64/python3.6/os.py", line 744, in encode >>> raise TypeError("str expected, not %s" % type(value).__name__) >>> TypeError: str expected, not bytes >>> >>> (same error as Martin) >> >> working on it, I don't get this because of some settings in my environment, >> which don't get to that line causing the error > > Try r73241 Works! GRASS 7.7.svn (nc_spm_08_grass7):~ > python --version Python 3.6.6 thanks, Markus ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
>compiling winGRASS-python3 along this notes [but forgotten to do svn up >;-)] it seems I did svn up, source status was quite new. - 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
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
Helmut Kudrnovsky wrote > Markus Neteler wrote Could you please post a few lines how to properly do the testing with virtualenv? >>> >>> https://trac.osgeo.org/grass/wiki/Python3Support#Howtotest >> >> Thanks. >> I took liberty to expand that section a bit (a bit more text; and with >> hints for Fedora users as well). > > some notes added there how to compile winGRASS in a virtual python 3 > environment. compiling winGRASS-python3 along this notes [but forgotten to do svn up ;-)]; with this old svn status, compilation -- test@DESKTOP-VADT8Q4 MINGW64 /usr/src/grasspy3/grass_trunk $ PACKAGE_POSTFIX=-daily OSGEO4W_POSTFIX=64 ./mswindows/osgeo4w/package.sh GRASS GIS 7.7.svn r73230M compilation log -- Started compilation: Mon Sep 3 21:01:57 CEST 2018 -- Errors in: /usr/src/grasspy3/grass_trunk/lib/python/ctypes -- In case of errors please change into the directory with error and run 'make'. If you get multiple errors, you need to deal with them in the order they appear in the error log. If you get an error building a library, you will also get errors from anything which uses the library. -- Finished compilation: Mon Sep 3 21:58:44 CEST 2018 (grasspy3) -- switching to the related directory -- test@DESKTOP-VADT8Q4 MINGW64 /usr/src/grasspy3/grass_trunk $ cd lib/python/ctypes (grasspy3) make make /usr/src/grasspy3/grass_trunk/dist.x86_64-w64-mingw32/etc/python/grass/lib make[1]: Entering directory '/usr/src/grasspy3/grass_trunk/lib/python/ctypes' make[1]: '/usr/src/grasspy3/grass_trunk/dist.x86_64-w64-mingw32/etc/python/grass/lib' is up to date. make[1]: Leaving directory '/usr/src/grasspy3/grass_trunk/lib/python/ctypes' make OBJ.x86_64-w64-mingw32/date.py OBJ.x86_64-w64-mingw32/gis.py OBJ.x86_64-w64-mingw32/raster.py OBJ.x86_64-w64-mingw32/gmath.py O [...] dows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl " LC_ALL=C LANG=C LANGUAGE=C ./ctypesgen.py --cpp "gcc -E -I/c/OSGeo4W64/include -D_FILE_OFFSET_BITS=64 -I/usr/src/grasspy3/gras s_trunk/dist.x86_64-w64-mingw32/include -I/usr/src/grasspy3/grass_trunk/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG" -l grass_gis.7.7.svn -lintl-8 /usr/src/grasspy3/grass_trunk/dist.x86_64-w64-mingw32/include/grass/gis.h /usr/src/grasspy3/grass_trunk /dist.x86_64-w64-mingw32/include/grass/defs/gis.h /usr/src/grasspy3/grass_trunk/dist.x86_64-w64-mingw32/include/grass/colors.h /usr/ src/grasspy3/grass_trunk/dist.x86_64-w64-mingw32/include/grass/defs/colors.h -o OBJ.x86_64-w64-mingw32/gis.py Traceback (most recent call last): File "./ctypesgen.py", line 15, in import optparse ModuleNotFoundError: No module named 'optparse' make[1]: *** [Makefile:102: OBJ.x86_64-w64-mingw32/gis.py] Error 1 make[1]: Leaving directory '/usr/src/grasspy3/grass_trunk/lib/python/ctypes' make: *** [Makefile:81: default] Error 2 (grasspy3) -- looking at https://docs.python.org/2/library/optparse.html 15.5. optparse — Parser for command line options New in version 2.3. Deprecated since version 2.7: The optparse module is deprecated and will not be developed further; development will continue with the argparse module. so it's maybe already fixed; will do a fresh svn checkout and compilation. no other issues found while compilation of winGRASS and python3 - 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
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Mon, Sep 3, 2018 at 4:56 PM Anna Petrášová wrote: > > > On Mon, Sep 3, 2018 at 4:48 PM Markus Neteler wrote: > >> Hi, >> (reducing to grass-dev) >> >> ... while I wanted to test, my box fails on "pip install wxpython" in >> the virtualenv-3: >> >> pip install wxpython >> [...# 30min later: ...] >> ... >> Finding libs for WXAUI : >> yes >> 'configure' finished successfully (1.340s) >> Waf: Entering directory >> `/home/mneteler/tmp/pip-install-mwki9u85/wxpython/build/waf/3.6/gtk3' >> [629/868] Linking >> build/waf/3.6/gtk3/_glcanvas.cpython-36m-x86_64-linux-gnu.so >> [630/868] Compiling sip/cpp/sip_html2wxWebViewHistoryItem.cpp >> [631/868] Compiling sip/cpp/sip_html2wxWebViewHandler.cpp >> [632/868] Compiling sip/cpp/sip_html2wxWebViewFactory.cpp >> [633/868] Compiling sip/cpp/sip_html2wxWebViewFSHandler.cpp >> ../../../../sip/cpp/sip_html2wxWebViewHistoryItem.cpp: In function >> ‘PyObject* meth_wxWebViewHistoryItem_GetUrl(PyObject*, PyObject*)’: >> ../../../../sip/cpp/sip_html2wxWebViewHistoryItem.cpp:24:12: >> error: ‘::wxWebViewHistoryItem’ has not been declared >> ::wxWebViewHistoryItem *sipCpp; >> ^~~~ >> ../../../../sip/cpp/sip_html2wxWebViewHistoryItem.cpp:24:12: note: >> suggested alternative: ‘sipName_WebViewHistoryItem’ >> ::wxWebViewHistoryItem *sipCpp; >> >> [... tons of sip errors...] >> ... >> Waf: Leaving directory >> `/home/mneteler/tmp/pip-install-mwki9u85/wxpython/build/waf/3.6/gtk3' >> Build failed >> -> task in '_html2' failed with exit status 1 (run with -v to >> display more information) >> -> task in '_html2' failed with exit status 1 (run with -v to >> display more information) >> -> task in '_html2' failed with exit status 1 (run with -v to >> display more information) >> -> task in '_html2' failed with exit status 1 (run with -v to >> display more information) >> Command '"/home/mneteler/grasspy3/bin/python3" >> /home/mneteler/tmp/pip-install-mwki9u85/wxpython/bin/waf-2.0.7 >> >> --wx_config=/home/mneteler/tmp/pip-install-mwki9u85/wxpython/build/wxbld/gtk3/wx-config >> --gtk3 --python="/home/mneteler/grasspy3/bin/python3" >> --out=build/waf/3.6/gtk3 configure build ' failed with exit code 1. >> Finished command: build_py (0m8.387s) >> Finished command: build (0m9.512s) >> Command '"/home/mneteler/grasspy3/bin/python3" -u build.py build' >> failed with exit code 1. >> >> >> Command "/home/mneteler/grasspy3/bin/python3 -u -c "import setuptools, >> >> tokenize;__file__='/home/mneteler/tmp/pip-install-mwki9u85/wxpython/setup.py';f=getattr(tokenize, >> 'open', open)(__file__);code=f.read().replace('\r\n', >> '\n');f.close();exec(compile(code, __file__, 'exec'))" install >> --record /home/mneteler/tmp/pip-record-sdim1_xp/install-record.txt >> --single-version-externally-managed --compile --install-headers >> /home/mneteler/grasspy3/include/site/python3.6/wxpython" failed with >> error code 1 in /home/mneteler/tmp/pip-install-mwki9u85/wxpython/ >> >> Any idea? >> > > it looks like it's missing a package, on ubuntu it's libwebkit-dev > > >> When simply ignoring the GUI for now: >> >> (grasspy3) [mneteler@oboe ~ ]$ python3 ~/bin/grass76 >> Traceback (most recent call last): >> File "/home/mneteler/bin/grass76", line 2162, in >> main() >> File "/home/mneteler/bin/grass76", line 2010, in main >> set_paths(grass_config_dir=grass_config_dir) >> File "/home/mneteler/bin/grass76", line 623, in set_paths >> os.environ['MANPATH'] = sys_man_path >> File "/home/mneteler/grasspy3/lib64/python3.6/os.py", line 674, in >> __setitem__ >> value = self.encodevalue(value) >> File "/home/mneteler/grasspy3/lib64/python3.6/os.py", line 744, in >> encode >> raise TypeError("str expected, not %s" % type(value).__name__) >> TypeError: str expected, not bytes >> >> (same error as Martin) >> > > working on it, I don't get this because of some settings in my > environment, which don't get to that line causing the error > Try r73241 > >> Markus >> > ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Mon, Sep 3, 2018 at 4:48 PM Markus Neteler wrote: > Hi, > (reducing to grass-dev) > > ... while I wanted to test, my box fails on "pip install wxpython" in > the virtualenv-3: > > pip install wxpython > [...# 30min later: ...] > ... > Finding libs for WXAUI : > yes > 'configure' finished successfully (1.340s) > Waf: Entering directory > `/home/mneteler/tmp/pip-install-mwki9u85/wxpython/build/waf/3.6/gtk3' > [629/868] Linking > build/waf/3.6/gtk3/_glcanvas.cpython-36m-x86_64-linux-gnu.so > [630/868] Compiling sip/cpp/sip_html2wxWebViewHistoryItem.cpp > [631/868] Compiling sip/cpp/sip_html2wxWebViewHandler.cpp > [632/868] Compiling sip/cpp/sip_html2wxWebViewFactory.cpp > [633/868] Compiling sip/cpp/sip_html2wxWebViewFSHandler.cpp > ../../../../sip/cpp/sip_html2wxWebViewHistoryItem.cpp: In function > ‘PyObject* meth_wxWebViewHistoryItem_GetUrl(PyObject*, PyObject*)’: > ../../../../sip/cpp/sip_html2wxWebViewHistoryItem.cpp:24:12: > error: ‘::wxWebViewHistoryItem’ has not been declared > ::wxWebViewHistoryItem *sipCpp; > ^~~~ > ../../../../sip/cpp/sip_html2wxWebViewHistoryItem.cpp:24:12: note: > suggested alternative: ‘sipName_WebViewHistoryItem’ > ::wxWebViewHistoryItem *sipCpp; > > [... tons of sip errors...] > ... > Waf: Leaving directory > `/home/mneteler/tmp/pip-install-mwki9u85/wxpython/build/waf/3.6/gtk3' > Build failed > -> task in '_html2' failed with exit status 1 (run with -v to > display more information) > -> task in '_html2' failed with exit status 1 (run with -v to > display more information) > -> task in '_html2' failed with exit status 1 (run with -v to > display more information) > -> task in '_html2' failed with exit status 1 (run with -v to > display more information) > Command '"/home/mneteler/grasspy3/bin/python3" > /home/mneteler/tmp/pip-install-mwki9u85/wxpython/bin/waf-2.0.7 > > --wx_config=/home/mneteler/tmp/pip-install-mwki9u85/wxpython/build/wxbld/gtk3/wx-config > --gtk3 --python="/home/mneteler/grasspy3/bin/python3" > --out=build/waf/3.6/gtk3 configure build ' failed with exit code 1. > Finished command: build_py (0m8.387s) > Finished command: build (0m9.512s) > Command '"/home/mneteler/grasspy3/bin/python3" -u build.py build' > failed with exit code 1. > > > Command "/home/mneteler/grasspy3/bin/python3 -u -c "import setuptools, > > tokenize;__file__='/home/mneteler/tmp/pip-install-mwki9u85/wxpython/setup.py';f=getattr(tokenize, > 'open', open)(__file__);code=f.read().replace('\r\n', > '\n');f.close();exec(compile(code, __file__, 'exec'))" install > --record /home/mneteler/tmp/pip-record-sdim1_xp/install-record.txt > --single-version-externally-managed --compile --install-headers > /home/mneteler/grasspy3/include/site/python3.6/wxpython" failed with > error code 1 in /home/mneteler/tmp/pip-install-mwki9u85/wxpython/ > > Any idea? > it looks like it's missing a package, on ubuntu it's libwebkit-dev > When simply ignoring the GUI for now: > > (grasspy3) [mneteler@oboe ~ ]$ python3 ~/bin/grass76 > Traceback (most recent call last): > File "/home/mneteler/bin/grass76", line 2162, in > main() > File "/home/mneteler/bin/grass76", line 2010, in main > set_paths(grass_config_dir=grass_config_dir) > File "/home/mneteler/bin/grass76", line 623, in set_paths > os.environ['MANPATH'] = sys_man_path > File "/home/mneteler/grasspy3/lib64/python3.6/os.py", line 674, in > __setitem__ > value = self.encodevalue(value) > File "/home/mneteler/grasspy3/lib64/python3.6/os.py", line 744, in encode > raise TypeError("str expected, not %s" % type(value).__name__) > TypeError: str expected, not bytes > > (same error as Martin) > working on it, I don't get this because of some settings in my environment, which don't get to that line causing the error > > Markus > ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
Hi, (reducing to grass-dev) ... while I wanted to test, my box fails on "pip install wxpython" in the virtualenv-3: pip install wxpython [...# 30min later: ...] ... Finding libs for WXAUI : yes 'configure' finished successfully (1.340s) Waf: Entering directory `/home/mneteler/tmp/pip-install-mwki9u85/wxpython/build/waf/3.6/gtk3' [629/868] Linking build/waf/3.6/gtk3/_glcanvas.cpython-36m-x86_64-linux-gnu.so [630/868] Compiling sip/cpp/sip_html2wxWebViewHistoryItem.cpp [631/868] Compiling sip/cpp/sip_html2wxWebViewHandler.cpp [632/868] Compiling sip/cpp/sip_html2wxWebViewFactory.cpp [633/868] Compiling sip/cpp/sip_html2wxWebViewFSHandler.cpp ../../../../sip/cpp/sip_html2wxWebViewHistoryItem.cpp: In function ‘PyObject* meth_wxWebViewHistoryItem_GetUrl(PyObject*, PyObject*)’: ../../../../sip/cpp/sip_html2wxWebViewHistoryItem.cpp:24:12: error: ‘::wxWebViewHistoryItem’ has not been declared ::wxWebViewHistoryItem *sipCpp; ^~~~ ../../../../sip/cpp/sip_html2wxWebViewHistoryItem.cpp:24:12: note: suggested alternative: ‘sipName_WebViewHistoryItem’ ::wxWebViewHistoryItem *sipCpp; [... tons of sip errors...] ... Waf: Leaving directory `/home/mneteler/tmp/pip-install-mwki9u85/wxpython/build/waf/3.6/gtk3' Build failed -> task in '_html2' failed with exit status 1 (run with -v to display more information) -> task in '_html2' failed with exit status 1 (run with -v to display more information) -> task in '_html2' failed with exit status 1 (run with -v to display more information) -> task in '_html2' failed with exit status 1 (run with -v to display more information) Command '"/home/mneteler/grasspy3/bin/python3" /home/mneteler/tmp/pip-install-mwki9u85/wxpython/bin/waf-2.0.7 --wx_config=/home/mneteler/tmp/pip-install-mwki9u85/wxpython/build/wxbld/gtk3/wx-config --gtk3 --python="/home/mneteler/grasspy3/bin/python3" --out=build/waf/3.6/gtk3 configure build ' failed with exit code 1. Finished command: build_py (0m8.387s) Finished command: build (0m9.512s) Command '"/home/mneteler/grasspy3/bin/python3" -u build.py build' failed with exit code 1. Command "/home/mneteler/grasspy3/bin/python3 -u -c "import setuptools, tokenize;__file__='/home/mneteler/tmp/pip-install-mwki9u85/wxpython/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /home/mneteler/tmp/pip-record-sdim1_xp/install-record.txt --single-version-externally-managed --compile --install-headers /home/mneteler/grasspy3/include/site/python3.6/wxpython" failed with error code 1 in /home/mneteler/tmp/pip-install-mwki9u85/wxpython/ Any idea? When simply ignoring the GUI for now: (grasspy3) [mneteler@oboe ~ ]$ python3 ~/bin/grass76 Traceback (most recent call last): File "/home/mneteler/bin/grass76", line 2162, in main() File "/home/mneteler/bin/grass76", line 2010, in main set_paths(grass_config_dir=grass_config_dir) File "/home/mneteler/bin/grass76", line 623, in set_paths os.environ['MANPATH'] = sys_man_path File "/home/mneteler/grasspy3/lib64/python3.6/os.py", line 674, in __setitem__ value = self.encodevalue(value) File "/home/mneteler/grasspy3/lib64/python3.6/os.py", line 744, in encode raise TypeError("str expected, not %s" % type(value).__name__) TypeError: str expected, not bytes (same error as Martin) Markus ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
Markus Neteler wrote >>> Could you please post a few lines how to properly do the testing with >>> virtualenv? >> >> https://trac.osgeo.org/grass/wiki/Python3Support#Howtotest > > Thanks. > I took liberty to expand that section a bit (a bit more text; and with > hints for Fedora users as well). some notes added there how to compile winGRASS in a virtual python 3 environment. - 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
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
Hi, po 3. 9. 2018 v 20:47 odesílatel Markus Neteler napsal: my first attempt to start GRASS fails with: (grasspy3) martin@debian:~/src/grass7_trunk$ ./bin.x86_64-pc-linux-gnu/grass77 -text Traceback (most recent call last): File "./bin.x86_64-pc-linux-gnu/grass77", line 2162, in main() File "./bin.x86_64-pc-linux-gnu/grass77", line 2010, in main set_paths(grass_config_dir=grass_config_dir) File "./bin.x86_64-pc-linux-gnu/grass77", line 623, in set_paths os.environ['MANPATH'] = sys_man_path File "/home/martin/Downloads/grasspy3/lib/python3.6/os.py", line 674, in __setitem__ value = self.encodevalue(value) File "/home/martin/Downloads/grasspy3/lib/python3.6/os.py", line 744, in encode raise TypeError("str expected, not %s" % type(value).__name__) TypeError: str expected, not bytes Is it expected? Ma -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Mon, Sep 3, 2018 at 3:48 PM Anna Petrášová wrote: > On Mon, Sep 3, 2018 at 2:28 AM Markus Neteler wrote: ... >> Could you please post a few lines how to properly do the testing with >> virtualenv? > > https://trac.osgeo.org/grass/wiki/Python3Support#Howtotest Thanks. I took liberty to expand that section a bit (a bit more text; and with hints for Fedora users as well). > also, we have now new small dependency - Python 'six' package ok, perhaps to be added in REQUIREMENTS.txt as well? Markus ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
Hi, po 3. 9. 2018 v 15:48 odesílatel Anna Petrášová napsal: >> > I committed the experimental support of Python 3 to trunk (grass77) by >> > Sanjeet (GSoC 2018). great, thanks for hard work! Python3 support will be crucial for GRASS in a near feature. Will help with testing. Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
Anna Petrášová wrote > https://trac.osgeo.org/grass/wiki/Python3Support#Howtotest > > also, we have now new small dependency - Python 'six' package updated the winGRASS compiling guidelines regarding python3 and six. [1] https://trac.osgeo.org/grass/wiki/CompileOnWindows - 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
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Mon, Sep 3, 2018 at 2:28 AM Markus Neteler wrote: > On Mon, Sep 3, 2018 at 4:21 AM Anna Petrášová > wrote: > > > > Hi, > > > > I committed the experimental support of Python 3 to trunk (grass77) by > Sanjeet (GSoC 2018). > > This is excellent, thanks for much for your hard work, Sanjeet, Anna > and all involved! > > > In the first stage of testing, we need to make sure GRASS can compile > and run with Python 2 without problems. Python 3 support is highly > experimental, we are still having problems with ctypes and libraries using > them. However, you should be able to compile GRASS, launch GUI and run > modules. I tested it on Ubuntu 16.04 with Python 2.7 and Python 3.5 > (virtualenv), utf8 English locale, other platforms were not tested. > > Could you please post a few lines how to properly do the testing with > virtualenv? > https://trac.osgeo.org/grass/wiki/Python3Support#Howtotest also, we have now new small dependency - Python 'six' package > > For reporting bugs related to this, please create tickets and put > 'Python3' as keyword (even for problems running GRASS on Python2 related to > this commit). > > > > Anna > > thanks again, > Markus > ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
Le Mon, 3 Sep 2018 08:27:53 +0200, Markus Neteler a écrit : > On Mon, Sep 3, 2018 at 4:21 AM Anna Petrášová > wrote: > > > > Hi, > > > > I committed the experimental support of Python 3 to trunk (grass77) > > by Sanjeet (GSoC 2018). > > This is excellent, thanks for much for your hard work, Sanjeet, Anna > and all involved! +1 This is a great step forward. Many thanks ! Moritz ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk
On Mon, Sep 3, 2018 at 4:21 AM Anna Petrášová wrote: > > Hi, > > I committed the experimental support of Python 3 to trunk (grass77) by > Sanjeet (GSoC 2018). This is excellent, thanks for much for your hard work, Sanjeet, Anna and all involved! > In the first stage of testing, we need to make sure GRASS can compile and run > with Python 2 without problems. Python 3 support is highly experimental, we > are still having problems with ctypes and libraries using them. However, you > should be able to compile GRASS, launch GUI and run modules. I tested it on > Ubuntu 16.04 with Python 2.7 and Python 3.5 (virtualenv), utf8 English > locale, other platforms were not tested. Could you please post a few lines how to properly do the testing with virtualenv? > For reporting bugs related to this, please create tickets and put 'Python3' > as keyword (even for problems running GRASS on Python2 related to this > commit). > > Anna thanks again, Markus ___ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev