LumaPictures / usd-qt

Reusable Qt Components for Pixar's USD
Other
153 stars 41 forks source link

ImportError: No module named types #5

Closed looskoon closed 6 years ago

looskoon commented 6 years ago

When I run this: python usdQt/app.py test.usd I got the error below: /test/usd-qt-master/treemodel/itemtree.py", line 26, in import pylib.types ImportError: No module named types

and the module "pylib" is installed by pip install pylib.

dgovil commented 6 years ago

Running into the same thing. I don't see a pylib mentioned in the requirements.txt, and the only packages on pypi seem ambiguous.

Any ideas if there is a specific package we can replace it with?

csaez commented 6 years ago

I can look at the patch we applied at work to make this work, but pylib seems to be used only to validate that rootItem is an instance of TreeItem (or subclass).

dgovil commented 6 years ago

We ended up replacing it with similar logic and it works now. Just wasn't certain if we missed any functionality but I don't think we did based on your reply.

Thank you for the information.

chadrik commented 6 years ago

Sorry about this bug. We fixed it and it came back after a bad merge. I've commented out the check since it's not strictly necessary. This whole project will be going through a big refactor in the next few weeks, so we'll come back to the question of its necessity then.

dgovil commented 6 years ago

Thanks for the update, Chad!