Hello friends! I am using `pants package` to buil...
# general
p
Hello friends! I am using
pants package
to build a AWS lambda, and I get the following error:
Copy code
18:08:00.94 [INFO] Completed: Building 1 requirement for faas_repository.pex from the python_default.lock resolve: numpy~=1.25.0
18:08:04.00 [INFO] Completed: Build python_awslambda artifact for kittl/projects/minimal_lambda:lambda
18:08:04.21 [ERROR] 1 Exception encountered:

Engine traceback:
  in `package` goal

IntrinsicError: Error setting permissions on /workspaces/kittl-python/.cache/immutable/files/b9/b9b93ca2e34791d3ffdac6df6fe4f5086588bf75aa3295db8d3e1ae20a933d54: Permission denied (os error 13)
If i then manually set the +w permission to the file
b9b93ca2e34791d3ffdac6df6fe4f5086588bf75aa3295db8d3e1ae20a933d54
and re-run
pants package
it works - as anybody experienced this? is there an easy way to solve this without having to change permissions? especially for CI! I am in ubuntu linux Thanks so much! 🙂
f
could you please re-run this
pants --print-stacktrace -ldebug package
to see where the error message is thrown in the code?
might be worth doing
pants --print-stacktrace package
first without getting too many debug messages 🙂
e
Apparently well known and unsolved as of yet: https://github.com/pantsbuild/pants/issues/19826
@proud-byte-81916 the data @fresh-cat-90827 asks for is good to provide, but perhaps on that ticket, which looks very relevant.
p
Thanks so much for pointing out the issues, is exactly my problem! added a comment with the command output there 🙂
🙌 1