Giter Club home page Giter Club logo

Comments (4)

jstone-lucasfilm avatar jstone-lucasfilm commented on May 27, 2024

Hi Arthur,

Are you sure that you're working with a complete build of MaterialX Python? There are calls to NodeGraph.addNode in our Python test suite, for example, which runs as part of the continuous integration process for the MaterialX library:

https://github.com/materialx/MaterialX/blob/master/python/MaterialXTest/main.py#L189

If you build MaterialX Python through CMake, and install the resulting Python package to your Python environment, you should see a collection of Python wrappers such as main.py and datatype.py in the distribution, and not just the raw PyMaterialX shared library.

Full build instructions can be found here, and let us know if we can clarify any of the steps:

http://www.materialx.org/docs/api/index.html

All the best,

-Jonathan

from materialx.

ArthurChiu avatar ArthurChiu commented on May 27, 2024

this is my cmake command
cmake -G "Visual Studio 14 2015 Win64" -DMATERIALX_BUILD_PYTHON=ON -DMATERIALX_BUILD_DOCS=ON ..\MaterialX-master
have any questions?

from materialx.

jstone-lucasfilm avatar jstone-lucasfilm commented on May 27, 2024

Hi Arthur,

Could it be that you're building MaterialX with the command above, but never installing the MaterialX Python package to a destination folder? In our online test suite, for example, we build and install MaterialX with the following command:

  • cmake --build . --target install

In the Appveyor/Windows test suite, this installs MaterialX Python to the "site-packages" folder of the Python installation, and in the Travis/Linux test suite, it installs MaterialX Python to a local folder for testing.

-Jonathan

from materialx.

jstone-lucasfilm avatar jstone-lucasfilm commented on May 27, 2024

Hi Arthur,

I'm going to close out this issue for now, and feel free to follow up on the MaterialX Discussion Forum if you have additional build questions:

https://groups.google.com/forum/#!forum/materialx

All the best,

-Jonathan

from materialx.

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.