-
Notifications
You must be signed in to change notification settings - Fork 7k
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
CMake Error at /usr/local/share/cmake-3.18/Modules/FindPython/Support.cmake:615 (if): #2701
Comments
Note pytorch was built just fine. Only torchvision has the issue. |
Also filed the issue here in case it's caused by cmake bug: https://gitlab.kitware.com/cmake/cmake/-/issues/21223 |
Could you try seeing if #2684 is the culprit, and if reverting it makes it work for you? |
That's probably not the root cause. |
I tried their patch and works. |
Meanwhile there's a hack to make it work in 3.18.3 without patching cmake. Line 1 in 662373f
That will set |
@xkszltl can you send a PR with the proposed fix, linking to this issue? |
This is to workaround CMake 3.18.3 bug with a bad regex, which happens to be valid with new parser. Since probably any distro with CMake 3 won't stuck with 3.0, there shall be no real impact with this increase. Fix pytorch#2701
Sure, I thought you guys would just put it in whatever PR that comes next. |
This is to workaround CMake 3.18.3 bug with a bad regex, which happens to be valid with new parser. Since probably any distro with CMake 3 won't stuck with 3.0, there shall be no real impact with this increase. Fix #2701
This is to workaround CMake 3.18.3 bug with a bad regex, which happens to be valid with new parser. Since probably any distro with CMake 3 won't stuck with 3.0, there shall be no real impact with this increase. Fix pytorch#2701
This is to workaround CMake 3.18.3 bug with a bad regex, which happens to be valid with new parser. Since probably any distro with CMake 3 won't stuck with 3.0, there shall be no real impact with this increase. Fix pytorch#2701
🐛 Bug
This is a recent issue.
Given 3.18.3 is recently released (we use latest, was 3.18.2), we're not sure whether it's from torchvision or cmake.
Environment
conda
,pip
, source): sourceThe text was updated successfully, but these errors were encountered: