-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
usd-core failing on Windows + conda env + py3.9 #1602
Comments
Starting with python 3.8 on Windows the logic for finding dlls in the path changed. We had written code to handle this for the python packages, but it sounds like conda is exposing some flaw in that solution. I'm able to reproduce this in Windows conda, with the python 3.8 and 3.9 packages. |
I haven't been able to completely get to the bottom of this yet, but I can report that setting the environment variable |
Filed as internal issue #USD-6866 |
cpython changed the way the dlls are loaded on windows for python-3.8+. USD implemented a workaround for this change, installed into pxr.__init__ (and Tf.__init__). However, anaconda python interpreters were patched to behave more like pre-3.8: https://github.com/conda-forge/python-feedstock/blob/8195ba1178041b7461238e8c5680eee62f5ea9d0/recipe/patches/0020-Add-CondaEcosystemModifyDllSearchPath.patch#L37 So we now check for anaconda interpreters before using the 3.8+ only fix. Fixes issue PixarAnimationStudios#1602
cpython changed the way the dlls are loaded on windows for python-3.8+. USD implemented a workaround for this change, installed into pxr.__init__ (and Tf.__init__). However, anaconda python interpreters were patched to behave more like pre-3.8: https://github.com/conda-forge/python-feedstock/blob/8195ba1178041b7461238e8c5680eee62f5ea9d0/recipe/patches/0020-Add-CondaEcosystemModifyDllSearchPath.patch#L37 So we now check for anaconda interpreters before using the 3.8+ only fix. Fixes issue PixarAnimationStudios#1602
Closing out old issue, this should be addressed by #1642 which was merged in the 22.03 release. |
Description of Issue
Hi, I tested on two different machines to install and import
usd-core
pypi package and it's failing with the following logs:Remarks
On the same machine there is no problem with
virtualenv
, neither with python version 3.7.Steps to Reproduce
System Information (OS, Hardware)
Windows 10
Package Versions
usd-core == 21.8
conda, python == 3.9
The text was updated successfully, but these errors were encountered: