Errors while compiling source code on windows 10

75 views
Skip to first unread message

Prasanna Grande

unread,
May 31, 2017, 6:40:48 AM5/31/17
to webdriver
Hello Everyone,

I am trying to compile selenium source code in windows, i am getting below errors, please help me how to resolve it.


D:\seleniumsource>go build
(in D:/seleniumsource)
python D:/seleniumsource/buck-out/crazy-fun/65874cbc58fab1746c2e7d15ea7c2f545fb0df38/buck.pex kill
Using watchman.
Traceback (most recent call last):
  File "D:\seleniumsource\buck-out\crazy-fun\65874cbc58fab1746c2e7d15ea7c2f545fb0df38\buck.pex\.bootstrap\_pex\pex.py", line 320, in execute
  File "D:\seleniumsource\buck-out\crazy-fun\65874cbc58fab1746c2e7d15ea7c2f545fb0df38\buck.pex\.bootstrap\_pex\pex.py", line 253, in _wrap_coverage
  File "D:\seleniumsource\buck-out\crazy-fun\65874cbc58fab1746c2e7d15ea7c2f545fb0df38\buck.pex\.bootstrap\_pex\pex.py", line 285, in _wrap_profiling
  File "D:\seleniumsource\buck-out\crazy-fun\65874cbc58fab1746c2e7d15ea7c2f545fb0df38\buck.pex\.bootstrap\_pex\pex.py", line 363, in _execute
  File "D:\seleniumsource\buck-out\crazy-fun\65874cbc58fab1746c2e7d15ea7c2f545fb0df38\buck.pex\.bootstrap\_pex\pex.py", line 421, in execute_entry
  File "D:\seleniumsource\buck-out\crazy-fun\65874cbc58fab1746c2e7d15ea7c2f545fb0df38\buck.pex\.bootstrap\_pex\pex.py", line 426, in execute_module
  File "C:\Python27\lib\runpy.py", line 192, in run_module
    fname, loader, pkg_name)
  File "C:\Python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "D:\seleniumsource\buck-out\crazy-fun\65874cbc58fab1746c2e7d15ea7c2f545fb0df38\buck.pex\programs\buck.py", line 48, in <module>
  File "D:\seleniumsource\buck-out\crazy-fun\65874cbc58fab1746c2e7d15ea7c2f545fb0df38\buck.pex\programs\buck.py", line 41, in main
  File "D:\seleniumsource\buck-out\crazy-fun\65874cbc58fab1746c2e7d15ea7c2f545fb0df38\buck.pex\programs\buck_tool.py", line 172, in launch_buck
  File "D:\seleniumsource\buck-out\crazy-fun\65874cbc58fab1746c2e7d15ea7c2f545fb0df38\buck.pex\programs\buck_tool.py", line 334, in launch_buckd
  File "C:\Python27\lib\subprocess.py", line 343, in __init__
    raise ValueError("preexec_fn is not supported on Windows "
ValueError: preexec_fn is not supported on Windows platforms
go aborted!
Buck build failed with exit code: 1
stdout:

(See full trace by running task with --trace)

Thanks,
G.LakshmiPrasanna

Simon Stewart

unread,
Jun 1, 2017, 7:09:09 AM6/1/17
to webdriver
Hi,

That's weird. It looks like you're using Python 2.7 (which is the right version), yet I've not heard similar problems. Looking at the open issues for buck and Windows, I don't see something relevant either.

Wondering if some of the other developers who use Windows are seeing this....

Simon

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

darrell grainger

unread,
Jun 1, 2017, 8:48:08 AM6/1/17
to webdriver
If you  haven't already, you might want to post to the developer group as well. It is at https://groups.google.com/forum/#!forum/selenium-developers. Maybe someone there has seen this problem.

The command prompt makes it look like you are using Python 2.7. You might want to check by entering: python -V

This should return the actual version of Python you are using. Another possibility is if you have multiple versions of Python installed, you are getting some Python 3.x libraries used by the Python 2.7 executable. Check your environment variables and see if there is anything set which might affect things. I've often found if your environment is messed up, get something like VirtualBox or VMWare Player, set up a Windows VM and install things on the VM. This way I can have a Ruby VM, a Python 2.7 VM, Java 7 VM, Java 8 VM, etc.. Then there is no worry one installation is messing up another installation. I can also use different Windows VMs for testing different browsers (you can download Windows VMs from http://modern.ie, go to Tools->Virtual Machines).

If you find yourself taking more than a few hours to 'fix' your issue it might be faster to download VirtualBox, download a Windows 10 VM, install Python 2.7 and try building from there.

Darrell

Simon Stewart

unread,
Jun 1, 2017, 12:09:26 PM6/1/17
to webdriver
Many of the core Selenium developer team can be found on the #selenium IRC channel too. 

Simon

--
Reply all
Reply to author
Forward
0 new messages