[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: normal | Milestone: 7.2.0
Component: Python | Version: unspecified
Keywords: | CPU: Unspecified
Platform: MSWindows 7 |
-------------------------+-------------------------
[from grass-user ML]

I updated grass stable and trunk at my mum and brother's PCs (windows 7 -
32 bits and windows 10 - 64 bits, respectively) by means of OSGeo4W
installer.

When starting both versions (7.0.4 and 7.3 r68614) in both computers, I
get a message saying Numeric, numarray or NumPy not found.

Then, when I tried to use g.gui.timeline or g.gui.tplot, I got an error
saying matplotlib and pyparsing must be installed.

I run the update again and specifically checked for numpy, matplotlib and
pyparsing under libs, and all of them were there already selected for
"update" or "keep", so dunno...

All was fine before the update, in 7.0.3 and 7.1 no such issues in any of
the computers. In case it matters, I'm also using MSYS for bash shell in
windows and the settings are:

{{{
set GRASS_SH=%OSGEO4W_ROOT%\apps\msys\bin\sh.exe
set GRASS_PYTHON=%OSGEO4W_ROOT%\bin\python.exe
set PYTHONHOME=%OSGEO4W_ROOT%\apps\Python27
}}}

Has anybody had a similar issue? Do I have to manually select or install
some other lib/dependency??

--
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: normal | Milestone: 7.2.0
Component: Python | Version: unspecified
Resolution: | Keywords:
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+-------------------------

Comment (by hellik):

Replying to [ticket:3057 veroandreo]:
>
> Has anybody had a similar issue? Do I have to manually select or install
some other lib/dependency??

still an issue, see:

https://lists.osgeo.org/pipermail/grass-dev/2016-July/081115.html

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:1&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: normal | Milestone: 7.2.0
Component: Python | Version: unspecified
Resolution: | Keywords:
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+-------------------------

Comment (by hellik):

Replying to [comment:1 hellik]:
> Replying to [ticket:3057 veroandreo]:
> >
> > Has anybody had a similar issue? Do I have to manually select or
install some other lib/dependency??
>
> still an issue, see:
>
> https://lists.osgeo.org/pipermail/grass-dev/2016-July/081115.html

tested in the OSGeo4W64-shell:

{{{
GDAL 2.1.0, released 2016/04/25

C:\>python
Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>>
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:2&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: major | Milestone: 7.2.0
Component: Python | Version: unspecified
Resolution: | Keywords:
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+-------------------------
Changes (by hellik):

* priority: normal => major

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:3&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: major | Milestone: 7.2.0
Component: Python | Version: unspecified
Resolution: | Keywords:
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+-------------------------

Comment (by hellik):

Replying to [comment:1 hellik]:
> Replying to [ticket:3057 veroandreo]:
> >
> > Has anybody had a similar issue? Do I have to manually select or
install some other lib/dependency??
>
> still an issue, see:
>
> https://lists.osgeo.org/pipermail/grass-dev/2016-July/081115.html

{{{
           __________ ___ __________ _______________
          / ____/ __ \/ | / ___/ ___/ / ____/ _/ ___/
         / / __/ /_/ / /| | \__ \\_ \ / / __ / / \__ \
        / /_/ / _, _/ ___ |___/ /__/ / / /_/ // / ___/ /
        \____/_/ |_/_/ |_/____/____/ \____/___//____/

Welcome to GRASS GIS 7.3.svn (r68875)
GRASS GIS homepage: http://grass.osgeo.org
This version running through: Command Shell
(C:\Windows\system32\cmd.exe)
Help is available with the command: g.manual -i
See the licence terms with: g.version -c
See citation options with: g.version -x
If required, restart the GUI with: g.gui wxpython
When ready to quit enter: exit

Launching <wxpython> GUI in the background, please wait...
Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. Alle Rechte vorbehalten.

C:\>Numeric,numarray or NumPy not found.

             This module requires the Numeric/numarray or NumPy module,
             which could not be imported. It probably is not installed
             (it's not part of the standard Python distribution). See the
             Numeric Python site (http://numpy.scipy.org) for information
on
             downloading source or binaries.
Numeric,numarray or NumPy not found.

             This module requires the Numeric/numarray or NumPy module,
             which could not be imported. It probably is not installed
             (it's not part of the standard Python distribution). See the
             Numeric Python site (http://numpy.scipy.org) for information
on
             downloading source or binaries.
Numeric,numarray or NumPy not found.

             This module requires the Numeric/numarray or NumPy module,
             which could not be imported. It probably is not installed
             (it's not part of the standard Python distribution). See the
             Numeric Python site (http://numpy.scipy.org) for information
on
             downloading source or binaries.
Numeric,numarray or NumPy not found.

             This module requires the Numeric/numarray or NumPy module,
             which could not be imported. It probably is not installed
             (it's not part of the standard Python distribution). See the
             Numeric Python site (http://numpy.scipy.org) for information
on
             downloading source or binaries.
}}}

tested with

{{{
System Info
GRASS Version: 7.3.svn
GRASS SVN revision: r68875
Build date: 2016-07-07
Build platform: x86_64-w64-mingw32
GDAL: 2.0.2
PROJ.4: 4.9.2
GEOS: 3.5.0
SQLite: 3.7.17
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:4&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: major | Milestone: 7.2.0
Component: Python | Version: unspecified
Resolution: | Keywords:
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+-------------------------

Comment (by hellik):

Replying to [comment:1 hellik]:
> Replying to [ticket:3057 veroandreo]:
> >
> > Has anybody had a similar issue? Do I have to manually select or
install some other lib/dependency??
>
> still an issue, see:
>
> https://lists.osgeo.org/pipermail/grass-dev/2016-July/081115.html

now tested with standalone winGRASS:

{{{
System Info
GRASS Version: 7.3.svn
GRASS SVN revision: r68855
Build date: 2016-07-06
Build platform: x86_64-w64-mingw32
GDAL: 2.0.2
PROJ.4: 4.9.2
GEOS: 3.5.0
SQLite: 3.7.17
Python: 2.7.5
wxPython: 2.8.12.1
Platform: Windows-8-6.2.9200
}}}

no such error!

any idea?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:5&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: major | Milestone: 7.2.0
Component: Python | Version: unspecified
Resolution: | Keywords:
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+-------------------------

Comment (by martinl):

Unfortunately I cannot reproduce this error also using OSGeo4W. No idea
what could be wrong.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:6&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: major | Milestone: 7.2.0
Component: Python | Version: unspecified
Resolution: | Keywords:
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+-------------------------

Comment (by veroandreo):

Tested again in a brand new 64-bit Windows 10 laptop.

Same issue, both in grass73 (r69169) and 7.0.4 installed with 64-bit
osgeo4w installer.
However, no such problem in wingrass73 standalone installer.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:7&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: major | Milestone: 7.0.5
Component: Python | Version: unspecified
Resolution: | Keywords: wingrass
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+-------------------------
Changes (by martinl):

* keywords: => wingrass
* milestone: 7.2.0 => 7.0.5

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:8&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: major | Milestone: 7.0.5
Component: Python | Version: unspecified
Resolution: | Keywords: wingrass
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+-------------------------

Comment (by hellik):

Replying to [comment:7 veroandreo]:
> Tested again in a brand new 64-bit Windows 10 laptop.
>
> Same issue, both in grass73 (r69169) and 7.0.4 installed with 64-bit
osgeo4w installer.
> However, no such problem in wingrass73 standalone installer.

tested again with OSGeo4W-winGRASS; still an issue.

outside grass session

{{{
C:\>python -c "import sys; print(sys.path)"
['', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\matplotlib-1.3.1-py2.7-win-amd64.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\nose-1.3.3-py2.7.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\tornado-4.0.1-py2.7
-win-amd64.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\backports.ssl_match_hostname-3.4.0.2-py2.7.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\certifi-14.05.14-py2.7.egg', 'c:\\osgeo4~1\\apps\\python27\\lib
\\site-packages\\python_dateutil-2.1-py2.7.egg',
'C:\\OSGEO4~1\\bin\\python27.zip', 'C:\\OSGEO4~1\\apps\\Python27\\DLLs',
'C:\\OSGEO4~1\\apps\\Python27\\lib', 'C:\\OSGEO4~1\\apps\\Python27\\lib
\\plat-win', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\lib-tk',
'C:\\OSGEO4~1\\bin', 'C:\\OSGEO4~1\\apps\\Python27',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\PIL',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\jinja2-2.7.2-py2.7.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib
\\site-packages\\markupsafe-0.23-py2.7-win-amd64.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\pytz-2012j-py2.7.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\win32',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\win32\\lib',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\Pythonwin',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\Shapely-1.2.18-py2.7
-win-amd64.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\wx-2.8
-msw-unicode']
}}}

{{{
C:\>python -c "import numpy"
}}}

no problem.

now tested within a OSGeo4W-winGRASS session:

{{{
C:\>echo %GRASS_PYTHON%
C:\OSGEO4~1\bin\python.exe
}}}

{{{
C:\>python -c "import sys; print(sys.path)"
['', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\matplotlib-1.3.1-py2.7-win-amd64.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\nose-1.3.3-py2.7.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\tornado-4.0.1-py2.7
-win-amd64.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\backports.ssl_match_hostname-3.4.0.2-py2.7.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\certifi-14.05.14-py2.7.egg', 'c:\\osgeo4~1\\apps\\python27\\lib
\\site-packages\\python_dateutil-2.1-py2.7.egg',
'C:\\OSGEO4~1\\apps\\grass\\grass-7.3.svn\\etc\\python',
'C:\\OSGEO4~1\\bin\\python27.zip', 'C:\\OSGEO4~1\\apps\\Python27\\DLLs',
'C:\\OSGEO4~1\\apps\\Python27\\lib', 'C:\\OSGEO4~1\\apps\\Python27\\lib
\\plat-win', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\lib-tk',
'C:\\OSGEO4~1\\bin', 'C:\\OSGEO4~1\\apps\\Python27',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\PIL',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\jinja2-2.7.2-py2.7.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib
\\site-packages\\markupsafe-0.23-py2.7-win-amd64.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\pytz-2012j-py2.7.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\win32',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\win32\\lib',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\Pythonwin',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\Shapely-1.2.18-py2.7
-win-amd64.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\wx-2.8
-msw-unicode']
}}}

{{{
C:\>python -c "import numpy"
}}}

it seems it's the same python used.

any idea?

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

What version of numpy is in your system? Something similar happened to me before (GRASS 7.0.3) when I updated the numpy installation on my Linux machine to 1.10 from 1.08. I asked if the warning message would affect the processing I was doing and Vaclav replied that:

“numpy.oldnumeric is not used by GRASS directly. According to an email from Glynn, it is used by wx.lib.plot. There is not much GRASS can do about this. Basically wxPython on your system is not new enough, the numpy.oldnumeric dependency was removed just recently. [1]”

I haven’t touched Windows or the OSGeo4W installer in a long while so I can’t say if it’s really the same issue.

[1] https://lists.osgeo.org/pipermail/grass-dev/2014-November/071713.html

···

On Wed, Sep 7, 2016 at 4:19 PM, GRASS GIS <trac@osgeo.org> wrote:

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

Comment (by hellik):

Replying to [comment:7 veroandreo]:

Tested again in a brand new 64-bit Windows 10 laptop.

Same issue, both in grass73 (r69169) and 7.0.4 installed with 64-bit
osgeo4w installer.
However, no such problem in wingrass73 standalone installer.

tested again with OSGeo4W-winGRASS; still an issue.

outside grass session

{{{
C:>python -c “import sys; print(sys.path)”
[‘’, ‘C:\OSGEO4~1\apps\Python27\lib\site-
packages\matplotlib-1.3.1-py2.7-win-amd64.egg’,
‘C:\OSGEO4~1\apps\Python27\lib\site-packages\nose-1.3.3-py2.7.egg’,
‘C:\OSGEO4~1\apps\Python27\lib\site-packages\tornado-4.0.1-py2.7
-win-amd64.egg’, ‘C:\OSGEO4~1\apps\Python27\lib\site-
packages\backports.ssl_match_hostname-3.4.0.2-py2.7.egg’,
‘C:\OSGEO4~1\apps\Python27\lib\site-
packages\certifi-14.05.14-py2.7.egg’, ‘c:\osgeo4~1\apps\python27\lib
\site-packages\python_dateutil-2.1-py2.7.egg’,
‘C:\OSGEO4~1\bin\python27.zip’, ‘C:\OSGEO4~1\apps\Python27\DLLs’,
‘C:\OSGEO4~1\apps\Python27\lib’, ‘C:\OSGEO4~1\apps\Python27\lib
\plat-win’, ‘C:\OSGEO4~1\apps\Python27\lib\lib-tk’,
‘C:\OSGEO4~1\bin’, ‘C:\OSGEO4~1\apps\Python27’,
‘C:\OSGEO4~1\apps\Python27\lib\site-packages’,
‘C:\OSGEO4~1\apps\Python27\lib\site-packages\PIL’,
‘C:\OSGEO4~1\apps\Python27\lib\site-
packages\jinja2-2.7.2-py2.7.egg’, ‘C:\OSGEO4~1\apps\Python27\lib
\site-packages\markupsafe-0.23-py2.7-win-amd64.egg’,
‘C:\OSGEO4~1\apps\Python27\lib\site-packages\pytz-2012j-py2.7.egg’,
‘C:\OSGEO4~1\apps\Python27\lib\site-packages\win32’,
‘C:\OSGEO4~1\apps\Python27\lib\site-packages\win32\lib’,
‘C:\OSGEO4~1\apps\Python27\lib\site-packages\Pythonwin’,
‘C:\OSGEO4~1\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7
-win-amd64.egg’, ‘C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8
-msw-unicode’]
}}}

{{{
C:>python -c “import numpy”
}}}

no problem.

now tested within a OSGeo4W-winGRASS session:

{{{
C:>echo %GRASS_PYTHON%
C:\OSGEO4~1\bin\python.exe
}}}

{{{
C:>python -c “import sys; print(sys.path)”
[‘’, ‘C:\OSGEO4~1\apps\Python27\lib\site-
packages\matplotlib-1.3.1-py2.7-win-amd64.egg’,
‘C:\OSGEO4~1\apps\Python27\lib\site-packages\nose-1.3.3-py2.7.egg’,
‘C:\OSGEO4~1\apps\Python27\lib\site-packages\tornado-4.0.1-py2.7
-win-amd64.egg’, ‘C:\OSGEO4~1\apps\Python27\lib\site-
packages\backports.ssl_match_hostname-3.4.0.2-py2.7.egg’,
‘C:\OSGEO4~1\apps\Python27\lib\site-
packages\certifi-14.05.14-py2.7.egg’, ‘c:\osgeo4~1\apps\python27\lib
\site-packages\python_dateutil-2.1-py2.7.egg’,
‘C:\OSGEO4~1\apps\grass\grass-7.3.svn\etc\python’,
‘C:\OSGEO4~1\bin\python27.zip’, ‘C:\OSGEO4~1\apps\Python27\DLLs’,
‘C:\OSGEO4~1\apps\Python27\lib’, ‘C:\OSGEO4~1\apps\Python27\lib
\plat-win’, ‘C:\OSGEO4~1\apps\Python27\lib\lib-tk’,
‘C:\OSGEO4~1\bin’, ‘C:\OSGEO4~1\apps\Python27’,
‘C:\OSGEO4~1\apps\Python27\lib\site-packages’,
‘C:\OSGEO4~1\apps\Python27\lib\site-packages\PIL’,
‘C:\OSGEO4~1\apps\Python27\lib\site-
packages\jinja2-2.7.2-py2.7.egg’, ‘C:\OSGEO4~1\apps\Python27\lib
\site-packages\markupsafe-0.23-py2.7-win-amd64.egg’,
‘C:\OSGEO4~1\apps\Python27\lib\site-packages\pytz-2012j-py2.7.egg’,
‘C:\OSGEO4~1\apps\Python27\lib\site-packages\win32’,
‘C:\OSGEO4~1\apps\Python27\lib\site-packages\win32\lib’,
‘C:\OSGEO4~1\apps\Python27\lib\site-packages\Pythonwin’,
‘C:\OSGEO4~1\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7
-win-amd64.egg’, ‘C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8
-msw-unicode’]
}}}

{{{
C:>python -c “import numpy”
}}}

it seems it’s the same python used.

any idea?


Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:9>

GRASS GIS <https://grass.osgeo.org>


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

Engr. Ben Hur S. Pintor

Research Associate

Phil-LiDAR 2 Project 5: REMap

UP Training Center for Applied Geodesy and Photogrammetry

Juris Doctor

College of Law

University of the Philippines Diliman
Quezon City 1101, PHL

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

Comment (by mlennert):

Any news on this ?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:10&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: major | Milestone: 7.0.5
Component: Python | Version: unspecified
Resolution: | Keywords: wingrass
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+-------------------------

Comment (by hellik):

Replying to [comment:10 mlennert]:
> Any news on this ?

Still an issue.

Anything else to test?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:11&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: major | Milestone: 7.0.6
Component: Python | Version: unspecified
Resolution: | Keywords: wingrass
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+-------------------------

Comment (by sbl):

I see that also on Ubuntu 14.04 LTS with 7.0.4 (r67364), 7.2 (r68908) and
7.3 (r68881).

g.gui.timeline says when I click on run:
{{{
/usr/local/lib/python2.7/dist-
packages/matplotlib/font_manager.py:273: UserWarning:
Matplotlib is building the font cache using fc-list. This
may take a moment.
   warnings.warn('Matplotlib is building the font cache using
fc-list. This may take a moment.')
}}}
But it works.
I have not seen any practical issues related to that, but those messages
are a bit irritating...

I can add configuration information if you think this is relevant...

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:13&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: major | Milestone: 7.0.6
Component: Python | Version: unspecified
Resolution: | Keywords: wingrass
       CPU: Unspecified | Platform: MSWindows 7
--------------------------+-------------------------

Comment (by hellik):

Replying to [comment:11 hellik]:
> Replying to [comment:10 mlennert]:
> > Any news on this ?
>
> Still an issue.
>
> Anything else to test?

still an issue.

anything else to test?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:14&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
--------------------------+---------------------------------
Changes (by hellik):

* priority: major => critical
* version: unspecified => svn-releasebranch72

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:15&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:6 martinl]:
> Unfortunately I cannot reproduce this error also using OSGeo4W. No idea
what could be wrong.

tested this issue on several winboxes (xp, vista, 7,8,10). everywhere an
issue with the OSGeo4W-wingrass.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:16&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:9 hellik]:
> Replying to [comment:7 veroandreo]:
> > Tested again in a brand new 64-bit Windows 10 laptop.
> >
> > Same issue, both in grass73 (r69169) and 7.0.4 installed with 64-bit
osgeo4w installer.
> > However, no such problem in wingrass73 standalone installer.
>
> tested again with OSGeo4W-winGRASS; still an issue.

tested it again outside and inside an OSGeo4W-winGRASS session:

outside a OSGeo4W-winGRASS session in an OSGeo4W-environment:

{{{
C:\>echo %PYTHONHOME%
C:\OSGEO4~1\apps\Python27
}}}

{{{
C:\>echo %PYTHONPATH%
%PYTHONPATH%
}}}

{{{
C:\>python -c "import sys; print(sys.path)"
['', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\matplotlib-1.3.1-py2.7-win-amd64.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\nose-1.3.3-py2.7.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\tornado-4.0.1-py2.7
-win-amd64.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\backports.ssl_match_hostname-3.4.0.2-py2.7.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\certifi-14.05.14-py2.7.egg', 'c:\\osgeo4~1\\apps\\python27\\lib
\\site-packages\\python_dateutil-2.1-py2.7.egg',
'C:\\OSGEO4~1\\bin\\python27.zip', 'C:\\OSGEO4~1\\apps\\Python27\\DLLs',
'C:\\OSGEO4~1\\apps\\Python27\\lib', 'C:\\OSGEO4~1\\apps\\Python27\\lib
\\plat-win', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\lib-tk',
'C:\\OSGEO4~1\\bin', 'C:\\OSGEO4~1\\apps\\Python27',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\PIL',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\jinja2-2.7.2-py2.7.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib
\\site-packages\\markupsafe-0.23-py2.7-win-amd64.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\pytz-2012j-py2.7.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\win32',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\win32\\lib',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\Pythonwin',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\Shapely-1.2.18-py2.7
-win-amd64.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\wx-2.8
-msw-unicode']
}}}

{{{
C:\>python -c "import numpy"
C:\>
}}}

no issue importin numpy.

now inside a OSGeo4W-winGRASS session

{{{
C:\>echo %PYTHONHOME%
C:\OSGEO4~1\apps\Python27
}}}

{{{
C:\>echo %PYTHONHOME%
C:\OSGEO4~1\apps\Python27
}}}

{{{
C:\>python -c "import sys; print(sys.path)"
['', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\matplotlib-1.3.1-py2.7-win-amd64.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\nose-1.3.3-py2.7.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\tornado-4.0.1-py2.7
-win-amd64.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\backports.ssl_match_hostname-3.4.0.2-py2.7.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\certifi-14.05.14-py2.7.egg', 'c:\\osgeo4~1\\apps\\python27\\lib
\\site-packages\\python_dateutil-2.1-py2.7.egg',
'C:\\OSGEO4~1\\apps\\grass\\grass-7.3.svn\\etc\\python',
'C:\\OSGEO4~1\\bin\\python27.zip', 'C:\\OSGEO4~1\\apps\\Python27\\DLLs',
'C:\\OSGEO4~1\\apps\\Python27\\lib', 'C:\\OSGEO4~1\\apps\\Python27\\lib
\\plat-win', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\lib-tk',
'C:\\OSGEO4~1\\bin', 'C:\\OSGEO4~1\\apps\\Python27',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\PIL',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\jinja2-2.7.2-py2.7.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib
\\site-packages\\markupsafe-0.23-py2.7-win-amd64.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\pytz-2012j-py2.7.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\win32',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\win32\\lib',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\Pythonwin',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\Shapely-1.2.18-py2.7
-win-amd64.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\wx-2.8
-msw-unicode']
}}}

{{{
C:\>python -c "import numpy"
C:\>
{{{

and in the winGRASS-python shell

{{{
Willkommen in der wxGUI interaktiven Python Shell 0.9.8

Geben Sie "help(grass)" für mehr GRASS Skripting Information ein.
Geben Sie "AddLayer()" ein, um Raster oder Vektor der Baumstruktur
hinzuzufügen.

Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
import sys
print(sys.path)
['C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode',
'C:\\OSGEO4~1\\apps\\grass\\grass-7.3.svn\\gui\\wxpython',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\matplotlib-1.3.1-py2.7
-win-amd64.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\nose-1.3.3-py2.7.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\tornado-4.0.1-py2.7-win-amd64.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\backports.ssl_match_hostname-3.4.0.2-py2.7.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\certifi-14.05.14-py2.7.egg', 'c:\\osgeo4~1\\apps\\python27\\lib
\\site-packages\\python_dateutil-2.1-py2.7.egg',
'C:\\OSGEO4~1\\apps\\grass\\grass-7.3.svn\\etc\\python',
'C:\\OSGEO4~1\\bin\\python27.zip', 'C:\\OSGEO4~1\\apps\\Python27\\DLLs',
'C:\\OSGEO4~1\\apps\\Python27\\lib', 'C:\\OSGEO4~1\\apps\\Python27\\lib
\\plat-win', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\lib-tk',
'C:\\OSGEO4~1\\bin', 'C:\\OSGEO4~1\\apps\\Python27',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\PIL',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-
packages\\jinja2-2.7.2-py2.7.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib
\\site-packages\\markupsafe-0.23-py2.7-win-amd64.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\pytz-2012j-py2.7.egg',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\win32',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\win32\\lib',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\Pythonwin',
'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\Shapely-1.2.18-py2.7
-win-amd64.egg', 'C:\\OSGEO4~1\\apps\\Python27\\lib\\site-packages\\wx-2.8
-msw-unicode', 'C:\\OSGEO4~1\\apps\\grass\\grass-7.3.svn\\etc\\r.in.wms']
import numpy
}}}

also no issue inside OSGeo4W-winGRASS session to import numpy.

any ideas?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:17&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:16 hellik]:
> Replying to [comment:6 martinl]:
> > Unfortunately I cannot reproduce this error also using OSGeo4W. No
idea what could be wrong.
>
> tested this issue on several winboxes (xp, vista, 7,8,10). everywhere an
issue with the OSGeo4W-wingrass.

I'm getting closer now to the issue:

testcase:

- download
https://wingrass.fsv.cvut.cz/grass72/x86_64/WinGRASS-7.2.svn-r69794-61
-Setup-x86_64.exe

- install the standalone WinGRASS-7.2.svn-r69794-61

- start it normally from the windowa menue by ''"C:\Program Files\GRASS
GIS 7.2.svn\grass72svn.bat" -gui''

=> everything works fine without any numpy error in winGRASS startup!

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.

conclusion:

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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3057#comment:18&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
--------------------------+---------------------------------
Changes (by hellik):

* Attachment "osgeo4python.zip" added.

content of OSGeo4W's python folder

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