question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'pxr'

See original GitHub issue

Hello, when I run this command as described in the documentation (with a space between “kaolin/” and “tests”):

pytest --cov=kaolin/ tests I get the attached output. Any hints on what I am missing? other than: Hint: make sure your test modules/packages have valid Python names.

Thanks

Pablo

`========================================================================================================== test session starts ========================================================================================================== platform linux – Python 3.6.8, pytest-5.3.0, py-1.8.0, pluggy-0.13.0 rootdir: /home/pabs/PycharmProjects/kaolin plugins: cov-2.8.1 collected 114 items / 2 errors / 112 selected
Coverage.py warning: No data was collected. (no-data-collected) WARNING: Failed to generate report: No data to report.

/home/pabs/PycharmProjects/kaolin/venv/lib/python3.6/site-packages/pytest_cov-2.8.1-py3.6.egg/pytest_cov/plugin.py:254: PytestWarning: Failed to generate report: No data to report.

self.cov_controller.finish()

================================================================================================================ ERRORS ================================================================================================================= ____________________________________________________________________________________________ ERROR collecting tests/datasets/test_usdfile.py ____________________________________________________________________________________________ ImportError while importing test module ‘/home/pabs/PycharmProjects/kaolin/tests/datasets/test_usdfile.py’. Hint: make sure your test modules/packages have valid Python names. Traceback: tests/datasets/test_usdfile.py:19: in <module> from kaolin.datasets.usdfile import USDMeshes /home/pabs/PycharmProjects/kaolin/venv/lib/python3.6/site-packages/kaolin-0.2.0+f858c58-py3.6-linux-x86_64.egg/kaolin/datasets/usdfile.py:19: in <module> ??? E ModuleNotFoundError: No module named ‘pxr’ ___________________________________________________________________________________________ ERROR collecting tests/visualize/test_vis_usd.py ____________________________________________________________________________________________ ImportError while importing test module ‘/home/pabs/PycharmProjects/kaolin/tests/visualize/test_vis_usd.py’. Hint: make sure your test modules/packages have valid Python names. Traceback: tests/visualize/test_vis_usd.py:8: in <module> from kaolin.visualize.vis_usd import VisUsd /home/pabs/PycharmProjects/kaolin/venv/lib/python3.6/site-packages/kaolin-0.2.0+f858c58-py3.6-linux-x86_64.egg/kaolin/visualize/vis_usd.py:24: in <module> ??? E ModuleNotFoundError: No module named ‘pxr’ =========================================================================================================== warnings summary ============================================================================================================ venv/lib/python3.6/site-packages/kaolin-0.2.0+f858c58-py3.6-linux-x86_64.egg/kaolin/nnsearch.py:3 /home/pabs/PycharmProjects/kaolin/venv/lib/python3.6/site-packages/kaolin-0.2.0+f858c58-py3.6-linux-x86_64.egg/kaolin/nnsearch.py:3: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module’s documentation for alternative uses

venv/lib/python3.6/site-packages/kaolin-0.2.0+f858c58-py3.6-linux-x86_64.egg/kaolin/datasets/shapenet.py:861 venv/lib/python3.6/site-packages/kaolin-0.2.0+f858c58-py3.6-linux-x86_64.egg/kaolin/datasets/shapenet.py:861 /home/pabs/PycharmProjects/kaolin/venv/lib/python3.6/site-packages/kaolin-0.2.0+f858c58-py3.6-linux-x86_64.egg/kaolin/datasets/shapenet.py:861: DeprecationWarning: invalid escape sequence *

– Docs: https://docs.pytest.org/en/latest/warnings.html

----------- coverage: platform linux, python 3.6.8-final-0 -----------

!!! Interrupted: 2 errors during collection !!! ===================================================================================================== 3 warnings, 2 errors in 4.99s`

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

9reactions
Jean-Francois-Laflechecommented, Nov 22, 2019

Prior to running the tests, please run the command source setenv.sh, which will point Python to the necessary libraries. This needs to be better documented, so thank you for bringing it up!

@vmlaker, we use a version of USD that has been adapted to Python 3.6+. You can check it out here https://developer.nvidia.com/usd#binaries. Note, USDView remains only compatible with Python 2.

0reactions
myiKimcommented, Apr 9, 2022

Hi did you find a solution to it? In my case, after installing usd-core (latest version:22.3) through pip install, the error message does not appear .

https://pypi.org/project/usd-core/

Read more comments on GitHub >

github_iconTop Results From Across the Web

getavalon/Lobby - Gitter
ModuleNotFoundError : No module named 'pxr.Usdviewq'. Roy Nieterau. @BigRoy. But if you just want the USD binaries. Then grab the precompiled ones from ......
Read more >
How can I solve USDZConvert Pxr Import Error?
macOS is Monterey with the latest Xcode, but I've found the solution: You need to open the terminal in Rosetta mode. Then it...
Read more >
FS#70821 : [usd] python files are installed to /usr ... - Arch Linux
ModuleNotFoundError: No module named 'pxr' ``` This is presumably caused by the way cmake/ninja is setup to install the files.
Read more >
ModuleNotFoundError: No module na… - Apple Developer
'ModuleNotFoundError: No module named '_usd'' when importing USD. So, I'm using some small python script that imports from pxr import Usd, Sdf, UsdGeom,...
Read more >
[Error] [carb.python] Failed to reload python module pxr.Tf. Error
I'm trying to launch a Isaac Sim python application and the following Error is showing up: I don't get what is going on,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found