-
-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSError: : [Errno 2] No such file or directory #293
Comments
which version of pex? can you provide a repro? afaict, this wouldn't be related to #271 but more likely related to bazel's use of pex. |
we put the Pex source under third_party/pex and we have written a file called |
seems like this boils down to this block of code: https://github.com/pantsbuild/pex/blob/master/pex/resolver.py#L259-L264 which is related to distribution caching for resolves. I wonder if in the bazel execution environment (which is presumably sandboxed), it even has access to write to the pex resolve cache (usually in if not, you might consider passing beyond that, I'd suspect this has something to do with how file access works in the context of bazel's execution of pex. should be trivial to debug with a repro + a few checks and print statements. |
thank you so much! I will follow the hints. |
It seems that if multiple Travis CI job are running, this problem can happen. I am wondering if we can set PEX home directory so that we can change |
yes, you can control this at runtime using the
|
@objmagic +1 for this approach. I feel like I also got burned with what I thought was potential shared cache issues at one point, causing me to wipe out the pex cache dir before each run. I looked and I can't find where I had done this though. I think it would be good to put this under the users home and clean it before each build. |
I'm going to close this as answered. Setting PEX_ROOT as @kwlzn pointed out should do the trick here. |
Hi,
Pex is used to generate Python executable files in twitter/heron. However, we sometimes can see the following error message that makes build fail:
This error happens intermittently. I thought #271 fixed the problem and upgrade the Pex, but seems that the problem is still there.
Here is a sample CI log: https://travis-ci.org/twitter/heron/builds/146219942
/cc: @kwlzn
The text was updated successfully, but these errors were encountered: