[GRASS-dev] [GRASS GIS] #3057: Problems with Numpy and matplotlib after updating through OSGeo4W

#3057: Problems with Numpy and matplotlib after updating through OSGeo4W
--------------------------+---------------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.0.6
Component: Python | Version: svn-releasebranch72
Resolution: | Keywords: wingrass
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+---------------------------------
Changes (by hellik):

* Attachment "standalonepython.zip" added.

standalone winGRASS content of python folder

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057&gt;
GRASS GIS <https://grass.osgeo.org>

#3057: Problems with Numpy and matplotlib after updating through OSGeo4W
--------------------------+---------------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.0.6
Component: Python | Version: svn-releasebranch72
Resolution: | Keywords: wingrass
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+---------------------------------

Comment (by hellik):

Replying to [comment:18 hellik]:
>
> there must be a difference between the ''python stuff of the standalone-
winGRASS-build environment'' and the ''OSGeo4W-provided python stuff''!!
>

added the listed content of the both python27 folders (standalone and
OSGeo4W); some differences, but not yet any obvious.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:19&gt;
GRASS GIS <https://grass.osgeo.org>

#3057: Problems with Numpy and matplotlib after updating through OSGeo4W
--------------------------+---------------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.0.6
Component: Python | Version: svn-releasebranch72
Resolution: | Keywords: wingrass
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+---------------------------------

Comment (by sbl):

It appears also on Ubuntu! So, I don`t think it is a Windows only thing...

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:20&gt;
GRASS GIS <https://grass.osgeo.org>

#3057: Problems with Numpy and matplotlib after updating through OSGeo4W
--------------------------+---------------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.0.6
Component: Python | Version: svn-releasebranch72
Resolution: | Keywords: wingrass
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+---------------------------------

Comment (by annakrat):

Replying to [comment:20 sbl]:
> It appears also on Ubuntu! So, I don`t think it is a Windows only
thing...

I think I found the problem, will fix it today or tomorrow.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:21&gt;
GRASS GIS <https://grass.osgeo.org>

#3057: Problems with Numpy and matplotlib after updating through OSGeo4W
--------------------------+---------------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.0.6
Component: Python | Version: svn-releasebranch72
Resolution: | Keywords: wingrass
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+---------------------------------

Comment (by hellik):

Replying to [comment:18 hellik]:
>
> I'm getting closer now to the issue:
>
>
> next steps:
>
> - copy env.bat and grass72svn.bat from the ''C:\Program Files\GRASS GIS
7.2.svn\'' installation to a folder, e.g. D:\temp\testgrasspython
>
> - in D:\temp\testgrasspython\grass72svn.bat, ''set GISBASE=C:\Program
Files\GRASS GIS 7.2.svn'' points to the standalone installation
>
> - change in D:\temp\testgrasspython\env.bat that the python stuff points
to the OSGeo4W-python:
>
> {{{
> set GRASS_PYTHON=C:\OSGeo4W64\bin\python.exe
> set PYTHONHOME=C:\OSGeo4W64\apps\Python27
> }}}
>
> and now you get in the standalone installation (while pointing to the
OSGeo4W-python stuff) the same numpy error in startup like in the OSGeo4W-
winGRASS.

now tested it the other way around:

taking the OSGeo4W-winGRASS-installation; regarding python let's point to
the python stuff living in ''C:\Program Files\GRASS GIS 7.3.svn'' and
start OSGeo4W-winGRASS-7.3.svn

=> with pointing to the standalone installer python, also OSGeo4W-
winGRASS-7.3.svn starts '''without''' any numpy problem nor any problem
with raster profiling, bivariate scatterplots etc.

>
> conclusion:
>
> there must be a difference between the ''python stuff of the standalone-
winGRASS-build environment'' and the ''OSGeo4W-provided python stuff''!!
>

yes confirmed, there is definitely some issue with OSgeo4W's python stuff.
tested on 3 different winboxes (7,8,10) with a fresh OSGeo4W installation.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:22&gt;
GRASS GIS <https://grass.osgeo.org>

#3057: Problems with Numpy and matplotlib after updating through OSGeo4W
--------------------------+---------------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: critical | Milestone: 7.0.6
Component: Python | Version: svn-releasebranch72
Resolution: | Keywords: wingrass
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+---------------------------------

Comment (by hellik):

Replying to [comment:21 annakrat]:
> Replying to [comment:20 sbl]:
> > It appears also on Ubuntu! So, I don`t think it is a Windows only
thing...
>
> I think I found the problem, will fix it today or tomorrow.

fixed by r69797

tested by

{{{
GRASS version: 7.3.svn
GRASS SVN revision: r69797
Build date: 2016-11-13
Build platform: x86_64-w64-mingw32
GDAL: 2.1.2
PROJ.4: 4.9.3
GEOS: 3.5.0
SQLite: 3.14.1
Python: 2.7.5
wxPython: 2.8.12.1
Platform: Windows-8-6.2.9200 (OSGeo4W)
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:23&gt;
GRASS GIS <https://grass.osgeo.org>

#3057: Problems with Numpy and matplotlib after updating through OSGeo4W
--------------------------+---------------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: critical | Milestone: 7.0.6
Component: Python | Version: svn-releasebranch72
Resolution: fixed | Keywords: wingrass
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+---------------------------------
Changes (by hellik):

* status: new => closed
* resolution: => fixed

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:24&gt;
GRASS GIS <https://grass.osgeo.org>

#3057: Problems with Numpy and matplotlib after updating through OSGeo4W
--------------------------+---------------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: critical | Milestone: 7.0.6
Component: Python | Version: svn-releasebranch72
Resolution: | Keywords: wingrass
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+---------------------------------
Changes (by hellik):

* status: closed => reopened
* resolution: fixed =>

Comment:

reopen, as backport needed (?).

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:25&gt;
GRASS GIS <https://grass.osgeo.org>

#3057: Problems with Numpy and matplotlib after updating through OSGeo4W
--------------------------+---------------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: critical | Milestone: 7.0.6
Component: Python | Version: svn-releasebranch72
Resolution: fixed | Keywords: wingrass
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+---------------------------------
Changes (by annakrat):

* status: reopened => closed
* resolution: => fixed

Comment:

Backported to 72 and 70.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:26&gt;
GRASS GIS <https://grass.osgeo.org>