#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>
GRASS GIS <https://grass.osgeo.org>