Opened 6 years ago

Closed 6 years ago

#57345 closed defect (worksforme)

grass7: ImportError: No module named wx

Reported by: stanimura Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.5.3
Keywords: Cc:
Port: grass7

Description

grass7 @7.4.1 failed to build possibly due to the new Xcode.

$ xcodebuild -version
Xcode 10.0
Build version 10A255

Attachments (2)

main.log (8.9 MB) - added by stanimura 6 years ago.
main.2.log (8.9 MB) - added by stanimura 6 years ago.

Change History (8)

Changed 6 years ago by stanimura

Attachment: main.log added

comment:1 Changed 6 years ago by mf2k (Frank Schima)

Summary: grass7 @7.4.1 failed to buildgrass7: ImportError: No module named wx

Error appears to be:

:info:build GISRC=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass7/grass7/work/grass-7.4.1/dist.x86_64-apple-darwin18.0.0/demolocation/.grassrc74 GISBASE=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass7/grass7/work/grass-7.4.1/dist.x86_64-apple-darwin18.0.0 PATH="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass7/grass7/work/grass-7.4.1/dist.x86_64-apple-darwin18.0.0/bin:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass7/grass7/work/grass-7.4.1/dist.x86_64-apple-darwin18.0.0/bin:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass7/grass7/work/grass-7.4.1/dist.x86_64-apple-darwin18.0.0/scripts:$PATH" PYTHONPATH="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass7/grass7/work/grass-7.4.1/dist.x86_64-apple-darwin18.0.0/etc/python:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass7/grass7/work/grass-7.4.1/dist.x86_64-apple-darwin18.0.0/gui/wxpython:$PYTHONPATH" DYLD_LIBRARY_PATH="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass7/grass7/work/grass-7.4.1/dist.x86_64-apple-darwin18.0.0/bin:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass7/grass7/work/grass-7.4.1/dist.x86_64-apple-darwin18.0.0/bin:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass7/grass7/work/grass-7.4.1/dist.x86_64-apple-darwin18.0.0/scripts:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass7/grass7/work/grass-7.4.1/dist.x86_64-apple-darwin18.0.0/lib:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass7/grass7/work/grass-7.4.1/dist.x86_64-apple-darwin18.0.0/lib:" LC_ALL=C LANG=C LANGUAGE=C /opt/local/bin/python2.7 core/menutree.py "manager" >> menustrings.py
:info:build Traceback (most recent call last):
:info:build   File "core/menutree.py", line 44, in <module>
:info:build     import wx
:info:build ImportError: No module named wx
:info:build make[4]: *** [menustrings.py] Error 1

comment:2 Changed 6 years ago by mf2k (Frank Schima)

Did you use the +gui variant?

Changed 6 years ago by stanimura

Attachment: main.2.log added

comment:3 Changed 6 years ago by stanimura

No. I did with no variants. It seems that grass7 may require WxPython even without +gui variant. After installing wxPython-3.0 @3.0.2_5, I retried the following command lines.

$ sudo port clean grass7 && sudo port -v install grass7 -gui

The import error of wx dispeared but grass7 still failed to build.

comment:4 Changed 6 years ago by stanimura

grass7 @7.4.1_0 is now able to build on Mojave.

$ xcodebuild -version
Xcode 10.1
Build version 10B61

Thank you.

comment:5 Changed 6 years ago by mf2k (Frank Schima)

I see, so Xcode 10.1 fixed a bug that allows this to work now.

Last edited 6 years ago by mf2k (Frank Schima) (previous) (diff)

comment:6 Changed 6 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.