gyp_main.py throwing import error

80 views
Skip to first unread message

Neha Sharan

unread,
May 9, 2018, 11:13:16 AM5/9/18
to gyp-developer
Hi,

I was using gyp on my mac and it was working fine but all of a sudden it started throwing below error - 

File "deps/gyp/gyp_main.py", line 12

    except ImportError, e:

                      ^

SyntaxError: invalid syntax

make: *** [build_ios/abc.xcodeproj] Error 1


Can anyone tell me what might have gone wrong?



Scott Graham

unread,
May 9, 2018, 12:45:33 PM5/9/18
to nehar...@gmail.com, gyp-developer
I would guess your "python" changed to Python 3.

--

---
You received this message because you are subscribed to the Google Groups "gyp-developer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gyp-develope...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Neha Sharan

unread,
May 9, 2018, 12:56:25 PM5/9/18
to gyp-developer
what version of python required?

Scott Graham

unread,
May 9, 2018, 1:02:48 PM5/9/18
to nehar...@gmail.com, gyp-developer
Any version of Python 2 after about 2.6 should be fine.

Neha Sharan

unread,
May 9, 2018, 1:09:24 PM5/9/18
to gyp-developer
Thanks! It worked.
Reply all
Reply to author
Forward
0 new messages