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

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

Running a script gives me this message: 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.

Any ideas?

Great! Installed and ran both 7.8 and 7.9 (on Catalina) and beginning to test the vector digitizer, - so far so good. As I have been stuck with 7.3, the last version where the digitizer worked for me. Many thanks and congratulations!

I am finally able to (I hope) consistently compile and create new Mac apps for GRASS. Now you have new tech to try out while housebound.

These are both development releases (technically 7.8.3 and 7.9) because they include a number of important fixes for long running Mac problems. Most important of these is that the digitizer finally works again. The interactive classifier for remote sensing training sets may be working too. There are a number of other Mac specific bug fixes.

Also these new binaries are compiled with Python 3.6.10 and gdal 3. I hope to compile future ones with Python 3.7 or 3.8, but these are causing me problems right now. I hope that these new binaries resolve some of the issues few people have been having the last several months.

Note that for some reason, these binaries take a LONG time to open sometimes. I have no idea why. Be patient.

Keep safe and well
Michael

It has been a very long haul fixing problems that prevented me from compiling GRASS with Python 3. They are sort of solved but some still cropping up. I managed to get this version compiled for everyone. Because of university shut downs, and the rest of the world coming apart, I have irregular access to my computer and I'm sure that other devs are similarly limited. I hope that we can get back to a regular pipeline of GRASS for Mac compilations. Until then, I hope that this one will give you all access to some of the most recent improvements.

New GRASS 7.9 binary posted by cmbarton54cmbarton54, 17 Mar 2020 23:02

Hi,

I'm new at this, and i'm trying to work with GRASS within QGIS. First i installed QGIS 3.8 (i had earlier versions), and when i tried to run GRASS commands, QGIS says that GRASS can not be found.

I installed the GRASS 7.7 version in a Macbook pro late 2011, High Sierra OS, and i cant open it, i followed all the instructions for the instalation, but doesn't seemed to work. Appears an OSStatus -67062 error.

I mannualy changed the directory of GRASS at QGIS processing tools, but didn't worked too.

Hope you can help me, and sorry for the bad english,

Thanks in advance

Martín

GRASS 7.7 not starting by Martin ErdmannMartin Erdmann, 15 Oct 2019 17:30

Hello, i just install grass 7.4.4 on mac 10.14.6.
When, I want create new location I select advanced method- select coordinate system…. There is my problem. I am not able to choose any of projection.
The Terminal is saying:
ttributeError: 'ListEvent' object has no attribute 'm_itemIndex'
Traceback (most recent call last):
File "/Applications/GRASS-7.4.4.app/Contents/Resources/gui/wxpython/location_wizard/wizard.py", line 568, in OnItemSelected
index = event.m_itemIndex
AttributeError: 'ListEvent' object has no attribute 'm_itemIndex'

How can i fix this problem? :) thanks

Creating new Location by VydraVydra, 02 Oct 2019 12:37

This is the last GRASS version using Python 2.x. All future versions will rely on Python 3.x and have Python 3.x packaged in the app.

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