Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2019-05-05 Thread Markus Neteler
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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-12-26 Thread Markus Neteler
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 >>

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-13 Thread Anna Petrášová
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: > > ## >

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-07 Thread Martin Landa
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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-07 Thread Helmut Kudrnovsky
>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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-06 Thread Vaclav Petras
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,

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-06 Thread Markus Metz
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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-05 Thread Vaclav Petras
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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-05 Thread Markus Metz
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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-05 Thread Martin Landa
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 --

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-05 Thread Markus Metz
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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-04 Thread Helmut Kudrnovsky
> > 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:

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-04 Thread Helmut Kudrnovsky
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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-04 Thread Markus Neteler
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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-04 Thread Martin Landa
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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-04 Thread Jürgen E . Fischer
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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-04 Thread Anna Petrášová
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,

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-04 Thread Martin Landa
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`.

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-04 Thread Markus Neteler
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 >>

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-04 Thread Anna Petrášová
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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-04 Thread Markus Neteler
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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-03 Thread Anna Petrášová
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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-03 Thread Markus Neteler
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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-03 Thread Helmut Kudrnovsky
>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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-03 Thread Anna Petrášová
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. > >>

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-03 Thread Markus Neteler
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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-03 Thread Helmut Kudrnovsky
>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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-03 Thread Helmut Kudrnovsky
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 >>

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-03 Thread Anna Petrášová
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:

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-03 Thread Anna Petrášová
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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-03 Thread Markus Neteler
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)

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-03 Thread Helmut Kudrnovsky
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).

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-03 Thread Martin Landa
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()

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-03 Thread Markus Neteler
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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-03 Thread Martin Landa
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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-03 Thread Helmut Kudrnovsky
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

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-03 Thread Anna Petrášová
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,

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-03 Thread Moritz Lennert
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,

Re: [GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

2018-09-03 Thread Markus Neteler
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