# windows

Tarun Chinmai Sekar

07/19/2019, 5:20 PM
Has anyone seen these issues before with buck on windows?
Copy code
PS C:\Users\IEUser\Downloads\osquery> buck build @mode/windows-x86_64/debug //osquery:osqueryd
Not using buckd because watchman isn't installed.
Parsing buck files: finished in 4.3 sec
Creating action graph: finished in 1.6 sec
Building: finished in 03:47.8 min (100%) 226/1148 jobs, 10 updated
  Total time: 03:53.7 min
Command failed with exit code 1.
stderr: Traceback (most recent call last):
  File ".bootstrap\_pex\", line 328, in execute
  File ".bootstrap\_pex\", line 261, in _wrap_coverage
  File ".bootstrap\_pex\", line 293, in _wrap_profiling
  File ".bootstrap\_pex\", line 371, in _execute
  File ".bootstrap\_pex\", line 429, in execute_entry
  File ".bootstrap\_pex\", line 434, in execute_module
  File "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\opt\lib\python2.7/", line 180, in run_module
    fname, loader, pkg_name)
  File "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\opt\lib\python2.7/", line 72, in _run_code
    exec code in run_globals
  File "src\com\facebook\buck\features\python\", line 184, in <module>
  File "src\com\facebook\buck\features\python\", line 153, in main
  File "src\com\facebook\buck\features\python\", line 78, in copy_package
  File ".bootstrap\pkg_resources\", line 1162, in resource_isdir
  File ".bootstrap\pkg_resources\", line 1643, in resource_isdir
  File ".bootstrap\pkg_resources\", line 1987, in _isdir
  File ".bootstrap\pkg_resources\", line 1849, in _zipinfo_name
AssertionError: C:/Users/IEUser/Downloads/osquery/.buckd/resources/2019.06.17.01/buck-modules-resources/python/pex.pex/.bootstrap/pkg_resources is not a subpath of C:/Users/IEUser/Downloads/osquery/.buckd/resources/2019.06.17.01/buck-modules-resources/python/pex.pex\

    When running <pex>.
    When building rule //tools/codegen:gentable.


07/19/2019, 7:48 PM
I literally just saw this error and I'm completely blanking on where it was. I had done a bunch of googling around for that error, the
pkg_resources is not a subpath of
bit, but didn't find much. If I can recall what the fix was I'll definitely let you know

Tarun Chinmai Sekar

07/19/2019, 7:53 PM
Thank you very much @thor
The python3 detection in the generateBootstrap config script was broken. The commit - 88abd6a2956fc9df2da681ef3128c5b0fd82513c fixes it. I cherry picked it, and 3.4.0 builds fine afterwards.
👍 1