[GRASS-dev] grass7 on mac OSX

Massimo Di Stefano massimodisasha at gmail.com
Thu May 27 10:04:48 EDT 2010


i tried a new build, removing the old .app first
i tried without ipython, but the problem is the same :

GRASS 7.0.svn (spearfish60):~ > python
Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os, sys
>>> from grass.lib import raster
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named lib
>>> 


Il giorno 27/mag/2010, alle ore 15.43, William Kyngesburye ha scritto:

> On May 27, 2010, at 3:56 AM, Massimo Di Stefano <massimodisasha at gmail.com> wrote:
> 
>> Hell Soeren,
>> 
>> seems i've an up-to-date revision :
>> 
>> MacBook-Pro-15-di-Massimo-Di-Stefano:grass_trunk sasha$ svn up
>> At revision 42358.
>> 
>> i also did make distclean first to re-try configure && make.
>> 
>> 
>> but your note about a "renamed" function, point me to a problem i had on qgis side too (make install overwrite the .app but ... it don't do it as aspected)
>> 
>> infact, removing manually the old grass70.app (compiled from source) trashing the complete app from /Application , instead of overwrite it using "sudo make install"
>> 
>> now i have :
>> 
>> In [1]: import os, sys
>> 
>> In [2]: from grass.lib import raster
>> ------------------------------------------------------------
>> Traceback (most recent call last):
>> File "<ipython console>", line 1, in <module>
>> ImportError: No module named lib
>> 
> I wonder if ipython is affecting this?  Just a random idea. (I can't try anything right now- dev Mac died)
> 
>> 
>> the error is present but changes ... this time maybe can be a wrong sintax i used ???
>> weird .. i'm a bit confused ;-)
>> 
>> 
>> 
>> i'm tring to replicate, from command line, the code :
>> 
>> ###
>> 
>> import os, sys
>> from grass.lib import grass, raster
>> from ctypes import *
>> 
>> input = sys.argv[1]
>> 
>> grass.G_gisinit(sys.argv[0])
>> 
>> mapset = grass.G_find_raster2(input, "")
>> print mapset
>> 
>> 
>> Massimo
>> 
>> Il giorno 27/mag/2010, alle ore 10.37, Soeren Gebbert ha scritto:
>> 
>>> Hello Massimo,
>>> can you please make a svn update?The gmath function
>>> G_math_backward_solving has been renamed into
>>> G_math_backward_substitution a while ago. Maybe something got mixed
>>> up?
>>> 
>>> Best
>>> Soeren
>>> 



More information about the grass-dev mailing list