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?

asked Nov 2, 2016 at 4:11
1
  • Please always include errors as text rather than just pictures of errors. That way they are available to future searches. Commented Nov 2, 2016 at 4:22

1 Answer 1

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

answered Nov 2, 2016 at 9:16
2
  • 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. Commented Nov 2, 2016 at 20:13
  • yes --------------- Commented Nov 2, 2016 at 20:45

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.