[GRASS-dev] Missing package "six" for Windows compilation

Hello GRASS developers,

The “six” python package, required by Matplotlib, seems to be missing on the Windows side. As a result, all packages requiring it are throwing errors. For example, as seen at http://wingrass.fsv.cvut.cz/grass72/x86/addons/latest/logs/:

Traceback (most recent call last):
  File "C:/Users/landa/grass_packager/grass722/x86/addons/v.faultdirections/scripts/[v.faultdirections.py](http://v.faultdirections.py)", line 50, in <module>
    import matplotlib #required by windows
  File "C:\OSGeo4W32\apps\Python27\lib\site-packages\matplotlib\__init__.py", line 105, in <module>
    import six
<b>ImportError: No module named six
</b>/c/msys32/usr/src/grass722/include/Make/Html.make:14: recipe for target 'v.faultdirections.tmp.html' failed
make: *** [v.faultdirections.tmp.html] Error 1
rm v.faultdirections.tmp.html

Could someone with permissions please install this and test with an “import matplotlib”?

Thank you!

Andy

Andy Wickert-2 wrote

Hello GRASS developers,

The "six" python package, required by Matplotlib, seems to be missing on
the Windows side. As a result, all packages requiring it are throwing
errors. For example, as seen at
http://wingrass.fsv.cvut.cz/grass72/x86/addons/latest/logs/:

Traceback (most recent call last):
  File
"C:/Users/landa/grass_packager/grass722/x86/addons/v.faultdirections/scripts/v.faultdirections.py",
line 50, in
<module>
    import matplotlib #required by windows
  File
"C:\OSGeo4W32\apps\Python27\lib\site-packages\matplotlib\__init__.py",
line 105, in
<module>
    import six*ImportError: No module named six
*/c/msys32/usr/src/grass722/include/Make/Html.make:14: recipe for
target 'v.faultdirections.tmp.html' failed
make: *** [v.faultdirections.tmp.html] Error 1
rm v.faultdirections.tmp.html

Could someone with permissions please install this and test with an
"import
matplotlib"?

Thank you!

it's interesting, as e.g. r.hypso which also uses matplotlip builds in
winGRASS64bit addon
https://wingrass.fsv.cvut.cz/grass73/x86_64/addons/grass-7.3.svn/logs/

but fails in winGRASS32bit addon:
https://wingrass.fsv.cvut.cz/grass73/x86/addons/grass-7.3.svn/logs/

the same for v.faultdirections, it builds in winGRASS64bit addon

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html

Interesting. I noticed this while working on some codes for GSFLOW, the USGS groundwater–surface water module, and found a Tkinter missing error message in those for GRASS 7.3 64-bit:

Traceback (most recent call last):
  File "C:/Users/landa/grass_packager/grass73/x86_64/addons/v.gsflow.export/scripts/[v.gsflow.export.py](http://v.gsflow.export.py)", line 108, in <module>
    from matplotlib import pyplot as plt
  File "C:\OSGeo4W64\apps\Python27\lib\site-packages\matplotlib\pyplot.py", line 115, in <module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File "C:\OSGeo4W64\apps\Python27\lib\site-packages\matplotlib\backends\__init__.py", line 32, in pylab_setup
    globals(),locals(),[backend_name],0)
  File "C:\OSGeo4W64\apps\Python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 6, in <module>
    from six.moves import tkinter as Tk
  File "C:\OSGeo4W64\apps\Python27\lib\site-packages\six.py", line 203, in load_module
    mod = mod._resolve()
  File "C:\OSGeo4W64\apps\Python27\lib\site-packages\six.py", line 115, in _resolve
    return _import_module(self.mod)
  File "C:\OSGeo4W64\apps\Python27\lib\site-packages\six.py", line 82, in _import_module
    __import__(name)
<b>ImportError: No module named Tkinter
</b>/c/msys64/usr/src/grass_trunk/include/Make/Html.make:14: recipe for target 'v.gsflow.export.tmp.html' failed
make: *** [v.gsflow.export.tmp.html] Error 1
rm v.gsflow.export.tmp.html

Matplotlib wasn’t needed for these modules (it’s part of my standard set of imports, which I copied/pasted), so I removed it and they should hopefully compile fine the next time the server builds everything. But there is some underlying package problem…

Andy

···

On Sat, Nov 11, 2017 at 10:57 AM, Helmut Kudrnovsky <hellik@web.de> wrote:

Andy Wickert-2 wrote

Hello GRASS developers,

The “six” python package, required by Matplotlib, seems to be missing on
the Windows side. As a result, all packages requiring it are throwing
errors. For example, as seen at
http://wingrass.fsv.cvut.cz/grass72/x86/addons/latest/logs/:

Traceback (most recent call last):
File
“C:/Users/landa/grass_packager/grass722/x86/addons/v.faultdirections/scripts/v.faultdirections.py”,
line 50, in

import matplotlib #required by windows
File
“C:\OSGeo4W32\apps\Python27\lib\site-packages\matplotlib_init_.py”,
line 105, in

import six*ImportError: No module named six
*/c/msys32/usr/src/grass722/include/Make/Html.make:14: recipe for
target ‘v.faultdirections.tmp.html’ failed
make: *** [v.faultdirections.tmp.html] Error 1
rm v.faultdirections.tmp.html

Could someone with permissions please install this and test with an
“import
matplotlib”?

Thank you!

it’s interesting, as e.g. r.hypso which also uses matplotlip builds in
winGRASS64bit addon
https://wingrass.fsv.cvut.cz/grass73/x86_64/addons/grass-7.3.svn/logs/

but fails in winGRASS32bit addon:
https://wingrass.fsv.cvut.cz/grass73/x86/addons/grass-7.3.svn/logs/

the same for v.faultdirections, it builds in winGRASS64bit addon


best regards
Helmut

Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html


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

But there is some underlying package problem...

it seems six is in the winGRASS 64bit build environment, but not in the
winGRASS 32bit build environment.

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html

How about tkinter on Win64?

**ImportError: No module named Tkinter**
···

On Sat, Nov 11, 2017 at 12:19 PM, Helmut Kudrnovsky <hellik@web.de> wrote:

But there is some underlying package problem…

it seems six is in the winGRASS 64bit build environment, but not in the
winGRASS 32bit build environment.


best regards
Helmut

Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html


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

Andy Wickert-2 wrote

How about tkinter on Win64?

*ImportError: No module named Tkinter*

which addon?

https://wingrass.fsv.cvut.cz/grass73/x86_64/addons/grass-7.3.svn/logs/v.faultdirections.log

v.faultdirections builds on 64 bit

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html

Helmut Kudrnovsky wrote

Andy Wickert-2 wrote

How about tkinter on Win64?

*ImportError: No module named Tkinter*

which addon?

https://wingrass.fsv.cvut.cz/grass73/x86_64/addons/grass-7.3.svn/logs/v.faultdirections.log

v.faultdirections builds on 64 bit

tested in OSGeo4W's python 64bit:

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.

from Tkinter import *

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html

Module: [v.gsflow.export.py](http://v.gsflow.export.py/)

See: https://wingrass.fsv.cvut.cz/grass73/x86_64/addons/grass-7.3.svn/logs/v.gsflow.export.log

But I have removed the matplotlib import, so this may disappear upon the next build.

Andy

···

On Sat, Nov 11, 2017 at 12:42 PM, Helmut Kudrnovsky <hellik@web.de> wrote:

Helmut Kudrnovsky wrote

Andy Wickert-2 wrote

How about tkinter on Win64?

ImportError: No module named Tkinter

which addon?

https://wingrass.fsv.cvut.cz/grass73/x86_64/addons/grass-7.3.svn/logs/v.faultdirections.log

v.faultdirections builds on 64 bit

tested in OSGeo4W’s python 64bit:

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.

from Tkinter import *


best regards
Helmut

Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html


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