Code Monkey home page Code Monkey logo

Comments (10)

Jean-Francois-Lafleche avatar Jean-Francois-Lafleche commented on May 19, 2024 9

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.

from kaolin.

vmlaker avatar vmlaker commented on May 19, 2024

Module pxr is Pixar's USD.

What is strange is pxr module can only be built for Python 2 (using their build_usd.py script), while Kaolin build expects Python 3.6+.

I'm wondering then how is Kaolin supposed to work at all with USD..?

from kaolin.

pbermell avatar pbermell commented on May 19, 2024

Thanks JFL,
There is one thing that is puzzling me though.
I can import kaolin without errors.
and the paths seem to be in PYTHONPATH and LD_LIBRARY_PATH
However, when I run the test I still get the 'No module named 'pxr'' error.
attached here some tests on the interpreter.
Maybe the pxd has not been compiled properly...?
Perhaps I should try using the built ones in https://developer.nvidia.com/usd#binaries.
regards

Python 3.6.8 (default, Oct  7 2019, 12:59:55) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import kaolin
>>> import os
>>> print(os.environ.get('LD_LIBRARY_PATH'))
home/pabs/PycharmProjects/kaolin/build/target-deps/nv_usd/release/lib/
>>> print(os.environ.get('PYTHONPATH'))
home/pabs/PycharmProjects/kaolin/build/target-deps/nv_usd/release/lib/python
>>> 

from kaolin.

Jean-Francois-Lafleche avatar Jean-Francois-Lafleche commented on May 19, 2024

@pbermell We just merged a change this morning that should fix these issues. Please try pulling the changes and running the setup again and let us know whether you still encounter the same error. Thanks for posting the issue!

from kaolin.

Tojens avatar Tojens commented on May 19, 2024

Hi,

I am having some trouble solving this on windows 10. I am getting the same errors as posted above. Do you have any suggestions as to how I might go about doing this?

Best regards,
Tobias

from kaolin.

Jean-Francois-Lafleche avatar Jean-Francois-Lafleche commented on May 19, 2024

Hello @Tojens, we don't officially support Windows currently (it's coming!), but if you're getting a pxr related error when running tests, you can disable that particular test by commenting out or deleting the file located under tests/datasets/test_usdfile.py. Please let me know if this helps!

from kaolin.

Tojens avatar Tojens commented on May 19, 2024

Thank you for the quick response - that was very helpful :). It has been fairly straightforward to get started even on windows and I am very interested in seeing this evolve. I am crossing my fingers that you might be able to create some documentation/examples for loading datasets like Paris-Lille and applying a classification/segmentation algorithm at some point :)

from kaolin.

Jean-Francois-Lafleche avatar Jean-Francois-Lafleche commented on May 19, 2024

@Tojens Thank you for the feedback! We have many updates planned for the near future and we will continue to add new functionality and support for more models and datasets. We will certainly look at whether to add support for Paris-Lille, though I can't provide anything more concrete yet.

Closing this as issue is resolved.

from kaolin.

TritonSailor avatar TritonSailor commented on May 19, 2024

@Tojens Can you tell me more details on your Windows setup that's working for Kaolin?

I'm getting a Cuda compilation error I haven't been able to resolve yet..

from kaolin.

myiKim avatar myiKim commented on May 19, 2024

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/

from kaolin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.