You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if related, but I tried setting up OpenUSD (Ubuntu 22.04, Python 3.12, Conda) first, but failed to build it myself (same problem as reported in #3401 , but none of the suggested solutions work for me).
Instead, I downloaded pre-built libraries from here. Further, I installed usd-core via pip inside my conda environment.
The pip installation seems to be incomplete / not match the pxr source in the prebuilt libraries. Specifically, I experience the following behavior:
usdview
Traceback (most recent call last):
File ".../OpenUSD/bin/usdview", line 11, in<module>
import pxr.Usdviewq as Usdviewq
ModuleNotFoundError: No module named 'pxr.Usdviewq'
Listing the content of the pip-installed usd-core package indeed shows no Usdviewq:
usd-core is literally the core, it doesn't include the Qt based components, so that's expected. Note that the nvidia binaries don't match the version in usd-core, so installing both at once into the same environment is not recommended.
If your interest is just to get up and running, and you don't want to globally install usd and it's components, I'd recommend using pyenv and venv instead, as those do not introduce the issues that conda does. We expect that you will be able to successfully build and run in a non-conda environment.
Although conda would be a great solution for OpenUSD work (I personally prefer to use conda in general!), there are currently many difficulties around it due to issues caused by conda's choice of static linking of python itself, shared dictionaries, and dynamic symbol look up. If you're interested in trying to solve those issues, it's worth pursuing, but if not, conda is of limited use for OpenUSD today.
I followed your advice and set everything up using pyenv/venv. As you said, I was able to build it and run usdview, so this workaround solves the issue for me - thanks for helping me out!
Description of Issue
Not sure if related, but I tried setting up OpenUSD (Ubuntu 22.04, Python 3.12, Conda) first, but failed to build it myself (same problem as reported in #3401 , but none of the suggested solutions work for me).
Instead, I downloaded pre-built libraries from here. Further, I installed usd-core via pip inside my conda environment.
The pip installation seems to be incomplete / not match the
pxr
source in the prebuilt libraries. Specifically, I experience the following behavior:Listing the content of the pip-installed usd-core package indeed shows no Usdviewq:
To me, this looks l have an incomplete usd-core installation - but I don't know if this analysis is correct, nor how to resolve it.
System Information (OS, Hardware)
Package Versions
Tried it with both,
usd-core==24.8
andusd-core==24.11
.If I can provide any more information to help resolve the issue let me know.
The text was updated successfully, but these errors were encountered: