Has anyone seen these issues before with buck on w...
# windows
t
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\pex.py", line 328, in execute
  File ".bootstrap\_pex\pex.py", line 261, in _wrap_coverage
  File ".bootstrap\_pex\pex.py", line 293, in _wrap_profiling
  File ".bootstrap\_pex\pex.py", line 371, in _execute
  File ".bootstrap\_pex\pex.py", line 429, in execute_entry
  File ".bootstrap\_pex\pex.py", line 434, in execute_module
  File "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\opt\lib\python2.7/runpy.py", line 180, in run_module
    fname, loader, pkg_name)
  File "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\opt\lib\python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "src\com\facebook\buck\features\python\make_pex.py", line 184, in <module>
  File "src\com\facebook\buck\features\python\make_pex.py", line 153, in main
  File "src\com\facebook\buck\features\python\make_pex.py", line 78, in copy_package
  File ".bootstrap\pkg_resources\__init__.py", line 1162, in resource_isdir
  File ".bootstrap\pkg_resources\__init__.py", line 1643, in resource_isdir
  File ".bootstrap\pkg_resources\__init__.py", line 1987, in _isdir
  File ".bootstrap\pkg_resources\__init__.py", 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.
t
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
t
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