-
Notifications
You must be signed in to change notification settings - Fork 202
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
Build script cannot detect a suitable python version #3803
Comments
Two things to note here:
The best way is to tell the build.py script exactly which python to use by using the See the help page build.md which has a table that shows the various dependencies (such as python). Sean |
Thank you for your quick response. After adding the build-args parameter to build.py as you advised I get
|
Sorry I think I might have forgotten the " around the
You can see the problem by looking at the output of build_log.txt. You'll see Sean |
I had placed "" around build-args but still got the same error. Now I have replaced the paths with paths of a shortcut that has not spaces. Still the same error. Strange. Sorry if I am missing something. I have also tried with 3.10.0 instead of 3.10. |
Could you send your Thanks, |
I have tried with many variations of arguments for the build.py but let's say this is the final one.
Where I have also tried with the paths themselves.
Thank you for your attention so far. |
Okay I think I've found the problem. I tested this locally and both solutions worked for me. The problem is the spaces in those paths. Even with the shortcut the real path still has a space. There are two solutions:
Sean |
Glad to hear the python problem is fixed. Jinja and Markupsafe are required when building the schemas. Since you are passing in the maya python to use, it is there that you need to install these two modules. Open a windows command prompt and navigate to your Maya 2024 folder. Then run:
This will install those specific versions. I believe you can use newer, but internally I know these are the versions we use. Sean |
It looks like you built your own USD. That USD build also needs to use the python from maya (for bindings and schema) since you are using it for MayaUsd. You need to tell the USD build which python to use (mayapy) by using the build.py flag
Sean |
Thanks! |
After trying to build with multiple arguments but build.py always fails with
Could NOT find Python3: Found unsuitable version "3.11", but required is exact version "3.11.2" (found C:\Python311\libs\python311.lib)
I have installed exactly version 3.11.2 and not 3.11.
The last command I have tried with is
python build.py --devkit-location "C:\extdevkit\Autodesk_Maya_2024_2_Update_DEVKIT_Windows\devkitBase" --maya-location "C:\Program Files\Autodesk\Maya2024" --no-materialx --pxrusd-location C:\extbuild\Usd_Build --generator "Visual Studio 16 2019" "C:/extbuild/MayaUsd_Build"
I have also installed python 2.7.15 which is needed for the build as well.
I have tried with BUILD_WITH_PYTHON_3=ON and the needed python version according to the docs.
build_log.txt
The text was updated successfully, but these errors were encountered: