[GRASS-dev] [GRASS GIS] #1941: wxGUI fails with Japanese locale --> mixed Python installs on Windows
GRASS GIS
trac at osgeo.org
Thu Sep 12 20:32:27 PDT 2013
#1941: wxGUI fails with Japanese locale --> mixed Python installs on Windows
----------------------+-----------------------------------------------------
Reporter: venkat | Owner: grass-dev@…
Type: defect | Status: new
Priority: blocker | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: wingrass | Platform: MSWindows 7
Cpu: x86-32 |
----------------------+-----------------------------------------------------
Comment(by glynn):
Replying to [comment:26 hamish]:
> As seen in the pdf screenshot, the trouble comes with "import re", which
I think(??) is a built-in.
re.py and sre_*.py are part of the standard library. The error comes
because MAXREPEAT is expected to be in the binary module "_sre", which is
built into python27.dll. This is getting loaded from the Windows/System or
SysWOW64 directory, hence the problem.
> Are we prepending to the PYTHONPATH instead of adding the grass paths to
the end of it? (hopefully the GRASS versions get picked up first then)
AFAIK env.bat & friends in the stand-alone installer now explicitly set
GRASS_PYTHON with with the full path to grass's python.exe.
I don't know whether imports from the standard library use PYTHONPATH or
PYTHONHOME (and neither of those will affect binary modules built into
python27.dll).
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1941#comment:27>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list