Giter Club home page Giter Club logo

Comments (4)

jstone-lucasfilm avatar jstone-lucasfilm commented on June 7, 2024

When multiple Python environments are available in the system path, we've often found it necessary to provide more information to the CMake configuration process. In our cloud-based Ubuntu tests, for example, we'll commonly add "-DMATERIALX_PYTHON_VERSION=2" or "-DMATERIALX_PYTHON_VERSION=3" to the CMake command line, just to make sure our intent is clear:

https://github.com/materialx/MaterialX/blob/master/.github/workflows/build.yml#L23

Perhaps that's worth a try in your build environment as well?

-Jonathan

from materialx.

johhnry avatar johhnry commented on June 7, 2024

Hi,

Thank you for your answer. There is the same error message :

MaterialX/build $ cmake -DMATERIALX_BUILD_PYTHON=ON -DMATERIALX_BUILD_VIEWER=ON -DMATERIALX_PYTHON_VERSION=3 ..
-- Using X11 for window creation
-- Using PyBind11 v2.4.3
-- Found PythonInterp: /usr/bin/python3.7 (found suitable version "3.7.5", minimum required is "3") 
CMake Error at source/PyMaterialX/PyBind11/tools/FindPythonLibsNew.cmake:96 (message):
  Python config failure:

  Traceback (most recent call last):

    File "<string>", line 1, in <module>

  ImportError: cannot import name 'sysconfig' from 'distutils'
  (/usr/lib/python3.7/distutils/__init__.py)

Call Stack (most recent call first):
  source/PyMaterialX/PyBind11/tools/pybind11Tools.cmake:16 (find_package)
  source/PyMaterialX/CMakeLists.txt:41 (include)


-- Configuring incomplete, errors occurred!
See also "MaterialX/build/CMakeFiles/CMakeOutput.log".
See also "MaterialX/build/CMakeFiles/CMakeError.log".

Maybe this is specific to my Python installation and Ubuntu upgrade to 20.04...

from materialx.

jstone-lucasfilm avatar jstone-lucasfilm commented on June 7, 2024

Yes, that's starting to look more likely -- that there's an issue with the Python environment itself. Perhaps a reinstall will do the trick?

from materialx.

jstone-lucasfilm avatar jstone-lucasfilm commented on June 7, 2024

I'll close out this issue for now, @johhnry, and feel free to bring up any additional build questions on the MaterialX forum (https://groups.google.com/g/materialx).

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.