Can't find '__main__.py' in 'build\\gyp'

161 views
Skip to first unread message

Kapil Rakh

unread,
Apr 5, 2013, 8:38:26 AM4/5/13
to v8-u...@googlegroups.com
C:\V8>third_party\python_26\python.exe build\gyp
C:\V8\third_party\python_26\python.exe: can't find '__main__.py' in 'build\\gyp'

I have followed the instructions but unable to get this working.

This is windows 8. I have the same error on windows 7 also.


Please reply.

Jakob Kummerow

unread,
Apr 8, 2013, 5:23:13 AM4/8/13
to v8-u...@googlegroups.com
Sounds like you haven't checked out GYP into <v8>\build\gyp\.


--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Kapil Rakh

unread,
Apr 8, 2013, 7:21:57 AM4/8/13
to v8-u...@googlegroups.com
I did checkout gyp using this command. I did a flle search for __main__.py but couldn't find it.


You received this message because you are subscribed to a topic in the Google Groups "v8-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/v8-users/7rkom-O5n4o/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to v8-users+u...@googlegroups.com.

Jakob Kummerow

unread,
Apr 8, 2013, 10:23:24 AM4/8/13
to v8-u...@googlegroups.com
Oh, right. I hadn't noticed that you're trying to execute the wrong command. Please follow the instructions closely: C:\V8>third_party\python_26\python.exe build\gyp_v8

By the way, we also have official instructions: https://code.google.com/p/v8/wiki/BuildingWithGYP

Jay Man

unread,
Mar 5, 2014, 8:39:31 PM3/5/14
to v8-u...@googlegroups.com
I'm having the same problem. I have this all in my C:\Users\(username) directory checked out using svn

\build\gyp_v8
\third_party\cygwin
\third_party\icu
\third_party\python_26

I put python in my path. I get the same error when I enter: python build\gyp_v8
python.exe: can't find '__main__.py' in 'build\\gyp_v8

I'd just like to point out that the directories in the instructions don't seem to match. I just renamed one of the folders to make them match. (doesn't fix the problem I'm having though)

python build\gyp_v8
svn co http://gyp.googlecode.com/svn/trunk build/gyp

Jakob Kummerow

unread,
Mar 6, 2014, 4:23:08 AM3/6/14
to v8-u...@googlegroups.com
I think you're misunderstanding the instructions. "gyp" and "gyp_v8" are not the same, you shouldn't overwrite one with the other, and you shouldn't rename them to "match". Just follow the instructions closely, they do work.

build\gyp\ is a directory, that's where you're supposed to check out GYP to. "svn co http://gyp.googlecode.com/svn/trunk build/gyp" does just that.
build\gyp_v8 is a Python script in the V8 repository. It requires GYP to be checked out into build\gyp. This is what you run, as "python build\gyp_v8" states.

[And yes, naming/organization of this stuff is a bit unfortunate, but it's been this way forever, and I'm not looking forward to the churn caused by cleaning it up.]

Jay Man

unread,
Mar 7, 2014, 11:53:13 AM3/7/14
to v8-u...@googlegroups.com
Thanks for the clarification! It just dawned on my I don't even have the v8 repository installed! I must of overlooked this line: 'The instructions below assume that you already have acheckout of V8.' I did downoad the zip, but neglected to install it.

The checkout instructions describe how to get v8 using git. Just out of curiosity what if one were to obtain the source by going to https://github.com/v8/v8 via a web browser and downloading the zip instead, where would one place the contents?

an incomplete summary of the contents of v8-master:
build
include
src

Do I place these in the same folder that I placed third_party and build\gyp ? So build\ would become populated from 2 sources.

Thanks for the help!

 
 

Jakob Kummerow

unread,
Mar 7, 2014, 1:11:31 PM3/7/14
to v8-u...@googlegroups.com
On Fri, Mar 7, 2014 at 5:53 PM, Jay Man <gman...@gmail.com> wrote:
Thanks for the clarification! It just dawned on my I don't even have the v8 repository installed! I must of overlooked this line: 'The instructions below assume that you already have acheckout of V8.' I did downoad the zip, but neglected to install it.

The checkout instructions describe how to get v8 using git. Just out of curiosity what if one were to obtain the source by going to https://github.com/v8/v8 via a web browser and downloading the zip instead, where would one place the contents?

It doesn't matter how you got the source, just put it somewhere :-)
 
an incomplete summary of the contents of v8-master:
build
include
src

Do I place these in the same folder that I placed third_party and build\gyp ? So build\ would become populated from 2 sources.

Yes.
(I'd do it the other way round: extract the zip, then populate the additional directories.)

Jay Man

unread,
Mar 7, 2014, 2:15:10 PM3/7/14
to v8-u...@googlegroups.com
It works now, I put the v8 repository (from zip file) in a folder called 
\v8-master

I put gyp into (using svn)
\v8-master\build\gyp

I put icu into (it seems the python script expects it to be in the relative path of \third_party\icu)
\v8-master\third_party\icu

then ran 'python build\gyp_v8' from '\v8-master\' (with the python folder already defined in the PATH)

Thanks for the assistance!
Reply all
Reply to author
Forward
0 new messages