Re: [GRASS GIS] #3883: GRASS master does not compile with Python 3 on Mac

"GRASS GIS" <[email protected]>
Newsgroups gmane.comp.gis.grass.devel
Message-ID <[email protected]>
#3883: GRASS master does not compile with Python 3 on Mac
--------------------------+-------------------------
  Reporter:  cmbarton     |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  major        |  Milestone:  7.8.3
 Component:  Default      |    Version:  svn-trunk
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX
--------------------------+-------------------------

Comment (by cmbarton):

 Replying to [comment:9 guano]:
 > I'm facing similar issues. Compiling on OSX 10.14 Mojave, with python
 3.7.4 (pyenv). I'm not using the Mac SDK, just the Mac Command Line Tools.
 Compilation breaks with this error:
 >
 >
 > {{{
 > Errors in:
 > /Volumes/MacintoshHD2/grass/lib/python/ctypes
 > /Volumes/MacintoshHD2/grass/raster/r.in.lidar
 > /Volumes/MacintoshHD2/grass/raster3d/r3.in.lidar
 > /Volumes/MacintoshHD2/grass/vector/v.out.lidar
 > /Volumes/MacintoshHD2/grass/vector/v.in.lidar
 > --
 > In case of errors please change into the directory with error and run
 'make'.
 > If you get multiple errors, you need to deal with them in the order they
 > appear in the error log. If you get an error building a library, you
 will
 > also get errors from anything which uses the library.
 > --
 > Finished compilation: Tue Jan 21 12:42:28 -03 2020
 > make: *** [default] Error 1
 > }}}
 >
 >
 > So I cd into ctypes and run make:
 >
 > {{{
 > Traceback (most recent call last):
 >   File "./ctypesgen.py", line 162, in <module>
 >     descriptions = ctypesgencore.parser.parse(options.headers, options)
 >   File
 "/Volumes/MacintoshHD2/grass/lib/python/ctypes/ctypesgencore/parser/__init__.py",
 line 22, in parse
 >     parser.parse()
 >   File
 "/Volumes/MacintoshHD2/grass/lib/python/ctypes/ctypesgencore/parser/datacollectingparser.py",
 line 74, in parse
 >     ctypesparser.CtypesParser.parse(self, fname, False)
 >   File
 "/Volumes/MacintoshHD2/grass/lib/python/ctypes/ctypesgencore/parser/cparser.py",
 line 122, in parse
 >     self.preprocessor_parser.parse(filename)
 >   File
 "/Volumes/MacintoshHD2/grass/lib/python/ctypes/ctypesgencore/parser/preprocessor.py",
 line 173, in parse
 >     ppout, pperr = pp.communicate()
 >   File "/Users/guano/.pyenv/versions/3.7.4/lib/python3.7/subprocess.py",
 line 939, in communicate
 >     stdout, stderr = self._communicate(input, endtime, timeout)
 >   File "/Users/guano/.pyenv/versions/3.7.4/lib/python3.7/subprocess.py",
 line 1721, in _communicate
 >     self.stdout.errors)
 >   File "/Users/guano/.pyenv/versions/3.7.4/lib/python3.7/subprocess.py",
 line 816, in _translate_newlines
 >     data = data.decode(encoding, errors)
 > UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa9 in position
 1400362: invalid start byte
 > make[1]: *** [OBJ.x86_64-apple-darwin18.7.0/nviz.py] Error 1
 > make: *** [default] Error 2
 > }}}
 >
 > So is this NVIZ-related?
 >
 >

 Maybe but I don't think so. GRASS compiled under Mohave until
 August/September 2019. Then this error popped up. So I don't think it is a
 change in the Mac OS, but something in the GRASS code.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3883#comment:10>
GRASS GIS <https://grass.osgeo.org>

_______________________________________________
grass-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.