Recent Forum Posts
From categories:
page 1123...next »

When I tried to start GRASS, my computer was outputting English and Mandarin as installed on the computer and GRASS didn't know which to choose, so it crashed and didn't start. My brother wrote a new start up script to just mandate English. So it's fixed for me but I wanted to let others know. I'm not good enough with Macs (or computers, really) to be able to understand it beyond this.

I just posted new binaries for 7.9 dev and 7.8.4 dev. These have a number of bug fixes, including fixing the positioning problem with NVIZ and allow you to (finally) quit GRASS from the menu without having to type "exit" in the terminal.

Also, the GRASS extensions issue has been solved as much as it can. If you want to compile anything (including GRASS extensions in C or C++), you must have the Developer Command Line Tools installed, including a current SDK (software developer kit) folder. We cannot bundle these in GRASS because of licensing issues. But it is easy to install the Command Line Tools if you want to compile extensions (or anything else). See new notes on the download page.

I also want to thank GRASS dev team member Nicklas Larsson who has created a really slick way to automate my protocol for compiling GRASS and creating these binaries using Anaconda (originally worked out by Eric Hutton). It is now very easy to create a Mac app if you have Anaconda installed.

Including svn in the Mac app only fixes part of this problem. GRASS also needs access to compiler tools to to build extensions that need compiling (e.g. in C or C++). This has been an ongoing issue, but was supposedly solved by including compiling tools in the Mac app. Apparently, this is not yet working. There are possible work arounds I need to try and need to be tested. I still hope that this can be solved without asking Mac users to install Xcode and/or the Apple Developer Tools.

I ran into a new issue in which the most recent update of Apple's Command Line Developer Tools (11.5 beta) removed support for the subversion (svn) collaborative development environment. While GRASS development moved from svn to GitHub over a year ago, it seems that g.extension still requires svn for accessing the GRASS addons repository. So I added svn into the GRASS app for Mac so it will remain available. I just tested this on my Mac and it seems to work. Please let me know if anyone still runs into svn issues in using g.extension with this newest binary.

Hi Michael

Thank you for posting up the latest GRASS GIS 7.8 - I've been testing it out with r.in.pdal (which I was able sucessfully install via g.extension). I've had some difficulty installing orther extensions such as r.geomorphon in that g.extension appears to be looking for a directory to SDKs at /users/cmbarton/SDKs

I'm not sure if this would require a new version to resolve. I should tell you that r.in.pdal is working well. Thanks for your work.

Rob

A further update of GRASS 7.9 dev. This one uses a newer Python (3.7.8) and has fixed the NVIZ positioning bug. Also has some very nice new, high res icons.

I was finally able to compile GRASS 7.9 again, with the outstanding help of Nicklas Larsson on the GRASS dev team. So there are new versions of GRASS 7.8 (release branch as of 17 July 2020) and GRASS 7.9 (as of 25 July 2020) for you.

This is the same issue reported by another person recently. I have no idea why it is happening, as GRASS seems to launch on most people's Mac's without problem. I recommend posting to the GRASS dev site or even better posting an issue to the GRASS GitHub site.

Upgraded OS on 2014 iMac to 10.15.4 Catalina and then installed GRASS 7.8.3 . At start, brief flash and then nothing. Terminal output is:

Lindas-iMac:~ lindaedwards$ /usr/bin/env -i HOME=/Users/lindaedwards PATH=/usr/bin:/bin:/usr/sbin:/etc:/usr/lib /Applications/GRASS-7.8.app/Contents/MacOS/Grass.sh
Rebuilding Addon HTML manual pages index…
Rebuilding Addon menu…
Default locale not found, using UTF-8
Default locale settings are missing. GRASS running with C locale.
Starting GRASS GIS…
Traceback (most recent call last):
File "/Applications/GRASS-7.8.app/Contents/Resources/gui/wxpython/gis_set.py", line 1146, in OnInit
StartUp = GRASSStartup()
File "/Applications/GRASS-7.8.app/Contents/Resources/gui/wxpython/gis_set.py", line 225, in init
self._set_properties(grassVersion, grassRevisionStr)
File "/Applications/GRASS-7.8.app/Contents/Resources/gui/wxpython/gis_set.py", line 286, in _set_properties
self.OnSetDatabase(None)
File "/Applications/GRASS-7.8.app/Contents/Resources/gui/wxpython/gis_set.py", line 923, in OnSetDatabase
self.OnSelectLocation(None)
File "/Applications/GRASS-7.8.app/Contents/Resources/gui/wxpython/gis_set.py", line 858, in OnSelectLocation
self.lblocations.GetSelection()]))
File "/Applications/GRASS-7.8.app/Contents/Resources/gui/wxpython/gis_set.py", line 825, in UpdateMapsets
gisdbase=self.gisdbase)
File "/Applications/GRASS-7.8.app/Contents/Resources/gui/wxpython/core/gcmd.py", line 719, in RunCommand
stdout, stderr = list(map(DecodeString, ps.communicate()))
File "/Applications/GRASS-7.8.app/Contents/Resources/gui/wxpython/core/gcmd.py", line 72, in DecodeString
return string.decode(_enc)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position 0: ordinal not in range(128)
OnInit returned false, exiting…
ERROR: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the text flag.
Use '
help' for further options
grass78 —help
See also:[link to 7.8 manual]
Exiting…

Thanks for all your work on this - it works fine on my MacBookPro with Catalina.

GRASS 7.8.3 not starting by sedwards2sedwards2, 12 Jun 2020 19:08

I have just posted a detailed workflow for how I compile GRASS and create distributable binary apps using the Anaconda Python package. You can find it on the GRASS WIKI site at: https://grasswiki.osgeo.org/wiki/Compiling_on_MacOSX_using_Anaconda

what version of MacOS do you have?

Re: Grass78.3 not starting by cmbarton54cmbarton54, 01 Jun 2020 22:22

Hi,

when i srart Frass78.3 ,….

Last login: Sun May 31 07:54:45 on ttys004
/usr/bin/env -i HOME=/Users/XYZ PATH=/usr/bin:/bin:/usr/sbin:/etc:/usr/lib /Applications/GRASS-7.8.app/Contents/MacOS/Grass.sh
XYZ@xyz ~ % /usr/bin/env -i HOME=/Users/XYZ PATH=/usr/bin:/bin:/usr/sbin:/etc:/usr/lib /Applications/GRASS-7.8.app/Contents/MacOS/Grass.sh
Rebuilding Addon HTML manual pages index…
Rebuilding Addon menu…
Default locale not found, using UTF-8
Default locale settings are missing. GRASS running with C locale.
Starting GRASS GIS…
Traceback (most recent call last):
File "/Applications/GRASS-7.8.app/Contents/Resources/gui/wxpython/gis_set.py", line 1146, in OnInit
StartUp = GRASSStartup()
File "/Applications/GRASS-7.8.app/Contents/Resources/gui/wxpython/gis_set.py", line 225, in init
self._set_properties(grassVersion, grassRevisionStr)
File "/Applications/GRASS-7.8.app/Contents/Resources/gui/wxpython/gis_set.py", line 286, in _set_properties
self.OnSetDatabase(None)
File "/Applications/GRASS-7.8.app/Contents/Resources/gui/wxpython/gis_set.py", line 923, in OnSetDatabase
self.OnSelectLocation(None)
File "/Applications/GRASS-7.8.app/Contents/Resources/gui/wxpython/gis_set.py", line 858, in OnSelectLocation
self.lblocations.GetSelection()]))
File "/Applications/GRASS-7.8.app/Contents/Resources/gui/wxpython/gis_set.py", line 825, in UpdateMapsets
gisdbase=self.gisdbase)
File "/Applications/GRASS-7.8.app/Contents/Resources/gui/wxpython/core/gcmd.py", line 719, in RunCommand
stdout, stderr = list(map(DecodeString, ps.communicate()))
File "/Applications/GRASS-7.8.app/Contents/Resources/gui/wxpython/core/gcmd.py", line 72, in DecodeString
return string.decode(_enc)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 0: ordinal not in range(128)
OnInit returned false, exiting…
ERROR: Error in GUI startup. See messages above (if any) and if necessary, please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, probably named grass-gui, installed.
To run GRASS GIS in text mode use the text flag.
Use '
help' for further options
grass78 —help
See also: htt……..
Exiting…
XYZ@xyz ~ %
XYZ@xyz ~ %

please help!

Grass78.3 not starting by xzh98xzh98, 31 May 2020 00:41

that way you don't risk losing them if you update GRASS to a new version.

/Applications/GRASS-7.9.app/Contents/Resources/scripts

this is where I locate my scripts. I expect I should move them to the location you suggest. Thanks!

Ah. Yes. That is how python starts in the Mac build. You can also just use python. This works the same as pythonw I think. Using python3 can send it looking for Python outside of the GRASS app.

Where are you putting the script? The best place is in ~/Library/Application\ Support/GRASS/7.0/Modules/scripts

Michael

This particular script runs after I replaced python3 with pythonw in the shebang line.

Most Python scripts run fine, but if wx is called, the error message pops up.

SESSION

Last login: Mon Apr 6 13:07:48 on ttys000

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit []

| ~ @ uppsetnings-MacBook-Pro-4 (jeir)
| => /usr/bin/env -i HOME=/Users/jeir PATH=/usr/bin:/bin:/usr/sbin:/etc:/usr/lib /Applications/GRASS-7.9.app/Contents/MacOS/Grass.sh
Rebuilding Addon HTML manual pages index…
Rebuilding Addon menu…
Default locale not found, using UTF-8
Default locale settings are missing. GRASS running with C locale.
Starting GRASS GIS…
Cleaning up temporary files…

__ _ __ _
/ / __ \/ | / _/ _/ / / _/ _/
/ / __/ /_/ / /| | \
\\_ \ / / __ / / \__ / /_/ / _, _/ _ |_/ // / / /_/ // / _/ /
\/_/ |_/_/ |_/// \/_//__/

Welcome to GRASS GIS 7.9.dev (c934bb68b)
GRASS GIS homepage: []
This version running through: Bourne Shell (sh)
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…
GRASS 7.9.dev (nc_spm_08_grass7):~ > WARNING: GRASS GIS libgis version and date number not available
WARNING: GRASS GIS libgis version and date number not available

GRASS 7.9.dev (nc_spm_08_grass7):~ > tr_a.py
This program needs access to the screen. Please run with a
Framework build of python, and only when you are logged in
on the main display of your Mac.
GRASS 7.9.dev (nc_spm_08_grass7):~ >

SCRIPT

#!/usr/bin/env python3
#-*- coding:utf-8 -*-
#%Module
#% description: test wx
#% keywords: region
#%end
#
############################################################################

import wx
class MyFrame(wx.Frame):
"""create a color frame, inherits from wx.Frame"""
def init(self, parent):
# -1 is the default ID
wx.Frame.init(self, parent, -1, "Click for mouse position", size=(400,300),
style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE)
self.SetBackgroundColour('Goldenrod')
self.SetCursor(wx.StockCursor(wx.CURSOR_PENCIL))

# hook some mouse events
self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)
self.Bind(wx.EVT_RIGHT_DOWN, self.OnRightDown)

def OnLeftDown(self, event):
"""left mouse button is pressed"""
pt = event.GetPosition() # position tuple
print (pt)
self.SetTitle('LeftMouse = ' + str(pt))

def OnRightDown(self, event):
"""right mouse button is pressed"""
pt = event.GetPosition()
print (pt)
self.SetTitle('RightMouse = ' + str(pt))
app = wx.App()
frame = MyFrame(None)
frame.Show(True)
app.MainLoop()

My own - will post an example asap, starting with this

#!/usr/bin/env python3

page 1123...next »
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License