Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 381759 - sci-geosciences/grass-6.4.1 wxwidgets GUI does not start with Python3
Summary: sci-geosciences/grass-6.4.1 wxwidgets GUI does not start with Python3
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam Jorna (wraeth)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 415635
  Show dependency tree
 
Reported: 2011-09-04 10:37 UTC by Chris Mayo
Modified: 2015-10-19 11:15 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Set GRASS_PYTHON to python2 (grass-6.4.1-grasspython.patch,232 bytes, text/plain)
2011-09-04 10:37 UTC, Chris Mayo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Mayo 2011-09-04 10:37:14 UTC
Created attachment 285507 [details]
Set GRASS_PYTHON to python2

If the default interpreter is Python3 grass-6.4.1 emerges fine but the GUI installed with USE="wxwidgets" does not start:

$ grass64 -wxpython

WELCOME TO GRASS              Version 6.4.1         2011

   1) Have at your side all available GRASS tutorials

   2) When working on your location, the following materials
      are extremely useful:
      - A topo map of your area
      - Current catalog of available computer maps

   3) Check the GRASS webpages for feedback mailinglists and more:
      http://www.grass-gis.org
      http://grass.osgeo.org

Hit RETURN to continue

Starting GRASS ...
  File "/usr/lib64/grass64/etc/wxpython/gis_set.py", line 466
    except StandardError, e:
                        ^
SyntaxError: invalid syntax
Error in GUI startup. If necessary, please
report this error to the GRASS developers.
Switching to text mode now.
Hit RETURN to continue...


Adding the attached patch to PATCHES in the ebuild fixes this for me.
Comment 1 Dan White 2013-01-24 22:56:15 UTC
I note the same issue:

WELCOME TO GRASS              Version 6.4.1         2011

   1) Have at your side all available GRASS tutorials

   2) When working on your location, the following materials
      are extremely useful:
      - A topo map of your area
      - Current catalog of available computer maps

   3) Check the GRASS webpages for feedback mailinglists and more:
      http://www.grass-gis.org
      http://grass.osgeo.org

Hit RETURN to continue

Starting GRASS ...
  File "/usr/lib64/grass64/etc/wxpython/gis_set.py", line 466
    except StandardError, e:
                        ^
SyntaxError: invalid syntax
Error in GUI startup. If necessary, please
report this error to the GRASS developers.
Switching to text mode now.
Hit RETURN to continue...

Please let me know if I can contribute any additional documentation to help move this issue forward...
Comment 2 Sam Jorna (wraeth) gentoo-dev 2015-10-19 11:15:19 UTC
Closing as OBSOLETE - sci-geosciences/grass-7.0.1 has been added to the tree as per bug 514514 and subsequently revbumped. Note that sci-geosciences/grass:6 has been masked and will be removed from the tree in the coming weeks.