[GRASS-dev] [GRASS-user] experimental Python 3 support in trunk

Markus Neteler neteler at osgeo.org
Mon Sep 3 15:32:48 PDT 2018


On Mon, Sep 3, 2018 at 10:56 PM Anna Petrášová <kratochanna at gmail.com> wrote:
>
>
>
> On Mon, Sep 3, 2018 at 4:48 PM Markus Neteler <neteler at osgeo.org> wrote:
>>
>> Hi,
>> (reducing to grass-dev)
>>
>> ... while I wanted to test, my box fails on "pip install wxpython" in
>> the virtualenv-3:
>>
>> pip install wxpython
>> [...# 30min later: ...]
>> ...
>>     Finding libs for WXAUI                                             : yes
>>     'configure' finished successfully (1.340s)
>>     Waf: Entering directory
>> `/home/mneteler/tmp/pip-install-mwki9u85/wxpython/build/waf/3.6/gtk3'
>>     [629/868] Linking
>> build/waf/3.6/gtk3/_glcanvas.cpython-36m-x86_64-linux-gnu.so
>>     [630/868] Compiling sip/cpp/sip_html2wxWebViewHistoryItem.cpp
>>     [631/868] Compiling sip/cpp/sip_html2wxWebViewHandler.cpp
>>     [632/868] Compiling sip/cpp/sip_html2wxWebViewFactory.cpp
>>     [633/868] Compiling sip/cpp/sip_html2wxWebViewFSHandler.cpp
>>     ../../../../sip/cpp/sip_html2wxWebViewHistoryItem.cpp: In function
>> ‘PyObject* meth_wxWebViewHistoryItem_GetUrl(PyObject*, PyObject*)’:
>>     ../../../../sip/cpp/sip_html2wxWebViewHistoryItem.cpp:24:12:
>> error: ‘::wxWebViewHistoryItem’ has not been declared
>>               ::wxWebViewHistoryItem *sipCpp;
>>                 ^~~~~~~~~~~~~~~~~~~~
>>     ../../../../sip/cpp/sip_html2wxWebViewHistoryItem.cpp:24:12: note:
>> suggested alternative: ‘sipName_WebViewHistoryItem’
>>               ::wxWebViewHistoryItem *sipCpp;
>> ....
>> [... tons of sip errors...]
>> ...
>>     Waf: Leaving directory
>> `/home/mneteler/tmp/pip-install-mwki9u85/wxpython/build/waf/3.6/gtk3'
>>     Build failed
>>      -> task in '_html2' failed with exit status 1 (run with -v to
>> display more information)
>>      -> task in '_html2' failed with exit status 1 (run with -v to
>> display more information)
>>      -> task in '_html2' failed with exit status 1 (run with -v to
>> display more information)
>>      -> task in '_html2' failed with exit status 1 (run with -v to
>> display more information)
>>     Command '"/home/mneteler/grasspy3/bin/python3"
>> /home/mneteler/tmp/pip-install-mwki9u85/wxpython/bin/waf-2.0.7
>> --wx_config=/home/mneteler/tmp/pip-install-mwki9u85/wxpython/build/wxbld/gtk3/wx-config
>> --gtk3 --python="/home/mneteler/grasspy3/bin/python3"
>> --out=build/waf/3.6/gtk3 configure build ' failed with exit code 1.
>>     Finished command: build_py (0m8.387s)
>>     Finished command: build (0m9.512s)
>>     Command '"/home/mneteler/grasspy3/bin/python3" -u build.py build'
>> failed with exit code 1.
>>
>>     ----------------------------------------
>> Command "/home/mneteler/grasspy3/bin/python3 -u -c "import setuptools,
>> tokenize;__file__='/home/mneteler/tmp/pip-install-mwki9u85/wxpython/setup.py';f=getattr(tokenize,
>> 'open', open)(__file__);code=f.read().replace('\r\n',
>> '\n');f.close();exec(compile(code, __file__, 'exec'))" install
>> --record /home/mneteler/tmp/pip-record-sdim1_xp/install-record.txt
>> --single-version-externally-managed --compile --install-headers
>> /home/mneteler/grasspy3/include/site/python3.6/wxpython" failed with
>> error code 1 in /home/mneteler/tmp/pip-install-mwki9u85/wxpython/
>>
>> Any idea?
>
>
> it looks like it's missing a package, on ubuntu it's libwebkit-dev

Thanks, that is on Fedora:
webkit2gtk3-devel

Now I got also wxpython compiled (30min of compilation on my laptop).

Now the wxGUI start screen comes up.
Once in the session, this error appears:

GRASS 7.7.svn (nc_spm_08_grass7):~ > 00:29:58: Debug: Adding duplicate
image handler for 'Windows bitmap file'
00:29:58: Debug: Adding duplicate image handler for 'Windows bitmap file'
Traceback (most recent call last):
  File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/gui/wxpython/wxgui.py",
line 101, in OnInit
    from lmgr.frame import GMFrame
  File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/gui/wxpython/lmgr/frame.py",
line 50, in <module>
    from lmgr.layertree import LayerTree, LMIcons
  File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/gui/wxpython/lmgr/layertree.py",
line 38, in <module>
    from mapdisp.frame import MapFrame
  File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/gui/wxpython/mapdisp/frame.py",
line 43, in <module>
    from mapwin.buffered import BufferedMapWindow
  File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/gui/wxpython/mapwin/buffered.py",
line 52, in <module>
    import grass.lib.gis as gislib
  File "/home/mneteler/software/grass77/dist.x86_64-pc-linux-gnu/etc/python/grass/lib/gis.py",
line 988, in <module>
    G_asprintf = _variadic_function(_func,_restype,_argtypes)
TypeError: __init__() missing 1 required positional argument: 'errcheck'
OnInit returned false, exiting...
GRASS 7.7.svn (nc_spm_08_grass7):~ >

Markus


More information about the grass-dev mailing list