添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Hello everyone, I am trying to import render materials from the materailx library in freecad using the GPUOpen Materail Library in the render workbench for my project. but it is giving me this error message. "12:17:53 [Render][MaterialX] Traceback (most recent call last):
12:17:53 [Render][MaterialX] File "/home/anuon/.local/share/FreeCAD/Mod/Render/Render/plugins/materialx/importer/converter/materialx_converter.py", line 55, in <module>
12:17:53 [Render][MaterialX] from materialx_baker import RenderTextureBaker
12:17:53 [Render][MaterialX] File "/home/anuon/.local/share/FreeCAD/Mod/Render/Render/plugins/materialx/importer/converter/materialx_baker.py", line 55, in <module>
12:17:53 [Render][MaterialX] import MaterialX as mx
12:17:53 [Render][MaterialX] ModuleNotFoundError: No module named 'MaterialX'
12:17:53 [Render][MaterialX] IMPORT - ABORTED (1)
12:17:53 [Render][MaterialX] Releasing /tmp/tmpmucdc_uz
12:17:53 [Render][MaterialX] IMPORT TERMINATED"
Please can anyone helps solve this.
Hello,
Can you please precise OS, Python version, Render version, FreeCAD version etc.?
And also provide full Render start trace (in report view), including log level messages?
Thank you very much!
howetuft wrote: Thu Aug 15, 2024 4:58 pm Hello,
Can you please precise OS, Python version, Render version, FreeCAD version etc.?
And also provide full Render start trace (in report view), including log level messages?
Thank you very much! Linux pop os version 2.04, python3, report view logs "22:04:40 [Render][MaterialX] STARTING MATERIALX IMPORT
22:04:40 [Render][MaterialX] Traceback (most recent call last):
22:04:40 [Render][MaterialX] File "/home/anuon/.local/share/FreeCAD/Mod/Render/Render/plugins/materialx/importer/converter/materialx_converter.py", line 55, in <module>
22:04:40 [Render][MaterialX] from materialx_baker import RenderTextureBaker
22:04:40 [Render][MaterialX] File "/home/anuon/.local/share/FreeCAD/Mod/Render/Render/plugins/materialx/importer/converter/materialx_baker.py", line 55, in <module>
22:04:40 [Render][MaterialX] import MaterialX as mx
22:04:40 [Render][MaterialX] ModuleNotFoundError: No module named 'MaterialX'
22:04:40 [Render][MaterialX] IMPORT - ABORTED (1)
22:04:40 [Render][MaterialX] Releasing /tmp/tmplu8qsqmx
22:04:40 [Render][MaterialX] IMPORT TERMINATED
But I have read from the help page of the render workbench that materialx neds to be install in the system. I am trying to do so but without success.
But I have read from the help page of the render workbench that materialx neds to be install in the system.
No, MaterialX should be directly installed by Render (there should be a message like "[Render][Init] Checking package 'materialx' - OK" at initialization).
I would need the start log to help you further: can you please activate log messages report (in Preferences), restart FreeCAD, activate Render workbench, and copy/paste here the whole Report view content?
Can you also provide the requested information:
Python version (major/minor)
FreeCAD version
Render version
Thank you!
howetuft wrote: Fri Aug 16, 2024 3:40 am
But I have read from the help page of the render workbench that materialx neds to be install in the system.
No, MaterialX should be directly installed by Render (there should be a message like "[Render][Init] Checking package 'materialx' - OK" at initialization).
I would need the start log to help you further: can you please activate log messages report (in Preferences), restart FreeCAD, activate Render workbench, and copy/paste here the whole Report view content?
Can you also provide the requested information:
Python version (major/minor)
FreeCAD version
Render version
Thank you! I believe you are refering to this:
"08:35:07 [Render][Init] Starting Render initialization
08:35:07 [Render][Init] Importing 'Assembly3'
08:35:07 [Render][Init] Importing 'Assembly3'... done
08:35:07 Loading MeshPart module... done
08:35:07 Loading Mesh module... done
08:35:07 [Render][Init] Checking dependencies...
08:35:07 [Render][Init] Checking Render virtual environment
08:35:07 [Render][Init] >>> Environment folder exists: OK
08:35:07 [Render][Init] >>> Environment provides Python: OK
08:35:07 [Render][Init] >>> Environment provides Pip: OK
08:35:07 [Render][Init] >>> /home/anuon/.local/share/FreeCAD/.rendervenv/bin/python -u -m pip install --no-warn-script-location --only-binary=:all: --upgrade --find-links=/home/anuon/.local/share/FreeCAD/Mod/Render/./wheelhouse PyQt6
08:35:07 [Render][Init] >>> /home/anuon/.local/share/FreeCAD/.rendervenv/bin/python -u -m pip install --no-warn-script-location --only-binary=:all: --upgrade --find-links=/home/anuon/.local/share/FreeCAD/Mod/Render/./wheelhouse PyQt6-WebEngine
08:35:07 [Render][Init] >>> /home/anuon/.local/share/FreeCAD/.rendervenv/bin/python -u -m pip install --no-warn-script-location --only-binary=:all: --upgrade --find-links=/home/anuon/.local/share/FreeCAD/Mod/Render/./wheelhouse -I renderplugin
08:35:07 [Render][Init] >>> /home/anuon/.local/share/FreeCAD/.rendervenv/bin/python -u -m pip install --no-warn-script-location --only-binary=:all: --upgrade --find-links=/home/anuon/.local/share/FreeCAD/Mod/Render/./wheelhouse QtPy
08:35:07 [Render][Init] >>> /home/anuon/.local/share/FreeCAD/.rendervenv/bin/python -u -m pip install --no-warn-script-location --only-binary=:all: --upgrade --find-links=/home/anuon/.local/share/FreeCAD/Mod/Render/./wheelhouse materialx
08:35:18 [Render][Init] >>> Looking in links: /home/anuon/.local/share/FreeCAD/Mod/Render/./wheelhouse
08:35:18 [Render][Init] >>> Looking in links: /home/anuon/.local/share/FreeCAD/Mod/Render/./wheelhouse
08:35:18 [Render][Init] >>> Requirement already satisfied: PyQt6 in ./.local/share/FreeCAD/.rendervenv/lib/python3.10/site-packages (6.7.1)
08:35:18 [Render][Init] >>> Looking in links: /home/anuon/.local/share/FreeCAD/Mod/Render/./wheelhouse
08:35:18 [Render][Init] >>> Looking in links: /home/anuon/.local/share/FreeCAD/Mod/Render/./wheelhouse
08:35:18 [Render][Init] >>> Looking in links: /home/anuon/.local/share/FreeCAD/Mod/Render/./wheelhouse
08:35:18 [Render][Init] >>> Requirement already satisfied: PyQt6-WebEngine in ./.local/share/FreeCAD/.rendervenv/lib/python3.10/site-packages (6.7.0)
08:35:18 [Render][Init] >>> Requirement already satisfied: QtPy in ./.local/share/FreeCAD/.rendervenv/lib/python3.10/site-packages (2.4.1)
08:35:19 [Render][Init] >>> Processing ./.local/share/FreeCAD/Mod/Render/wheelhouse/renderplugin-0.0.1-py2.py3-none-any.whl
08:35:19 [Render][Init] >>> Requirement already satisfied: PyQt6-sip<14,>=13.8 in ./.local/share/FreeCAD/.rendervenv/lib/python3.10/site-packages (from PyQt6) (13.8.0)
08:35:19 [Render][Init] >>> Requirement already satisfied: PyQt6-Qt6<6.8.0,>=6.7.0 in ./.local/share/FreeCAD/.rendervenv/lib/python3.10/site-packages (from PyQt6) (6.7.2)
08:35:19 [Render][Init] >>> Requirement already satisfied: packaging in ./.local/share/FreeCAD/.rendervenv/lib/python3.10/site-packages (from QtPy) (24.1)
08:35:19 [Render][Init] >>> Requirement already satisfied: PyQt6-sip<14,>=13.6 in ./.local/share/FreeCAD/.rendervenv/lib/python3.10/site-packages (from PyQt6-WebEngine) (13.8.0)
08:35:19 [Render][Init] >>> Requirement already satisfied: PyQt6-WebEngine-Qt6<6.8.0,>=6.7.0 in ./.local/share/FreeCAD/.rendervenv/lib/python3.10/site-packages (from PyQt6-WebEngine) (6.7.2)
08:35:19 [Render][Init] >>> Requirement already satisfied: PyQt6>=6.2.0 in ./.local/share/FreeCAD/.rendervenv/lib/python3.10/site-packages (from PyQt6-WebEngine) (6.7.1)
08:35:19 [Render][Init] >>> Requirement already satisfied: PyQt6-Qt6<6.8.0,>=6.7.0 in ./.local/share/FreeCAD/.rendervenv/lib/python3.10/site-packages (from PyQt6>=6.2.0->PyQt6-WebEngine) (6.7.2)
08:35:19 [Render][Init] >>> Collecting materialx
08:35:19 [Render][Init] >>> Requirement already satisfied: PyQt6-WebEngineSubwheel-Qt6==6.7.2 in ./.local/share/FreeCAD/.rendervenv/lib/python3.10/site-packages (from PyQt6-WebEngine-Qt6<6.8.0,>=6.7.0->PyQt6-WebEngine) (6.7.2)
08:35:19 [Render][Init] >>> Installing collected packages: renderplugin
08:35:19 [Render][Init] >>>
08:35:19 [Render][Init] >>> [notice] A new release of pip is available: 24.1 -> 24.2
08:35:19 [Render][Init] >>> [notice] To update, run: python -m pip install --upgrade pip
08:35:19 [Render][Init] >>>
08:35:19 [Render][Init] >>> [notice] A new release of pip is available: 24.1 -> 24.2
08:35:19 [Render][Init] >>> [notice] To update, run: python -m pip install --upgrade pip
08:35:19 [Render][Init] >>>
08:35:19 [Render][Init] >>> [notice] A new release of pip is available: 24.1 -> 24.2
08:35:19 [Render][Init] >>> [notice] To update, run: python -m pip install --upgrade pip
08:35:19 [Render][Init] >>> Successfully installed renderplugin-0.0.1
08:35:19 [Render][Init] >>>
08:35:19 [Render][Init] >>> [notice] A new release of pip is available: 24.1 -> 24.2
08:35:19 [Render][Init] >>> [notice] To update, run: python -m pip install --upgrade pip
08:35:20 [Render][Init] Checking package 'PyQt6-WebEngine' - OK
08:35:20 [Render][Init] Checking package 'renderplugin' - OK
08:35:20 [Render][Init] Checking package 'PyQt6' - OK
08:35:20 [Render][Init] Checking package 'QtPy' - OK
08:35:20 [Render][Init] >>> Downloading materialx-1.39.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.6 kB)
08:35:21 [Render][Init] >>> Downloading materialx-1.39.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB)
08:35:40 [Render][Init] >>> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.3/4.3 MB 219.2 kB/s eta 0:00:00
08:35:41 [Render][Init] >>> Installing collected packages: materialx
08:35:41 [Render][Init] >>> Successfully installed materialx-1.39.0
08:35:41 [Render][Init] >>>
08:35:41 [Render][Init] >>> [notice] A new release of pip is available: 24.1 -> 24.2
08:35:41 [Render][Init] >>> [notice] To update, run: python -m pip install --upgrade pip
08:35:41 [Render][Init] Checking package 'materialx' - OK
08:35:41 [Render][Init] Render virtual environment: OK
08:35:41 [Render][Init] Done.
08:35:53 Using old getstate/setstate system
08:37:01 Sketcher::setUpSketch()-T:0.076
08:37:01 Sketcher::Solve()-DogLeg-T:0
08:37:01 Sketcher::setUpSketch()-T:0.001
08:37:01 Sketcher::Solve()-DogLeg-T:0
08:38:44 Loading Render module... done
08:38:52 [Render][Init] Virtual environment Python version: (3, 10, 12)
08:38:52 [Render][Sub] COULD NOT set QTWEBENGINE_RESOURCES_PATH to '/home/anuon/.local/share/FreeCAD/.rendervenv/lib/python3.10/site-packages/PySide6/Qt/resources'
08:38:52 cd '/home/anuon/.local/share/FreeCAD/Mod/Render/./Render/plugins'
08:38:52 /home/anuon/.local/share/FreeCAD/.rendervenv/bin/python -E -u -m materialx https://matlib.gpuopen.com/ --server /tmp/pymp-mzprn6ad/listener-hvcutia6
08:39:27 [Render][Sub] Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/bin/qtwebengine_dictionaries'
08:39:27 [Render][Sub]
08:39:29 [Render][Sub] Path override failed for key base::DIR_APP_DICTIONARIES and path '/home/anuon/.local/share/FreeCAD/.rendervenv/lib/python3.10/site-packages/PyQt6/Qt6/libexec/qtwebengine_dictionaries'
08:39:29 [Render][Sub]
08:39:29 [Render][Sub] Path override failed for key base::DIR_APP_DICTIONARIES and path '/home/anuon/.local/share/FreeCAD/.rendervenv/lib/python3.10/site-packages/PyQt6/Qt6/libexec/qtwebengine_dictionaries'
08:39:29 [Render][Sub]
08:39:47 [Render][Sub] [9512:9592:0816/083947.216272:ERROR:shared_context_state.cc(386)] OOP raster support disabled: GrContext creation failed.
08:39:47 [Render][Sub] [9512:9592:0816/083947.216324:ERROR:gpu_channel_manager.cc(1038)] ContextResult::kFatalFailure: Failed to initialize Skia for SharedContextState
08:39:47 [Render][Sub]
08:39:47 [Render][Sub] [9512:9592:0816/083947.217746:ERROR:shared_image_stub.cc(620)] SharedImageStub: unable to create context
08:39:47 [Render][Sub] [9512:9592:0816/083947.217927:ERROR:gpu_channel.cc(640)] GpuChannel: Failed to create SharedImageStub
08:39:47 [Render][Sub]
08:39:47 [Render][Sub] [9512:9592:0816/083947.228401:ERROR:shared_context_state.cc(386)] OOP raster support disabled: GrContext creation failed.
08:39:47 [Render][Sub] [9512:9592:0816/083947.228427:ERROR:gpu_channel_manager.cc(1038)] ContextResult::kFatalFailure: Failed to initialize Skia for SharedContextState
08:39:47 [Render][Sub] [9512:9592:0816/083947.232479:ERROR:shared_image_stub.cc(620)] SharedImageStub: unable to create context
08:39:47 [Render][Sub] [9512:9592:0816/083947.232519:ERROR:gpu_channel.cc(640)] GpuChannel: Failed to create SharedImageStub
08:39:47 [Render][Sub]
08:42:09 [Render][MaterialX] STARTING MATERIALX IMPORT
08:42:10 [Render][MaterialX] Extracting to /tmp/tmph3oll7j0
08:42:10 [Render][MaterialX] Reading MaterialX file
08:42:10 [Render][MaterialX] Translating material to Render format
08:42:12 [Render][MaterialX] IMPORT - ABORTED (-11)
08:42:12 [Render][MaterialX] Releasing /tmp/tmph3oll7j0
08:42:12 [Render][MaterialX] IMPORT TERMINATED"
render v2024.8.4
python3.10
But for the Major and Minor, I do not understand what you mean.
pop os version 22.04
Thank you. There are good news and bad news. Good news: last run has installed MaterialX, it's visible in the trace. Bad news: there is another error while importing the material. Could you please give me the url of the material you try to import, in order for me to make some test on my side?
(major/minor: in Python version 3.10, major=3, minor=10...)
howetuft wrote: Fri Aug 16, 2024 11:31 am Thank you. There are good news and bad news. Good news: last run has installed MaterialX, it's visible in the trace. Bad news: there is another error while importing the material. Could you please give me the url of the material you try to import, in order for me to make some test on my side?
(major/minor: in Python version 3.10, major=3, minor=10...) It happens to any material I wants to import
Well, I suspect an OpenGL / GPU issue.
Could you please try to deactivate temporarily your GPU and retry (maybe with this link: https://support.system76.com/articles/g ... witch-pop/ - sorry, I don't really know your distro)? It is a derivative of both Ubuntu and Debian. it resembles both in functionality.