[GRASS-dev] new osgeo4w-python and winGrass643RC3-standalone: error in GUI startup

while building winGrass643RC3-standalone installer, I've seen that osgeo4w
changed his python version:

http://lists.osgeo.org/pipermail/osgeo4w-dev/2013-April/002199.html

Python 2.7.4 has been uploaded to the Osgeo4W download mirror and passes
install tests on my machine. Please test on yours.

**Changed:** Dropped `python-wrapper` as a separate package, merging it's
contents into `python-core` (namely the batch files for defining PYTHONHOME
etc., and for generating .bat files in .\bin for the .py files there).

**New:** the o4w python packages now mirror the selections of the regular
setup program:

    Python Core = python-core 5.5 mb
    Documentation = python-help 5.9 mb
    Tcl/Tk = python-tcltk 2.4 mb
    Utility Scripts = python-tools 0.1 mb
    Test Suite = python-testsuite 1.6 mb
                                           -------
                                           15.2 mb

Selecting the `python` package in `osgeo4w-setup` or `apt` will install
everything. The other packages can be added and removed as desired,
`python-core` will always be installed with any selection.

now starting winGrass643RC3 within the osgeo4w-stack without any problem

BUT after builing and installing the winGrass643RC3-standalone installer,
there's an error in GUI startup:

Starting GRASS ...
Traceback (most recent call last):
  File "C:\Program Files (x86)\GRASS GIS 6.4.3RC3\Python27\lib\site.py",
line 563, in <module>
    main()
  File "C:\Program Files (x86)\GRASS GIS 6.4.3RC3\Python27\lib\site.py",
line 545, in main
    known_paths = addusersitepackages(known_paths)
  File "C:\Program Files (x86)\GRASS GIS 6.4.3RC3\Python27\lib\site.py",
line 278, in addusersitepackages
    user_site = getusersitepackages()
  File "C:\Program Files (x86)\GRASS GIS 6.4.3RC3\Python27\lib\site.py",
line 253, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "C:\Program Files (x86)\GRASS GIS 6.4.3RC3\Python27\lib\site.py",
line 243, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "C:\Program Files (x86)\GRASS GIS
6.4.3RC3\Python27\lib\sysconfig.py", line 472, in get_config_var
    return get_config_vars().get(name)
  File "C:\Program Files (x86)\GRASS GIS
6.4.3RC3\Python27\lib\sysconfig.py", line 405, in get_config_vars
    import re
  File "C:\Program Files (x86)\GRASS GIS 6.4.3RC3\Python27\lib\re.py", line
105, in <module>
    import sre_compile
  File "C:\Program Files (x86)\GRASS GIS
6.4.3RC3\Python27\lib\sre_compile.py", line 14, in <module>
    import sre_parse
  File "C:\Program Files (x86)\GRASS GIS
6.4.3RC3\Python27\lib\sre_parse.py", line 17, in <module>
    from sre_constants import *
  File "C:\Program Files (x86)\GRASS GIS
6.4.3RC3\Python27\lib\sre_constants.py", line 18, in <module>
    from _sre import MAXREPEAT
ImportError: cannot import name MAXREPEAT
Error in GUI startup. If necessary, please

any idea?

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/new-osgeo4w-python-and-winGrass643RC3-standalone-error-in-GUI-startup-tp5048496.html
Sent from the Grass - Dev mailing list archive at Nabble.com.

On Sat, Apr 20, 2013 at 9:30 PM, Helmut Kudrnovsky <hellik@web.de> wrote:
...

BUT after builing and installing the winGrass643RC3-standalone installer,
there's an error in GUI startup:

...

6.4.3RC3\Python27\lib\sre_constants.py", line 18, in <module>
    from _sre import MAXREPEAT
ImportError: cannot import name MAXREPEAT
Error in GUI startup. If necessary, please

I have tested the winGRASS standalone installer which
I got from Helmut on Windows8, no such problem. It seems
(again) to be specific to the Windows version (sigh).

Searching around I found
http://stackoverflow.com/questions/15984650/python-wont-run-due-to-importerror-cannot-import-maxrepeat

but no real idea what to suggest. Should we put out this
installer anyway? It would be bad to delay RC3 as well as
to ditch it and do all release procedure again forRC4 (it
always takes me several hours).

?

Markus

I have tested the winGRASS standalone installer which
I got from Helmut on Windows8,

here Win7

Should we put out this installer anyway?

IMHO yes, a wider test is needed to see if it's a local problem, a windows
version problem, a osgeo4w problem ... osgeo4w has changed the python
version anyway ... and the winGRASS standalone is based on it

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/new-osgeo4w-python-and-winGrass643RC3-standalone-error-in-GUI-startup-tp5048496p5048552.html
Sent from the Grass - Dev mailing list archive at Nabble.com.

On Sun, Apr 21, 2013 at 11:13 AM, Helmut Kudrnovsky <hellik@web.de> wrote:

I have tested the winGRASS standalone installer which
I got from Helmut on Windows8,

here Win7

Should we put out this installer anyway?

IMHO yes, a wider test is needed to see if it's a local problem, a windows
version problem, a osgeo4w problem ... osgeo4w has changed the python
version anyway ... and the winGRASS standalone is based on it

So let's completely release it and see... it is still RC3
and not the final one.

Markus

I can confirm the problem with GRASS 7, but only with osgeo4w installer. When using standalone from http://wingrass.fsv.cvut.cz/grass70/ I have no issues. Mind you, however, there's the osgeo4w based standalone available too which I did not test.

Regards,
Allar

On 21/04/2013 10:16, Markus Neteler wrote:

On Sun, Apr 21, 2013 at 11:13 AM, Helmut Kudrnovsky <hellik@web.de> wrote:

I have tested the winGRASS standalone installer which
I got from Helmut on Windows8,

here Win7

Should we put out this installer anyway?

IMHO yes, a wider test is needed to see if it's a local problem, a windows
version problem, a osgeo4w problem ... osgeo4w has changed the python
version anyway ... and the winGRASS standalone is based on it

So let's completely release it and see... it is still RC3
and not the final one.

Markus
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

I can confirm the problem with GRASS 7, but only with osgeo4w installer.

if you've updated your osgeo4w-python to 2.7.4, than it's another problem
with osgeo4w-wingrass7, see

http://lists.osgeo.org/pipermail/osgeo4w-dev/2013-April/002202.html

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/new-osgeo4w-python-and-winGrass643RC3-standalone-error-in-GUI-startup-tp5048496p5048567.html
Sent from the Grass - Dev mailing list archive at Nabble.com.

Ah, your sqlite3.dll renaming workaround suggested in the comments there did the trick.
Thank you

Regards,
Allar

if you've updated your osgeo4w-python to 2.7.4, than it's another problem
with osgeo4w-wingrass7, see

http://lists.osgeo.org/pipermail/osgeo4w-dev/2013-April/002202.html

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/new-osgeo4w-python-and-winGrass643RC3-standalone-error-in-GUI-startup-tp5048496p5048567.html
Sent from the Grass - Dev mailing list archive at Nabble.com.
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev