Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

make_pex.py failed on Building in WSL:Ubuntu #2635

Open
mh884 opened this issue Aug 7, 2021 · 1 comment
Open

make_pex.py failed on Building in WSL:Ubuntu #2635

mh884 opened this issue Aug 7, 2021 · 1 comment

Comments

@mh884
Copy link

mh884 commented Aug 7, 2021

Build the project by using ./bin/buck build --show-output buck it throw error
common.py should handle the permission but for some reason there is something is not right
Python 3.8.5
buck version 87135f8e0de092a6be12736c5254c0c125a2b238

`Building: finished in 4.1 sec (100%) 202/1853 jobs, 77 updated
Total time: 4.1 sec
Command failed with exit code 1.

command: [/usr/bin/python3, /mnt/c/buck/ant-out/buck-modules-resources/python/make_pex.py, --python-shebang=/usr/bin/env python3, --python, /usr/bin/python3, --python-version, CPython 3.8, --entry-point, programs.gen_buck_info, buck-out/gen/ce9b6f2e/programs/gen_buck_info.pex]

stderr: Traceback (most recent call last):
File "/mnt/c/buck/ant-out/buck-modules-resources/python/make_pex.py", line 193, in
sys.exit(main())
File "/mnt/c/buck/ant-out/buck-modules-resources/python/make_pex.py", line 190, in main
pex_builder.build(output)
File "/mnt/c/buck/third-party/py/pex/pex/pex_builder.py", line 418, in build
chmod_plus_x(filename)
File "/mnt/c/buck/third-party/py/pex/pex/common.py", line 153, in chmod_plus_x
os.chmod(path, path_mode)
PermissionError: [Errno 1] Operation not permitted: 'buck-out/gen/ce9b6f2e/programs/gen_buck_info.pex'

When running <pex>.
When building rule //programs:gen_buck_info.`
@KapJI
Copy link
Member

KapJI commented Aug 24, 2021

Basically chmod on buck-out/gen/ce9b6f2e/programs/gen_buck_info.pex failed. Can you check file permissions on that file? Who owns it? Can your current user modify permissions of that file?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants