Open meghbhalerao opened 2 days ago
I am facing a similar issue trying to build USD with python on windows 10 and it doesn't seem to be finding python.
Filed as internal issue #USD-10403
@s-dakshin are you also using conda and getting the same error? If not, it would be helpful to file a separate issue.
@meghbhalerao can you run the following in the same Python environment and give the output?
import sysconfig
base = sysconfig.get_config_var("installed_base")
multiarch = sysconfig.get_config_var("multiarchsubdir")
library = sysconfig.get_config_var("LDLIBRARY")
print(f"installed_base location is {base} \n multiarchsubdir is {multiarch} \n LDLIBRARY is {library}")
@sunyab I realized that https://github.com/PixarAnimationStudios/OpenUSD/blob/release/build_scripts/build_usd.py#L225 has an issue that it can fall through on the last item even if it doesn't exist. I'll submit a PR for that. I'm not sure that its the core issue here, but I think it is an issue in general as I was trying to figure out what's going on.
@meghbhalerao can you run the following in the same Python environment and give the output?
Hi, I get the following output after running the above script -
installed_base location is /home/mb230/anaconda3/envs/test
multiarchsubdir is None
LDLIBRARY is libpython3.10.a
Hmm okay, so I think conda is somehow lying about the LDLIBRARY it's using. I'm not sure how that's derived, but it's telling us to use the static library, but you only have the dynamic library. I put up a PR just now that will at least error earlier when it can't find it https://github.com/PixarAnimationStudios/OpenUSD/pull/3404
One short term workaround is that you can pass in the Python paths explicitly by using the --build-python-info
argument to the build_usd.py script.
I think it should be this for you but make sure the paths I put below actually exist
--build-python-info /home/mb230/anaconda3/envs/test/bin/python3 /home/mb230/anaconda3/envs/test/lib/libpython3.10.so /home/mb230/anaconda3/envs/test/include/python3.10 3.10.15
@dgovil It is a similar issue but I get the package through vcpkg instead of Conda, created a separate issue here - https://github.com/PixarAnimationStudios/OpenUSD/issues/3405
Description of Issue
I am facing the following error -
The error log file is (which is almost same as the above error shown on the console, but just attaching that too here in case it is needed) -
I check this folder -
ls /home/mb230/anaconda3/envs/test/lib/
and. I get the following -Steps to Reproduce
System Information (OS, Hardware)
hostnamectl
-Package Versions
conda list
gives -Build Flags
Have mentioned this above.
could someone help me regarding this?
I see that I do not have the
libpython3.10.a
and that seems to be the issue that is mentioned. Am I missing something in my conda env or python installation?Any help would be greatly appreciated, thank you!
-- Megh