Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#2647 closed defect (fixed)

mac OSX - wxpython 3 (64 bit) - fails to generate map preiew

Reported by: epifanio Owned by: grass-dev@…
Priority: critical Milestone: 7.2.0
Component: wxGUI Version: svn-trunk
Keywords: cartographic composer Cc:
CPU: x86-64 Platform: MacOSX


Trying to generate a simple pdf (single raster map + legend) the gui wx map composer freeze with the following log in the shell:

GUI D1/5: gcmd.CommandThread(): --overwrite input=/Users/epi/grass7data/NAD83_UTM_18N/PERMANENT/.tmp/epimac.local/90304.1 output=/Users/epi/grass7data/NAD83_UTM_18N/PERMANENT/.tmp/epimac.local/90304.2
GUI D1/5: gcmd.RunCommand(): g.region rows=947 cols=1014
D1/5: grass.script.core.start_command(): g.region rows=947 cols=1014
GUI D1/5: gcmd.RunCommand(): get return code 0 (0.048446 sec)
Apr  5 20:04:39 epimac.local Python[90304] <Error>: CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Traceback (most recent call last):
  File "/usr/local/grass-7.1.svn/gui/wxpython/psmap/", line 352, in OnCmdDone, format = 'PNG')
  File "build/bdist.macosx-10.10-intel/egg/PIL/", line 1653, in save
    raise ValueError("unknown transformation method")
  File "build/bdist.macosx-10.10-intel/egg/PIL/", line 336, in load
    fp.write("grestore end\n")
  File "build/bdist.macosx-10.10-intel/egg/PIL/", line 143, in Ghostscript
    length = fp.tell()
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 710, in __init__
    errread, errwrite)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Change History (3)

comment:1 by annakrat, 9 years ago

Component: Ps.mapwxGUI
Keywords: cartographic composer added

Do you have Ghostscript installed and on the path?

comment:2 by epifanio, 9 years ago

Resolution: fixed
Status: newclosed

Ghostscript was installed by homebrew, but for some reason not linked in the path. I forced the link and now both preview and ps output works fine

comment:3 by neteler, 8 years ago


Milestone renamed

Note: See TracTickets for help on using tickets.