-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
tensorflow-osx is failing in CI #21758
Comments
what about adding also a --user option? the upgrade should happen in user folder and mask away system wide old pip... |
Maybe that's the right thing. (Words cannot describe how little I understand about pip :) ) |
Should we temporary skip tensorflow in the failure triplets? |
Simply If there is an option to bootstrap pip into a 100% private location for vcpkg, that could be interesting. Based on https://docs.python.org/3/library/ensurepip.html, it seems like we might be able to do
|
FWIW, the python3 port installs a functioning interpreter that has pip available. |
We have pip available, just not of the matching version for the numpy wheel tensorflow wants. Forcing the user to build python to use tensorflow is probably overkill and probably isn't what they want, since that would give them a tensorflow that loads into their custom version of python, not necessarily the release copies. |
i’d have thought that a pip dependency, host: true was expected along our journey…. |
(which means yes, building python to build tensorflow….) |
Unfortunately that says it uses the version of pip bootstrapped with that particular version of Python which is apparently too old here, since that would be the same version as the one that got automatically bootstrapped as when we got Python in the first place |
At this point I think a reasonable thing to do would be to print a warning like we do for apt and friends that tensorflow's build may fail without the user running that command first, just like we do for ports that have system dependencies on apt-get and friends... |
I see. I think there should still be a potential path like:
https://docs.python.org/3/library/venv.html It's then also safe to install whatever tensorflow wants into that virtual environment, since it won't touch anything else on the user's machine (numpy, etc). |
Thanks for the python venv ideas. I incorporated @ras0219-msft's suggestions in PR #21912. |
BTW: From https://github.com/microsoft/vcpkg#telemetry I read that vcpkg collects some statistics. How can I see how many (approx.) installs there are from "my" port, and if this is little or much compared to an average port? Can I also see how "my" port installs are distributed over triplets? |
Now Linux CI is failing complaining venv package is missing:
I think this is the error message @BillyONeal was referring to. Can one of the maintainers please install this package on CI (or instruct me how to do this, should I surprisingly have sufficient permission to do so)? |
At risk of getting off topic on this thread, I'm not sure if that's information we can recover from the statistics we collect. For example, user-controlled identifiers must be crypto hashed so that we don't inadvertently collect PII if someone creates their own port "my-social-security-number-is-555-55-5555", and we also can't keep more than a couple weeks of data. We can ask questions like "how many people installed this port at this version in the last week" but not "what are all the things people installed". Here's where that's done; it looks like we do record a SHA per port: (We want no appearance, as well as no reality, of collecting information anyone may consider personal or problematic given that our bootstrap process must be noninteractive, giving us no opportunity to prompt on the question to make it truly opt-in) |
This issue is tracking investigation as to why tensorflow and tensorflow-cc are broken on our MacOS CI machines. Consider a recent CI run: https://dev.azure.com/vcpkg/public/_build/results?buildId=63779
I was able to reproduce this locally, tensorflow fails with:
When I run
directly outside of vcpkg I indeed get build failures attempting to compile numpy. However, I got a warning message:
After
/Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip
, tensorflow appears to install OK.I'm not sure how to fix this, since upgrading pip seems to be a "system modifying" action we don't want vcpkg to do. I could just manually upgrade pip on all the osx test hardware, but that seems to be just masking the problem.
We could add an extra help message, but ideally there would be some way to update pip in a private "user" way like we try to install numpy in the first place...
/cc @jgehw
The text was updated successfully, but these errors were encountered: