A couple of questions Royce,
-
Both GRASS 6 and 7 require frameworks (dependencies). As of Friday, the dev versions (including GRASS 7) require several newer versions of the frameworks than does the stable version of GRASS (6.4.3). Did you download all required framework versions?
-
Have you installed a 3rd party python (e.g., Macpython) or a separate install of wxPython?
-
What version of the Mac OS are you running?
Michael
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Aug 19, 2013, at 12:01 PM, <grass-dev-request@lists.osgeo.org>
wrote:
From: “Cline, Royce L.” <rcline@nd.gov>
Subject: [GRASS-dev] GRASS 7 fails to start on OS X
Date: August 19, 2013 9:51:02 AM MST
To: “grass-dev@lists.osgeo.org” <grass-dev@lists.osgeo.org>
Installed Aug. 16 GRASS 7 from Michael Barton’s site. It fails to start, if I have GRASS 6.4.3 installed with the following error:
Traceback (most recent call last):
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/gis_set.py”, line 38, in
from core import globalvar
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/core/globalvar.py”, line 50, in
from grass.script.core import get_commands
ImportError: cannot import name get_commands
The problem appears to be occurring because
/Applications/GRASS-6.4.app/Contents/MacOS/etc/python
occurrs in PATH before
/Applications/GRASS-7.0.app/Contents/MacOS/etc/python
at the point of the error. I don’t understand the start up process to determine where the GRASS-6.4 path is getting set.
GRASS 7 starts if I remove GRASS 6.
Royce
-
Have GRASS 6.4.3 from kyngchaos site with latest frameworks and python modules installed.
-
Using Apple’s python. No other python installed.
-
OS X 10.8.4
With further digging, the problem appears to be in /Applications/GRASS-7.0.app/Contents/MacOS/grass70.
Royce
On Aug 19, 2013, at 2:13 PM, Michael Barton <michael.barton@asu.edu> wrote:
A couple of questions Royce,
-
Both GRASS 6 and 7 require frameworks (dependencies). As of Friday, the dev versions (including GRASS 7) require several newer versions of the frameworks than does the stable version of GRASS (6.4.3). Did you download all required framework versions?
-
Have you installed a 3rd party python (e.g., Macpython) or a separate install of wxPython?
-
What version of the Mac OS are you running?
Michael
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Aug 19, 2013, at 12:01 PM, <grass-dev-request@lists.osgeo.org>
wrote:
From: “Cline, Royce L.” <rcline@nd.gov>
Subject: [GRASS-dev] GRASS 7 fails to start on OS X
Date: August 19, 2013 9:51:02 AM MST
To: “grass-dev@lists.osgeo.org” <grass-dev@lists.osgeo.org>
Installed Aug. 16 GRASS 7 from Michael Barton’s site. It fails to start, if I have GRASS 6.4.3 installed with the following error:
Traceback (most recent call last):
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/gis_set.py”, line 38, in
from core import globalvar
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/core/globalvar.py”, line 50, in
from grass.script.core import get_commands
ImportError: cannot import name get_commands
The problem appears to be occurring because
/Applications/GRASS-6.4.app/Contents/MacOS/etc/python
occurrs in PATH before
/Applications/GRASS-7.0.app/Contents/MacOS/etc/python
at the point of the error. I don’t understand the start up process to determine where the GRASS-6.4 path is getting set.
GRASS 7 starts if I remove GRASS 6.
Royce
I’m assuming that you downloaded GRASS 7 after last Friday? If not, please try again. I just downloaded it onto a different computer, along with the frameworks for the dev versions (on my site), and all works well. If this does not solve your problem there may be a more insidious issue that no one completely understands yet. Hopefully this is NOT the issue.
If getting the newest version of GRASS 7 and frameworks does not work, try downloading my stable GRASS 6.4.3 (also along with its frameworks).
Michael
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Aug 19, 2013, at 12:30 PM, “Cline, Royce L.” <rcline@nd.gov>
wrote:
-
Have GRASS 6.4.3 from kyngchaos site with latest frameworks and python modules installed.
-
Using Apple’s python. No other python installed.
-
OS X 10.8.4
With further digging, the problem appears to be in /Applications/GRASS-7.0.app/Contents/MacOS/grass70.
Royce
On Aug 19, 2013, at 2:13 PM, Michael Barton <michael.barton@asu.edu> wrote:
A couple of questions Royce,
-
Both GRASS 6 and 7 require frameworks (dependencies). As of Friday, the dev versions (including GRASS 7) require several newer versions of the frameworks than does the stable version of GRASS (6.4.3). Did you download all required framework versions?
-
Have you installed a 3rd party python (e.g., Macpython) or a separate install of wxPython?
-
What version of the Mac OS are you running?
Michael
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Aug 19, 2013, at 12:01 PM, <grass-dev-request@lists.osgeo.org>
wrote:
From: “Cline, Royce L.” <rcline@nd.gov>
Subject: [GRASS-dev] GRASS 7 fails to start on OS X
Date: August 19, 2013 9:51:02 AM MST
To: “grass-dev@lists.osgeo.org” <grass-dev@lists.osgeo.org>
Installed Aug. 16 GRASS 7 from Michael Barton’s site. It fails to start, if I have GRASS 6.4.3 installed with the following error:
Traceback (most recent call last):
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/gis_set.py”, line 38, in
from core import globalvar
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/core/globalvar.py”, line 50, in
from grass.script.core import get_commands
ImportError: cannot import name get_commands
The problem appears to be occurring because
/Applications/GRASS-6.4.app/Contents/MacOS/etc/python
occurrs in PATH before
/Applications/GRASS-7.0.app/Contents/MacOS/etc/python
at the point of the error. I don’t understand the start up process to determine where the GRASS-6.4 path is getting set.
GRASS 7 starts if I remove GRASS 6.
Royce
Downloaded GRASS 7 this morning. Tried your 6.4.3. If 6.4.3 is in /Applications/GRASS, then GRASS 7 opens. If either William’s or your 6.4.3 is in /Applications then the problem occurs.
Royce
On Aug 19, 2013, at 2:45 PM, Michael Barton <michael.barton@asu.edu>
wrote:
I’m assuming that you downloaded GRASS 7 after last Friday? If not, please try again. I just downloaded it onto a different computer, along with the frameworks for the dev versions (on my site), and all works well. If this does not solve your problem there may be a more insidious issue that no one completely understands yet. Hopefully this is NOT the issue.
If getting the newest version of GRASS 7 and frameworks does not work, try downloading my stable GRASS 6.4.3 (also along with its frameworks).
Michael
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Aug 19, 2013, at 12:30 PM, “Cline, Royce L.” <rcline@nd.gov>
wrote:
-
Have GRASS 6.4.3 from kyngchaos site with latest frameworks and python modules installed.
-
Using Apple’s python. No other python installed.
-
OS X 10.8.4
With further digging, the problem appears to be in /Applications/GRASS-7.0.app/Contents/MacOS/grass70.
Royce
On Aug 19, 2013, at 2:13 PM, Michael Barton <michael.barton@asu.edu> wrote:
A couple of questions Royce,
-
Both GRASS 6 and 7 require frameworks (dependencies). As of Friday, the dev versions (including GRASS 7) require several newer versions of the frameworks than does the stable version of GRASS (6.4.3). Did you download all required framework versions?
-
Have you installed a 3rd party python (e.g., Macpython) or a separate install of wxPython?
-
What version of the Mac OS are you running?
Michael
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Aug 19, 2013, at 12:01 PM, <grass-dev-request@lists.osgeo.org>
wrote:
From: “Cline, Royce L.” <rcline@nd.gov>
Subject: [GRASS-dev] GRASS 7 fails to start on OS X
Date: August 19, 2013 9:51:02 AM MST
To: “grass-dev@lists.osgeo.org” <grass-dev@lists.osgeo.org>
Installed Aug. 16 GRASS 7 from Michael Barton’s site. It fails to start, if I have GRASS 6.4.3 installed with the following error:
Traceback (most recent call last):
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/gis_set.py”, line 38, in
from core import globalvar
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/core/globalvar.py”, line 50, in
from grass.script.core import get_commands
ImportError: cannot import name get_commands
The problem appears to be occurring because
/Applications/GRASS-6.4.app/Contents/MacOS/etc/python
occurrs in PATH before
/Applications/GRASS-7.0.app/Contents/MacOS/etc/python
at the point of the error. I don’t understand the start up process to determine where the GRASS-6.4 path is getting set.
GRASS 7 starts if I remove GRASS 6.
Royce
I just checked this and have no problem whether I move GRASS 6 out of the /Applications/GRASS folder or not. This seems to be related to your system but it is weird. Just to make sure I understand, you are not trying to run both of these at the same time are you?
Michael
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Aug 19, 2013, at 1:10 PM, “Cline, Royce L.” <rcline@nd.gov>
wrote:
Downloaded GRASS 7 this morning. Tried your 6.4.3. If 6.4.3 is in /Applications/GRASS, then GRASS 7 opens. If either William’s or your 6.4.3 is in /Applications then the problem occurs.
Royce
On Aug 19, 2013, at 2:45 PM, Michael Barton <michael.barton@asu.edu>
wrote:
I’m assuming that you downloaded GRASS 7 after last Friday? If not, please try again. I just downloaded it onto a different computer, along with the frameworks for the dev versions (on my site), and all works well. If this does not solve your problem there may be a more insidious issue that no one completely understands yet. Hopefully this is NOT the issue.
If getting the newest version of GRASS 7 and frameworks does not work, try downloading my stable GRASS 6.4.3 (also along with its frameworks).
Michael
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Aug 19, 2013, at 12:30 PM, “Cline, Royce L.” <rcline@nd.gov>
wrote:
-
Have GRASS 6.4.3 from kyngchaos site with latest frameworks and python modules installed.
-
Using Apple’s python. No other python installed.
-
OS X 10.8.4
With further digging, the problem appears to be in /Applications/GRASS-7.0.app/Contents/MacOS/grass70.
Royce
On Aug 19, 2013, at 2:13 PM, Michael Barton <michael.barton@asu.edu> wrote:
A couple of questions Royce,
-
Both GRASS 6 and 7 require frameworks (dependencies). As of Friday, the dev versions (including GRASS 7) require several newer versions of the frameworks than does the stable version of GRASS (6.4.3). Did you download all required framework versions?
-
Have you installed a 3rd party python (e.g., Macpython) or a separate install of wxPython?
-
What version of the Mac OS are you running?
Michael
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Aug 19, 2013, at 12:01 PM, <grass-dev-request@lists.osgeo.org>
wrote:
From: “Cline, Royce L.” <rcline@nd.gov>
Subject: [GRASS-dev] GRASS 7 fails to start on OS X
Date: August 19, 2013 9:51:02 AM MST
To: “grass-dev@lists.osgeo.org” <grass-dev@lists.osgeo.org>
Installed Aug. 16 GRASS 7 from Michael Barton’s site. It fails to start, if I have GRASS 6.4.3 installed with the following error:
Traceback (most recent call last):
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/gis_set.py”, line 38, in
from core import globalvar
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/core/globalvar.py”, line 50, in
from grass.script.core import get_commands
ImportError: cannot import name get_commands
The problem appears to be occurring because
/Applications/GRASS-6.4.app/Contents/MacOS/etc/python
occurrs in PATH before
/Applications/GRASS-7.0.app/Contents/MacOS/etc/python
at the point of the error. I don’t understand the start up process to determine where the GRASS-6.4 path is getting set.
GRASS 7 starts if I remove GRASS 6.
Royce
I found the cause of the problem. Python 2.6 site-pakages contained grass-py2.6.pth which has:
import sys; sys.path.insert(0,‘/Applications/GRASS-6.4.app/Contents/MacOS/etc/python’)
Therefore, this was in my path whether I was running GRASS 6 or GRASS 7. Deleted it and GRASS 7 now works. I am not sure what installed it. Tested William’s GRASS 6.4.2 and 6.4.3 installers and neither install it. Possibly QGIS.
Royce
On Aug 19, 2013, at 3:10 PM, Royce Cline <rcline@nd.gov>
wrote:
Downloaded GRASS 7 this morning. Tried your 6.4.3. If 6.4.3 is in /Applications/GRASS, then GRASS 7 opens. If either William’s or your 6.4.3 is in /Applications then the problem occurs.
Royce
On Aug 19, 2013, at 2:45 PM, Michael Barton <michael.barton@asu.edu>
wrote:
I’m assuming that you downloaded GRASS 7 after last Friday? If not, please try again. I just downloaded it onto a different computer, along with the frameworks for the dev versions (on my site), and all works well. If this does not solve your problem there may be a more insidious issue that no one completely understands yet. Hopefully this is NOT the issue.
If getting the newest version of GRASS 7 and frameworks does not work, try downloading my stable GRASS 6.4.3 (also along with its frameworks).
Michael
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Aug 19, 2013, at 12:30 PM, “Cline, Royce L.” <rcline@nd.gov>
wrote:
-
Have GRASS 6.4.3 from kyngchaos site with latest frameworks and python modules installed.
-
Using Apple’s python. No other python installed.
-
OS X 10.8.4
With further digging, the problem appears to be in /Applications/GRASS-7.0.app/Contents/MacOS/grass70.
Royce
On Aug 19, 2013, at 2:13 PM, Michael Barton <michael.barton@asu.edu> wrote:
A couple of questions Royce,
-
Both GRASS 6 and 7 require frameworks (dependencies). As of Friday, the dev versions (including GRASS 7) require several newer versions of the frameworks than does the stable version of GRASS (6.4.3). Did you download all required framework versions?
-
Have you installed a 3rd party python (e.g., Macpython) or a separate install of wxPython?
-
What version of the Mac OS are you running?
Michael
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Aug 19, 2013, at 12:01 PM, <grass-dev-request@lists.osgeo.org>
wrote:
From: “Cline, Royce L.” <rcline@nd.gov>
Subject: [GRASS-dev] GRASS 7 fails to start on OS X
Date: August 19, 2013 9:51:02 AM MST
To: “grass-dev@lists.osgeo.org” <grass-dev@lists.osgeo.org>
Installed Aug. 16 GRASS 7 from Michael Barton’s site. It fails to start, if I have GRASS 6.4.3 installed with the following error:
Traceback (most recent call last):
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/gis_set.py”, line 38, in
from core import globalvar
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/core/globalvar.py”, line 50, in
from grass.script.core import get_commands
ImportError: cannot import name get_commands
The problem appears to be occurring because
/Applications/GRASS-6.4.app/Contents/MacOS/etc/python
occurrs in PATH before
/Applications/GRASS-7.0.app/Contents/MacOS/etc/python
at the point of the error. I don’t understand the start up process to determine where the GRASS-6.4 path is getting set.
GRASS 7 starts if I remove GRASS 6.
Royce
This is good to know. Thanks. It will be important to find out if QGIS installs this or something else. Do you have gvsig or other OS GIS package that might use GRASS libraries?
Michael
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Aug 19, 2013, at 3:25 PM, “Cline, Royce L.” <rcline@nd.gov>
wrote:
I found the cause of the problem. Python 2.6 site-pakages contained grass-py2.6.pth which has:
import sys; sys.path.insert(0,‘/Applications/GRASS-6.4.app/Contents/MacOS/etc/python’)
Therefore, this was in my path whether I was running GRASS 6 or GRASS 7. Deleted it and GRASS 7 now works. I am not sure what installed it. Tested William’s GRASS 6.4.2 and 6.4.3 installers and neither install it. Possibly QGIS.
Royce
On Aug 19, 2013, at 3:10 PM, Royce Cline <rcline@nd.gov>
wrote:
Downloaded GRASS 7 this morning. Tried your 6.4.3. If 6.4.3 is in /Applications/GRASS, then GRASS 7 opens. If either William’s or your 6.4.3 is in /Applications then the problem occurs.
Royce
On Aug 19, 2013, at 2:45 PM, Michael Barton <michael.barton@asu.edu>
wrote:
I’m assuming that you downloaded GRASS 7 after last Friday? If not, please try again. I just downloaded it onto a different computer, along with the frameworks for the dev versions (on my site), and all works well. If this does not solve your problem there may be a more insidious issue that no one completely understands yet. Hopefully this is NOT the issue.
If getting the newest version of GRASS 7 and frameworks does not work, try downloading my stable GRASS 6.4.3 (also along with its frameworks).
Michael
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Aug 19, 2013, at 12:30 PM, “Cline, Royce L.” <rcline@nd.gov>
wrote:
-
Have GRASS 6.4.3 from kyngchaos site with latest frameworks and python modules installed.
-
Using Apple’s python. No other python installed.
-
OS X 10.8.4
With further digging, the problem appears to be in /Applications/GRASS-7.0.app/Contents/MacOS/grass70.
Royce
On Aug 19, 2013, at 2:13 PM, Michael Barton <michael.barton@asu.edu> wrote:
A couple of questions Royce,
-
Both GRASS 6 and 7 require frameworks (dependencies). As of Friday, the dev versions (including GRASS 7) require several newer versions of the frameworks than does the stable version of GRASS (6.4.3). Did you download all required framework versions?
-
Have you installed a 3rd party python (e.g., Macpython) or a separate install of wxPython?
-
What version of the Mac OS are you running?
Michael
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Aug 19, 2013, at 12:01 PM, <grass-dev-request@lists.osgeo.org>
wrote:
From: “Cline, Royce L.” <rcline@nd.gov>
Subject: [GRASS-dev] GRASS 7 fails to start on OS X
Date: August 19, 2013 9:51:02 AM MST
To: “grass-dev@lists.osgeo.org” <grass-dev@lists.osgeo.org>
Installed Aug. 16 GRASS 7 from Michael Barton’s site. It fails to start, if I have GRASS 6.4.3 installed with the following error:
Traceback (most recent call last):
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/gis_set.py”, line 38, in
from core import globalvar
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/core/globalvar.py”, line 50, in
from grass.script.core import get_commands
ImportError: cannot import name get_commands
The problem appears to be occurring because
/Applications/GRASS-6.4.app/Contents/MacOS/etc/python
occurrs in PATH before
/Applications/GRASS-7.0.app/Contents/MacOS/etc/python
at the point of the error. I don’t understand the start up process to determine where the GRASS-6.4 path is getting set.
GRASS 7 starts if I remove GRASS 6.
Royce
The problem was self inflicted. I forgot that I added the .pth file to site packages so I could import grass.script in python programs that setup their own GRASS environment. Will modify my code so it doesn’t depend on the .pth file.
No problem with QGIS.
Royce
On Aug 19, 2013, at 6:22 PM, Michael Barton <michael.barton@asu.edu> wrote:
This is good to know. Thanks. It will be important to find out if QGIS installs this or something else. Do you have gvsig or other OS GIS package that might use GRASS libraries?
Michael
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Aug 19, 2013, at 3:25 PM, “Cline, Royce L.” <rcline@nd.gov>
wrote:
I found the cause of the problem. Python 2.6 site-pakages contained grass-py2.6.pth which has:
import sys; sys.path.insert(0,‘/Applications/GRASS-6.4.app/Contents/MacOS/etc/python’)
Therefore, this was in my path whether I was running GRASS 6 or GRASS 7. Deleted it and GRASS 7 now works. I am not sure what installed it. Tested William’s GRASS 6.4.2 and 6.4.3 installers and neither install it. Possibly QGIS.
Royce
On Aug 19, 2013, at 3:10 PM, Royce Cline <rcline@nd.gov>
wrote:
Downloaded GRASS 7 this morning. Tried your 6.4.3. If 6.4.3 is in /Applications/GRASS, then GRASS 7 opens. If either William’s or your 6.4.3 is in /Applications then the problem occurs.
Royce
On Aug 19, 2013, at 2:45 PM, Michael Barton <michael.barton@asu.edu>
wrote:
I’m assuming that you downloaded GRASS 7 after last Friday? If not, please try again. I just downloaded it onto a different computer, along with the frameworks for the dev versions (on my site), and all works well. If this does not solve your problem there may be a more insidious issue that no one completely understands yet. Hopefully this is NOT the issue.
If getting the newest version of GRASS 7 and frameworks does not work, try downloading my stable GRASS 6.4.3 (also along with its frameworks).
Michael
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Aug 19, 2013, at 12:30 PM, “Cline, Royce L.” <rcline@nd.gov>
wrote:
-
Have GRASS 6.4.3 from kyngchaos site with latest frameworks and python modules installed.
-
Using Apple’s python. No other python installed.
-
OS X 10.8.4
With further digging, the problem appears to be in /Applications/GRASS-7.0.app/Contents/MacOS/grass70.
Royce
On Aug 19, 2013, at 2:13 PM, Michael Barton <michael.barton@asu.edu> wrote:
A couple of questions Royce,
-
Both GRASS 6 and 7 require frameworks (dependencies). As of Friday, the dev versions (including GRASS 7) require several newer versions of the frameworks than does the stable version of GRASS (6.4.3). Did you download all required framework versions?
-
Have you installed a 3rd party python (e.g., Macpython) or a separate install of wxPython?
-
What version of the Mac OS are you running?
Michael
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Aug 19, 2013, at 12:01 PM, <grass-dev-request@lists.osgeo.org>
wrote:
From: “Cline, Royce L.” <rcline@nd.gov>
Subject: [GRASS-dev] GRASS 7 fails to start on OS X
Date: August 19, 2013 9:51:02 AM MST
To: “grass-dev@lists.osgeo.org” <grass-dev@lists.osgeo.org>
Installed Aug. 16 GRASS 7 from Michael Barton’s site. It fails to start, if I have GRASS 6.4.3 installed with the following error:
Traceback (most recent call last):
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/gis_set.py”, line 38, in
from core import globalvar
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/core/globalvar.py”, line 50, in
from grass.script.core import get_commands
ImportError: cannot import name get_commands
The problem appears to be occurring because
/Applications/GRASS-6.4.app/Contents/MacOS/etc/python
occurrs in PATH before
/Applications/GRASS-7.0.app/Contents/MacOS/etc/python
at the point of the error. I don’t understand the start up process to determine where the GRASS-6.4 path is getting set.
GRASS 7 starts if I remove GRASS 6.
Royce
Ok. Thanks for letting us know.
Michael Barton
School of Human Evolution &Social Change
Center for Social Dynamics & Complexity
Arizona State University
…Sent from my iPad
On Aug 20, 2013, at 5:08 AM, “Cline, Royce L.” <rcline@nd.gov> wrote:
The problem was self inflicted. I forgot that I added the .pth file to site packages so I could import grass.script in python programs that setup their own GRASS environment. Will modify my code so it doesn’t depend on the .pth file.
No problem with QGIS.
Royce
On Aug 19, 2013, at 6:22 PM, Michael Barton <michael.barton@asu.edu> wrote:
This is good to know. Thanks. It will be important to find out if QGIS installs this or something else. Do you have gvsig or other OS GIS package that might use GRASS libraries?
Michael
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Aug 19, 2013, at 3:25 PM, “Cline, Royce L.” <rcline@nd.gov>
wrote:
I found the cause of the problem. Python 2.6 site-pakages contained grass-py2.6.pth which has:
import sys; sys.path.insert(0,‘/Applications/GRASS-6.4.app/Contents/MacOS/etc/python’)
Therefore, this was in my path whether I was running GRASS 6 or GRASS 7. Deleted it and GRASS 7 now works. I am not sure what installed it. Tested William’s GRASS 6.4.2 and 6.4.3 installers and neither install it. Possibly QGIS.
Royce
On Aug 19, 2013, at 3:10 PM, Royce Cline <rcline@nd.gov>
wrote:
Downloaded GRASS 7 this morning. Tried your 6.4.3. If 6.4.3 is in /Applications/GRASS, then GRASS 7 opens. If either William’s or your 6.4.3 is in /Applications then the problem occurs.
Royce
On Aug 19, 2013, at 2:45 PM, Michael Barton <michael.barton@asu.edu>
wrote:
I’m assuming that you downloaded GRASS 7 after last Friday? If not, please try again. I just downloaded it onto a different computer, along with the frameworks for the dev versions (on my site), and all works well. If this does not solve your problem there may be a more insidious issue that no one completely understands yet. Hopefully this is NOT the issue.
If getting the newest version of GRASS 7 and frameworks does not work, try downloading my stable GRASS 6.4.3 (also along with its frameworks).
Michael
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Aug 19, 2013, at 12:30 PM, “Cline, Royce L.” <rcline@nd.gov>
wrote:
-
Have GRASS 6.4.3 from kyngchaos site with latest frameworks and python modules installed.
-
Using Apple’s python. No other python installed.
-
OS X 10.8.4
With further digging, the problem appears to be in /Applications/GRASS-7.0.app/Contents/MacOS/grass70.
Royce
On Aug 19, 2013, at 2:13 PM, Michael Barton <michael.barton@asu.edu> wrote:
A couple of questions Royce,
-
Both GRASS 6 and 7 require frameworks (dependencies). As of Friday, the dev versions (including GRASS 7) require several newer versions of the frameworks than does the stable version of GRASS (6.4.3). Did you download all required framework versions?
-
Have you installed a 3rd party python (e.g., Macpython) or a separate install of wxPython?
-
What version of the Mac OS are you running?
Michael
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Aug 19, 2013, at 12:01 PM, <grass-dev-request@lists.osgeo.org>
wrote:
From: “Cline, Royce L.” <rcline@nd.gov>
Subject: [GRASS-dev] GRASS 7 fails to start on OS X
Date: August 19, 2013 9:51:02 AM MST
To: “grass-dev@lists.osgeo.org” <grass-dev@lists.osgeo.org>
Installed Aug. 16 GRASS 7 from Michael Barton’s site. It fails to start, if I have GRASS 6.4.3 installed with the following error:
Traceback (most recent call last):
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/gis_set.py”, line 38, in
from core import globalvar
File “/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/core/globalvar.py”, line 50, in
from grass.script.core import get_commands
ImportError: cannot import name get_commands
The problem appears to be occurring because
/Applications/GRASS-6.4.app/Contents/MacOS/etc/python
occurrs in PATH before
/Applications/GRASS-7.0.app/Contents/MacOS/etc/python
at the point of the error. I don’t understand the start up process to determine where the GRASS-6.4 path is getting set.
GRASS 7 starts if I remove GRASS 6.
Royce