1

I'm using GRASS GIS 7.0.3, the default python version is python2.7. I need python3.5 for my own module. After I edit the 'etc/env.bat' file to change GRASS_PYTHON and PYTHONHOME to the location of my new python .exe file and the new python directory. Then I run GRASS GIS, but I got the following error:

File "C:\Program Files\GRASS GIS 7.0.3\etc\grass70.py", line 251 os.makedir(tmpdir, 0700) SyntaxError: invalid token

enter image description here

Am I do it in the right way?

  • Please always include errors as text rather than just pictures of errors. That way they are available to future searches. – PolyGeo Nov 2 '16 at 4:22
3

From REQUIREMENTS to compile GRASS GIS 7

Python >= 2.6 (for temporal framework, scripts, wxGUI, and ctypes interface) Note: Python 3 support is still in development

and

  • According to the last link, I modify the init.py "import core" to "import .core". I got error "no module named builtin". I think the idea is GRASS haven't support Python3 yet. – Rui Wang Nov 2 '16 at 20:13
  • yes --------------- – gene Nov 2 '16 at 20:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.