Skip to content
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

Ar.GetResolver().GetAssetInfo() fails in Python - No to_python (by-value) converter found #2065

Closed
ColinKennedy opened this issue Oct 15, 2022 · 1 comment

Comments

@ColinKennedy
Copy link

ColinKennedy commented Oct 15, 2022

Description of Issue

pxr.Ar.GetAssetInfo() fails to run, in Python. It errors with

Traceback (most recent call last):
  File "bug.py", line 7, in <module>
    print(_RESOLVER.GetAssetInfo(uri, resolved))
TypeError: No to_python (by-value) converter found for C++ type: pxrInternal_v0_22__pxrReserved__::ArAssetInfo

I'm writing this page as a follow up to this usd-interest post: https://groups.google.com/g/usd-interest/c/gmWUJpu5pBM

Steps to Reproduce

  • Install USD (I was using 22.08, at the time of writing)

  • Attempt to call Ar.GetAssetInfo()

from pxr import Ar


_RESOLVER = Ar.GetResolver()
text = "/path/to.usda"
resolved = _RESOLVER.Resolve(text)
print(_RESOLVER.GetAssetInfo(text, resolved)) 

And you'll get the traceback, shown above

System Information (OS, Hardware)

  • CentOS 7

Package Versions

  • USD 22.08
  • Python 3

Build Flags

Vanilla build_usd.py settings

@tallytalwar
Copy link
Contributor

Filed as internal issue #USD-7720

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants